summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-05-03 02:00:18 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-05-03 02:00:18 +0000
commitbef131de68dc35d1401acef41bad06ad3ee62d8c (patch)
tree1df133f7c720c7a48a43ac1aaff6710b85e18a84 /llvm/lib
parent8c78a0bff0c0e9d0594598bcb76cd623bb625083 (diff)
downloadbcm5719-llvm-bef131de68dc35d1401acef41bad06ad3ee62d8c.tar.gz
bcm5719-llvm-bef131de68dc35d1401acef41bad06ad3ee62d8c.zip
Typo. It's checking if V is multiple of 4, not multiple of 3. :-)
llvm-svn: 36663
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 747a2879d48..8981ea42995 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -1486,7 +1486,7 @@ static bool isLegalAddressImmediate(int64_t V, MVT::ValueType VT,
case MVT::f64:
if (!Subtarget->hasVFP2())
return false;
- if ((V % 3) != 0)
+ if ((V & 3) != 0)
return false;
V >>= 2;
return V == V & ((1LL << 8) - 1);
OpenPOWER on IntegriCloud