Convert tests using "| wc -l | grep ..." to use the count script.
[oota-llvm.git] / test / CodeGen / ARM / ifcvt3.ll
1 ; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion
2 ; 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
4
5 define 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
11 cond_true:
12         %tmp12 = add i32 %a, 1
13         %tmp1518 = add i32 %tmp12, %b
14         ret i32 %tmp1518
15
16 cond_next:
17         %tmp15 = add i32 %b, %a
18         ret i32 %tmp15
19 }