source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/ifcvt3.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 733 bytes
Line 
1; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 %s -o - | FileCheck %s
2; RUN: llc -mtriple=arm-eabi -mattr=+v4t %s -o - | FileCheck %s -check-prefix CHECK-V4-CMP
3; RUN: llc -mtriple=arm-eabi -mattr=+v4t %s -o - | FileCheck %s -check-prefix CHECK-V4-BX
4
5define i32 @t1(i32 %a, i32 %b, i32 %c, i32 %d) {
6; CHECK-LABEL: t1:
7; CHECK: cmp r2, #7
8; CHECK: cmpne r2, #1
9        switch i32 %c, label %cond_next [
10                 i32 1, label %cond_true
11                 i32 7, label %cond_true
12        ]
13
14cond_true:
15; CHECK: addne r0
16; CHECK: bxne
17        %tmp12 = add i32 %a, 1
18        %tmp1518 = add i32 %tmp12, %b
19        ret i32 %tmp1518
20
21cond_next:
22        %tmp15 = add i32 %b, %a
23        ret i32 %tmp15
24}
25
26; CHECK-V4-CMP: cmpne
27; CHECK-V4-CMP-NOT: cmpne
28
29; CHECK-V4-BX: bx
30; CHECK-V4-BX: bx
31; CHECK-V4-BX-NOT: bx
32
Note: See TracBrowser for help on using the repository browser.