llvm.org GIT mirror llvm / 0a6ee6d test / CodeGen / X86 / 2004-10-08-SelectSetCCFold.llx
0a6ee6d

Tree @0a6ee6d (Download .tar.gz)

2004-10-08-SelectSetCCFold.llx @0a6ee6draw · history · blame

1
2
3
4
5
6
7
; RUN: llvm-as < %s | llc -march=x86

define i1 @test(i1 %C, i1 %D, i32 %X, i32 %Y) {
        %E = icmp slt i32 %X, %Y                ; <i1> [#uses=1]
        %F = select i1 %C, i1 %D, i1 %E         ; <i1> [#uses=1]
        ret i1 %F
}