Changes in directory llvm/test/Transforms/InstCombine:

2007-03-25-DoubleShift.ll added (r1.1)
---
Log message:

Add a test case for PR1271: http://llvm.org/PR1271  (necessary, but not 
sufficient).


---
Diffs of the changes:  (+9 -0)

 2007-03-25-DoubleShift.ll |    9 +++++++++
 1 files changed, 9 insertions(+)


Index: llvm/test/Transforms/InstCombine/2007-03-25-DoubleShift.ll
diff -c /dev/null llvm/test/Transforms/InstCombine/2007-03-25-DoubleShift.ll:1.1
*** /dev/null   Sun Mar 25 16:30:51 2007
--- llvm/test/Transforms/InstCombine/2007-03-25-DoubleShift.ll  Sun Mar 25 
16:30:41 2007
***************
*** 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
+ }



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to