mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +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:
parent
697cba8ec2
commit
15a2f2eff8
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user