1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s | FileCheck %s
4 target datalayout = "e-m:o-p:32:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32"
5 target triple = "thumbv7-apple-ios8.0.0"
8 define void @f(i32 %val) optsize minsize {
11 ; CHECK-NEXT: mov r1, r0
12 ; CHECK-NEXT: movs r0, #1
13 ; CHECK-NEXT: cbz r1, LBB0_6
14 ; CHECK-NEXT: @ %bb.1:
15 ; CHECK-NEXT: movw r2, #1154
16 ; CHECK-NEXT: cmp r1, r2
17 ; CHECK-NEXT: beq LBB0_4
18 ; CHECK-NEXT: @ %bb.2:
19 ; CHECK-NEXT: movw r2, #994
20 ; CHECK-NEXT: cmp r1, r2
21 ; CHECK-NEXT: beq LBB0_5
22 ; CHECK-NEXT: @ %bb.3:
23 ; CHECK-NEXT: cmp r1, #9
25 ; CHECK-NEXT: movne r0, #11
26 ; CHECK-NEXT: b LBB0_6
27 ; CHECK-NEXT: LBB0_4: @ %four
28 ; CHECK-NEXT: movs r0, #87
29 ; CHECK-NEXT: b LBB0_6
30 ; CHECK-NEXT: LBB0_5: @ %three
31 ; CHECK-NEXT: movs r0, #78
32 ; CHECK-NEXT: LBB0_6: @ %common.ret
33 ; CHECK-NEXT: str lr, [sp, #-4]!
35 ; CHECK-NEXT: ldr lr, [sp], #4
37 switch i32 %val, label %def [