From 40d67c59d5ceb9fec5d95a391e396c21b7c5c674 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Wed, 20 Feb 2008 11:22:39 +0000 Subject: Remove bunch of gcc 4.3-related warnings from Target llvm-svn: 47369 --- llvm/lib/Target/ARM/ARMISelLowering.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp') diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index d1538f32c8e..92ab18d5775 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -1551,7 +1551,7 @@ static bool isLegalAddressImmediate(int64_t V, MVT::ValueType VT, if ((V & (Scale - 1)) != 0) return false; V /= Scale; - return V == V & ((1LL << 5) - 1); + return V == (V & ((1LL << 5) - 1)); } if (V < 0) @@ -1562,10 +1562,10 @@ static bool isLegalAddressImmediate(int64_t V, MVT::ValueType VT, case MVT::i8: case MVT::i32: // +- imm12 - return V == V & ((1LL << 12) - 1); + return V == (V & ((1LL << 12) - 1)); case MVT::i16: // +- imm8 - return V == V & ((1LL << 8) - 1); + return V == (V & ((1LL << 8) - 1)); case MVT::f32: case MVT::f64: if (!Subtarget->hasVFP2()) @@ -1573,7 +1573,7 @@ static bool isLegalAddressImmediate(int64_t V, MVT::ValueType VT, if ((V & 3) != 0) return false; V >>= 2; - return V == V & ((1LL << 8) - 1); + return V == (V & ((1LL << 8) - 1)); } } -- cgit v1.2.3