Changes in directory llvm/test/Transforms/InstCombine:

xor2.ll added (r1.1)
---
Log message:

new testcase for PR1253: http://llvm.org/PR1253 


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

 xor2.ll |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+)


Index: llvm/test/Transforms/InstCombine/xor2.ll
diff -c /dev/null llvm/test/Transforms/InstCombine/xor2.ll:1.1
*** /dev/null   Mon Apr  2 20:45:42 2007
--- llvm/test/Transforms/InstCombine/xor2.ll    Mon Apr  2 20:45:32 2007
***************
*** 0 ****
--- 1,19 ----
+ ; This test makes sure that these instructions are properly eliminated.
+ ;
+ 
+ ; RUN: llvm-as < %s | opt -instcombine -disable-output &&
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 'xor '
+ 
+ ; PR1253
+ define i1 @test0(i32 %A) {
+       %B = xor i32 %A, -2147483648
+       %C = icmp sgt i32 %B, -1
+       ret i1 %C
+ }
+ 
+ define i1 @test1(i32 %A) {
+       %B = xor i32 %A, 12345
+       %C = icmp slt i32 %B, 0
+       ret i1 %C
+ }
+ 



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

Reply via email to