diff options
author | Jim Laskey <jlaskey@mac.com> | 2005-08-12 23:52:46 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2005-08-12 23:52:46 +0000 |
commit | cf083e312cced297961b65e353904bbe59f7604a (patch) | |
tree | 07b88cff032ea71ee91fe9ca7dda8e79863bcab1 /lib/Target/PowerPC/PPCISelPattern.cpp | |
parent | 4a17addadbbce46c559fcfe3c2bd24ab511ced55 (diff) |
Fix for 2005-08-12-rlwimi-crash.ll. Make allowance for masks being shifted to
zero.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22773 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCISelPattern.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCISelPattern.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCISelPattern.cpp b/lib/Target/PowerPC/PPCISelPattern.cpp index 500333fb29..9725c2c586 100644 --- a/lib/Target/PowerPC/PPCISelPattern.cpp +++ b/lib/Target/PowerPC/PPCISelPattern.cpp @@ -640,7 +640,7 @@ static bool isRotateAndMask(unsigned Opcode, unsigned Shift, unsigned Mask, } // if the mask doesn't intersect any Indeterminant bits - if (!(Mask & Indeterminant)) { + if (Mask && !(Mask & Indeterminant)) { SH = Shift; // make sure the mask is still a mask (wrap arounds may not be) return isRunOfOnes(Mask, MB, ME); |