Change these tests to feed the assembly files to opt directly, instead
[oota-llvm.git] / test / Transforms / InstCombine / xor2.ll
1 ; This test makes sure that these instructions are properly eliminated.
2 ;
3 ; RUN: opt %s -instcombine | llvm-dis | not grep {xor }
4
5 ; PR1253
6 define i1 @test0(i32 %A) {
7         %B = xor i32 %A, -2147483648
8         %C = icmp sgt i32 %B, -1
9         ret i1 %C
10 }
11
12 define i1 @test1(i32 %A) {
13         %B = xor i32 %A, 12345
14         %C = icmp slt i32 %B, 0
15         ret i1 %C
16 }
17