1 ; This test makes sure that these instructions are properly eliminated.
4 ; RUN: llvm-as < %s | opt -instcombine -disable-output &&
5 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 'xor '
8 define i1 @test0(i32 %A) {
9 %B = xor i32 %A, -2147483648
10 %C = icmp sgt i32 %B, -1
14 define i1 @test1(i32 %A) {
15 %B = xor i32 %A, 12345
16 %C = icmp slt i32 %B, 0