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
/
ARM
/
ifcvt1.ll
blob
7d429550b3addde2d1ce6cd3e6afa554d6e30e45
1
; RUN: llvm-as < %s | llc -march=arm
2
; RUN: llvm-as < %s | llc -march=arm | grep bx | count 1
3
4
define i32 @t1(i32 %a, i32 %b) {
5
%tmp2 = icmp eq i32 %a, 0
6
br i1 %tmp2, label %cond_false, label %cond_true
7
8
cond_true:
9
%tmp5 = add i32 %b, 1
10
ret i32 %tmp5
11
12
cond_false:
13
%tmp7 = add i32 %b, -1
14
ret i32 %tmp7
15
}