blob: fd1a6d1717ef37ed7e1adccf845b43320edcb4a8 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion
Dan Gohman8c89a502007-08-15 13:36:28 +00002; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep cmpne | count 1
3; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep bx | count 2
Dan Gohmanf17a25c2007-07-18 16:29:46 +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}