1 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin | FileCheck %s
2 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin -relocation-model=pic | FileCheck %s
3 ; RUN: llc < %s -mtriple=thumbv6m-apple-darwin -relocation-model=static | FileCheck %s --check-prefix=THUMB1
4 ; RUN: llc < %s -mtriple=thumbv6m-apple-darwin -relocation-model=pic | FileCheck %s --check-prefix=THUMB1
6 define void @bar(i32 %n.u) {
10 ; CHECK: .data_region jt8
11 ; CHECK: .end_data_region
12 ; CHECK-NEXT: .p2align 1
16 ; THUMB1: .data_region jt8
17 ; THUMB1: .byte (LBB0_3-(LCPI0_0+4))/2
18 ; THUMB1: .end_data_region
19 ; THUMB1-NEXT: .p2align 1
21 switch i32 %n.u, label %bb12 [i32 1, label %bb i32 2, label %bb6 i32 4, label %bb7 i32 5, label %bb8 i32 6, label %bb10 i32 7, label %bb1 i32 8, label %bb3 i32 9, label %bb4 i32 10, label %bb9 i32 11, label %bb2 i32 12, label %bb5 i32 13, label %bb11 ]
23 tail call void(...) @foo1()
26 tail call void(...) @foo2()
29 tail call void(...) @foo6()
32 tail call void(...) @foo3()
35 tail call void(...) @foo4()
38 tail call void(...) @foo5()
41 tail call void(...) @foo1()
44 tail call void(...) @foo2()
47 tail call void(...) @foo6()
50 tail call void(...) @foo3()
53 tail call void(...) @foo4()
56 tail call void(...) @foo5()
59 tail call void(...) @foo6()
63 declare void @foo1(...)
64 declare void @foo2(...)
65 declare void @foo6(...)
66 declare void @foo3(...)
67 declare void @foo4(...)
68 declare void @foo5(...)