blob: e6aa044564a2b6459774965287f722f50166e62f [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=arm
2; RUN: llc < %s -march=arm | grep bx | count 1
Evan Cheng60c916b2007-06-20 18:26:15 +00003
4define i32 @t1(i32 %a, i32 %b) {
5 %tmp2 = icmp eq i32 %a, 0
6 br i1 %tmp2, label %cond_false, label %cond_true
7
8cond_true:
9 %tmp5 = add i32 %b, 1
10 ret i32 %tmp5
11
12cond_false:
13 %tmp7 = add i32 %b, -1
14 ret i32 %tmp7
15}