diff options
author | Chris Lattner <sabre@nondot.org> | 2006-04-05 17:39:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-04-05 17:39:25 +0000 |
commit | 9b42bdd7bced1d31d309dca2932d0a063ea6c863 (patch) | |
tree | bbfd3d8bb91a39431322508c2a70a03ae1f131f6 | |
parent | 220c1009ff32faac91d8ae4ba64f24f6fe9d820a (diff) |
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
-rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index ba4b9ea4c9..8cf7052911 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -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; } |