repo.or.cz
/
llvm
/
zpu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
zpu: simple fn with stack slots compile
[llvm/zpu.git]
/
test
/
CodeGen
/
ARM
/
ifcvt1.ll
blob
e6aa044564a2b6459774965287f722f50166e62f
1
; RUN: llc < %s -march=arm
2
; RUN: llc < %s -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
}