aboutsummaryrefslogtreecommitdiff
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
commit0b0a9a90a423efb91dd4efdfd866ad37aa72ee8e (patch)
tree893f80182c1e58df7304330f352bf51382bbe055
parent1997473cf72957d0e70322e2fe6fe2ab141c58a6 (diff)
Typo. It's checking if V is multiple of 4, not multiple of 3. :-)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36663 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/ARM/ARMISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp
index 747a2879d4..8981ea4299 100644
--- a/lib/Target/ARM/ARMISelLowering.cpp
+++ b/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);