blob: f7ebac6f2bac97aa6b9c03ad02dbd670931fa268 [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=arm
2; RUN: llc < %s -march=arm | grep cmpne | count 1
3; RUN: llc < %s -march=arm | grep bx | count 2
Evan Cheng60c916b2007-06-20 18:26:15 +00004
5define i32 @t1(i32 %a, i32 %b, i32 %c, i32 %d) {
6 switch i32 %c, label %cond_next [
7 i32 1, label %cond_true
8 i32 7, label %cond_true
9 ]
10
11cond_true:
12 %tmp12 = add i32 %a, 1
13 %tmp1518 = add i32 %tmp12, %b
14 ret i32 %tmp1518
15
16cond_next:
17 %tmp15 = add i32 %b, %a
18 ret i32 %tmp15
19}