mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-05 13:09:10 +00:00
fce288fc91
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81293 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
250 B
LLVM
15 lines
250 B
LLVM
; RUN: llc < %s -march=c | grep {llvm_cbe_t.*&1}
|
|
define i32 @test(i32 %r) {
|
|
%s = icmp eq i32 %r, 0
|
|
%t = add i1 %s, %s
|
|
%u = zext i1 %t to i32
|
|
br i1 %t, label %A, label %B
|
|
A:
|
|
|
|
ret i32 %u
|
|
B:
|
|
|
|
%v = select i1 %t, i32 %r, i32 %u
|
|
ret i32 %v
|
|
}
|