diff options
-rw-r--r-- | test/Transforms/InstCombine/2007-03-25-DoubleShift.ll | 9 |
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 0000000000..d67e1a13cc --- /dev/null +++ b/test/Transforms/InstCombine/2007-03-25-DoubleShift.ll @@ -0,0 +1,9 @@ +; PR1271 +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | 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 +} |