Move tests to FileCheck.
[oota-llvm.git] / test / CodeGen / ARM / ifcvt1.ll
1 ; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s
2
3 define i32 @t1(i32 %a, i32 %b) {
4 ; CHECK: t1:
5         %tmp2 = icmp eq i32 %a, 0
6         br i1 %tmp2, label %cond_false, label %cond_true
7
8 cond_true:
9 ; CHECK: subeq r0, r1, #1
10         %tmp5 = add i32 %b, 1
11         ret i32 %tmp5
12
13 cond_false:
14 ; CHECK: addne r0, r1, #1
15         %tmp7 = add i32 %b, -1
16         ret i32 %tmp7
17 }