c0347c78479996ad2979b0b220689214be82e08c
[oota-llvm.git] / test / CodeGen / Thumb2 / thumb2-tbb.ll
1 ; RUN: llvm-as < %s | llc -mtriple=thumbv7-apple-darwin | FileCheck %s
2 ; RUN: llvm-as < %s | llc -mtriple=thumbv7-apple-darwin -relocation-model=pic | FileCheck %s
3
4 define void @bar(i32 %n.u) {
5 entry:
6 ; CHECK: bar:
7 ; CHECK: tbb
8
9     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 ]
10 bb:
11     tail call void(...)* @foo1()
12     ret void
13 bb1:
14     tail call void(...)* @foo2()
15     ret void
16 bb2:
17     tail call void(...)* @foo6()
18     ret void
19 bb3:
20     tail call void(...)* @foo3()
21     ret void
22 bb4:
23     tail call void(...)* @foo4()
24     ret void
25 bb5:
26     tail call void(...)* @foo5()
27     ret void
28 bb6:
29     tail call void(...)* @foo1()
30     ret void
31 bb7:
32     tail call void(...)* @foo2()
33     ret void
34 bb8:
35     tail call void(...)* @foo6()
36     ret void
37 bb9:
38     tail call void(...)* @foo3()
39     ret void
40 bb10:
41     tail call void(...)* @foo4()
42     ret void
43 bb11:
44     tail call void(...)* @foo5()
45     ret void
46 bb12:
47     tail call void(...)* @foo6()
48     ret void
49 }
50
51 declare void @foo1(...)
52 declare void @foo2(...)
53 declare void @foo6(...)
54 declare void @foo3(...)
55 declare void @foo4(...)
56 declare void @foo5(...)