aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/ARM/ARMISelLowering.cpp')
-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 747a287..8981ea4 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);