aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/2007-03-25-DoubleShift.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/2007-03-25-DoubleShift.ll')
-rw-r--r--test/Transforms/InstCombine/2007-03-25-DoubleShift.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2007-03-25-DoubleShift.ll b/test/Transforms/InstCombine/2007-03-25-DoubleShift.ll
new file mode 100644
index 0000000..0d4aac2
--- /dev/null
+++ b/test/Transforms/InstCombine/2007-03-25-DoubleShift.ll
@@ -0,0 +1,9 @@
+; PR1271
+; RUN: opt < %s -instcombine -S | grep and
+define i1 @test(i32 %tmp13) {
+entry:
+ %tmp14 = shl i32 %tmp13, 12 ; <i32> [#uses=1]
+ %tmp15 = lshr i32 %tmp14, 12 ; <i32> [#uses=1]
+ %res = icmp ne i32 %tmp15, 0 ; <i1>:3 [#uses=1]
+ ret i1 %res
+}