diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index b27f5959db3..f1325e8387c 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/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)) & ((8 << ValSizeInBytes)-1)) != - (Value & ((8 << ValSizeInBytes)-1))) + if (((Value >> (ValSizeInBytes*8)) & (1 << (8*ValSizeInBytes)-1)) != + (Value & (1 << (8*ValSizeInBytes)-1))) return false; } |

