mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
Fix logic think-o
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108601 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -4267,7 +4267,7 @@ static SDValue PerformORCombine(SDNode *N,
|
|||||||
if (!C)
|
if (!C)
|
||||||
return SDValue();
|
return SDValue();
|
||||||
unsigned Val = C->getZExtValue();
|
unsigned Val = C->getZExtValue();
|
||||||
if (ARM::isBitFieldInvertedMask(Mask) && (Val & ~Mask) != Val)
|
if (!ARM::isBitFieldInvertedMask(Mask) || (Val & ~Mask) != Val)
|
||||||
return SDValue();
|
return SDValue();
|
||||||
Val >>= CountTrailingZeros_32(~Mask);
|
Val >>= CountTrailingZeros_32(~Mask);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user