summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2010-11-01-lshr-mask.ll
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-04-20 00:38:45 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-04-20 00:38:45 +0000
commiteece9dc81cedf0cda5c356c180f60d91c99920fc (patch)
tree9e8581cf7f5da30f274c65bbcb4f0f94c3f9dd44 /test/Transforms/InstCombine/2010-11-01-lshr-mask.ll
parent181b14797518e714e1b6112db849ca53192b8f23 (diff)
downloadllvm-eece9dc81cedf0cda5c356c180f60d91c99920fc.tar.gz
llvm-eece9dc81cedf0cda5c356c180f60d91c99920fc.tar.bz2
llvm-eece9dc81cedf0cda5c356c180f60d91c99920fc.tar.xz
Revert r155136 "Defer some shl transforms to DAGCombine."
While the patch was perfect and defect free, it exposed a really nasty bug in X86 SelectionDAG that caused an llc crash when compiling lencod. I'll put the patch back in after fixing the SelectionDAG problem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155181 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/2010-11-01-lshr-mask.ll')
-rw-r--r--test/Transforms/InstCombine/2010-11-01-lshr-mask.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Transforms/InstCombine/2010-11-01-lshr-mask.ll b/test/Transforms/InstCombine/2010-11-01-lshr-mask.ll
index eb28994756..441d5f9b0b 100644
--- a/test/Transforms/InstCombine/2010-11-01-lshr-mask.ll
+++ b/test/Transforms/InstCombine/2010-11-01-lshr-mask.ll
@@ -5,8 +5,8 @@
define i32 @main(i32 %argc) nounwind ssp {
entry:
%tmp3151 = trunc i32 %argc to i8
-; CHECK: %tmp3163 = shl i8 %tmp3162, 6
-; CHECK: and i8 %tmp3163, 64
+; CHECK: %tmp3162 = shl i8 %tmp3151, 5
+; CHECK: and i8 %tmp3162, 64
; CHECK-NOT: shl
; CHECK-NOT: shr
%tmp3161 = or i8 %tmp3151, -17
@@ -38,8 +38,8 @@ bb:
%tmp10 = lshr i8 %tmp8, 7
%tmp11 = shl i8 %tmp10, 5
-; CHECK: %tmp10 = lshr i8 %tmp8, 7
-; CHECK: %tmp11 = shl nuw nsw i8 %tmp10, 5
+; CHECK: %0 = lshr i8 %tmp8, 2
+; CHECK: %tmp11 = and i8 %0, 32
%tmp12 = xor i8 %tmp11, %tmp9
ret i8 %tmp12