1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Fix logic think-o

llvm-svn: 108601
This commit is contained in:
Jim Grosbach 2010-07-17 01:22:19 +00:00
parent 00b8fa89c8
commit 5e095020ae

View File

@ -4267,7 +4267,7 @@ static SDValue PerformORCombine(SDNode *N,
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);