projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
LegalizeTypes support for VSETCC. Fixes PR2575.
[oota-llvm.git]
/
test
/
CodeGen
/
CBackend
/
2008-05-31-BoolOverflow.ll
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
}