projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a47294e
)
Make check a bit more strict so we don't call ARM_AM::getFP32Imm with a value that...
author
Eli Friedman
<eli.friedman@gmail.com>
Thu, 15 Dec 2011 22:56:53 +0000
(22:56 +0000)
committer
Eli Friedman
<eli.friedman@gmail.com>
Thu, 15 Dec 2011 22:56:53 +0000
(22:56 +0000)
llvm-svn: 146700
llvm/lib/Target/ARM/ARMISelLowering.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/ARM/ARMISelLowering.cpp
b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index
857eb7a
..
c6c1f5b
100644
(file)
--- a/
llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/
llvm/lib/Target/ARM/ARMISelLowering.cpp
@@
-4009,7
+4009,7
@@
SDValue ARMTargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG,
}
// Use vmov.f32 to materialize other v2f32 and v4f32 splats.
- if (
VT == MVT::v2f32 || VT == MVT::v4f
32) {
+ if (
(VT == MVT::v2f32 || VT == MVT::v4f32) && SplatBitSize ==
32) {
int ImmVal = ARM_AM::getFP32Imm(SplatBits);
if (ImmVal != -1) {
SDValue Val = DAG.getTargetConstant(ImmVal, MVT::i32);