[llvm-commits] [llvm] r108601 - /llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
Jim Grosbach
grosbach at apple.com
Fri Jul 16 18:22:19 PDT 2010
Author: grosbach
Date: Fri Jul 16 20:22:19 2010
New Revision: 108601
URL: http://llvm.org/viewvc/llvm-project?rev=108601&view=rev
Log:
Fix logic think-o
Modified:
llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=108601&r1=108600&r2=108601&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Fri Jul 16 20:22:19 2010
@@ -4267,7 +4267,7 @@
if (!C)
return SDValue();
unsigned Val = C->getZExtValue();
- if (ARM::isBitFieldInvertedMask(Mask) && (Val & ~Mask) != Val)
+ if (!ARM::isBitFieldInvertedMask(Mask) || (Val & ~Mask) != Val)
return SDValue();
Val >>= CountTrailingZeros_32(~Mask);
More information about the llvm-commits
mailing list