mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 21:05:23 +00:00
c95df8b6d8
llvm-svn: 81257
18 lines
319 B
LLVM
18 lines
319 B
LLVM
; This test makes sure that these instructions are properly eliminated.
|
|
;
|
|
; RUN: opt %s -instcombine -S | 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
|
|
}
|
|
|