repo.or.cz
/
llvm
/
msp430.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'master' into msp430
[llvm/msp430.git]
/
test
/
CodeGen
/
CBackend
/
2008-05-31-BoolOverflow.ll
blob
52e025900780f0b32bd9878e2e86f3cf35af92ea
1
; RUN: llvm-as < %s | llc -march=c | grep {llvm_cbe_t.*&1}
2
define i32 @test(i32 %r) {
3
%s = icmp eq i32 %r, 0
4
%t = add i1 %s, %s
5
%u = zext i1 %t to i32
6
br i1 %t, label %A, label %B
7
A:
8
9
ret i32 %u
10
B:
11
12
%v = select i1 %t, i32 %r, i32 %u
13
ret i32 %v
14
}