mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
377a5c1a87
C1-X <u C2 -> (X|(C2-1)) == C1 C1-X >u C2 -> (X|C2) == C1 X-C1 <u C2 -> (X & -C2) == C1 X-C1 >u C2 -> (X & ~C2) == C1 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185909 91177308-0d34-0410-b5e6-96231b3b80d8
9 lines
268 B
LLVM
9 lines
268 B
LLVM
; RUN: opt < %s -instcombine -S | grep "ugt.*, 1"
|
|
|
|
define i1 @test(i32 %tmp1030) {
|
|
%tmp1037 = icmp ne i32 %tmp1030, 39 ; <i1> [#uses=1]
|
|
%tmp1039 = icmp ne i32 %tmp1030, 40 ; <i1> [#uses=1]
|
|
%tmp1042 = and i1 %tmp1037, %tmp1039 ; <i1> [#uses=1]
|
|
ret i1 %tmp1042
|
|
}
|