]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - test/CodeGen/ARM/ifcvt1.ll
Mass update to CodeGen tests to use CHECK-LABEL for labels corresponding to function...
[opencl/llvm.git] / test / CodeGen / ARM / ifcvt1.ll
1 ; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s -check-prefix=A8
2 ; RUN: llc < %s -march=arm -mcpu=swift     | FileCheck %s -check-prefix=SWIFT
4 define i32 @t1(i32 %a, i32 %b) {
5 ; A8-LABEL: t1:
6 ; SWIFT-LABEL: t1:
7         %tmp2 = icmp eq i32 %a, 0
8         br i1 %tmp2, label %cond_false, label %cond_true
10 cond_true:
11 ; A8: subeq r0, r1, #1
12 ; SWIFT: sub r0, r1, #1
13         %tmp5 = add i32 %b, 1
14         ret i32 %tmp5
16 cond_false:
17 ; A8: addne r0, r1, #1
18 ; SWIFT: addne r0, r1, #1
19         %tmp7 = add i32 %b, -1
20         ret i32 %tmp7
21 }