Fix CodeGen/PowerPC/2006-04-05-splat-ish.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27439 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-04-05 17:39:25 +00:00
parent 220c1009ff
commit 9b42bdd7bc

View File

@ -353,8 +353,8 @@ bool PPC::isVecSplatImm(SDNode *N, unsigned ByteSize, char *Val) {
ValSizeInBytes >>= 1;
// If the top half equals the bottom half, we're still ok.
if (((Value >> (ValSizeInBytes*8)) & (1 << (8*ValSizeInBytes)-1)) !=
(Value & (1 << (8*ValSizeInBytes)-1)))
if (((Value >> (ValSizeInBytes*8)) & ((1 << (8*ValSizeInBytes))-1)) !=
(Value & ((1 << (8*ValSizeInBytes))-1)))
return false;
}