blob: c0347c78479996ad2979b0b220689214be82e08c [file] [log] [blame]
Evan Cheng6e2ebc92009-07-25 00:33:29 +00001; RUN: llvm-as < %s | llc -mtriple=thumbv7-apple-darwin | FileCheck %s
Evan Cheng775dd612009-07-24 06:01:46 +00002; RUN: llvm-as < %s | llc -mtriple=thumbv7-apple-darwin -relocation-model=pic | FileCheck %s
Evan Cheng41799702009-06-24 23:47:58 +00003
4define void @bar(i32 %n.u) {
5entry:
Evan Cheng775dd612009-07-24 06:01:46 +00006; CHECK: bar:
Evan Cheng1b2b3e22009-07-29 02:18:14 +00007; CHECK: tbb
Evan Cheng6e2ebc92009-07-25 00:33:29 +00008
Evan Cheng41799702009-06-24 23:47:58 +00009 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 ]
10bb:
11 tail call void(...)* @foo1()
12 ret void
13bb1:
14 tail call void(...)* @foo2()
15 ret void
16bb2:
17 tail call void(...)* @foo6()
18 ret void
19bb3:
20 tail call void(...)* @foo3()
21 ret void
22bb4:
23 tail call void(...)* @foo4()
24 ret void
25bb5:
26 tail call void(...)* @foo5()
27 ret void
28bb6:
29 tail call void(...)* @foo1()
30 ret void
31bb7:
32 tail call void(...)* @foo2()
33 ret void
34bb8:
35 tail call void(...)* @foo6()
36 ret void
37bb9:
38 tail call void(...)* @foo3()
39 ret void
40bb10:
41 tail call void(...)* @foo4()
42 ret void
43bb11:
44 tail call void(...)* @foo5()
45 ret void
46bb12:
47 tail call void(...)* @foo6()
48 ret void
49}
50
51declare void @foo1(...)
52declare void @foo2(...)
53declare void @foo6(...)
54declare void @foo3(...)
55declare void @foo4(...)
56declare void @foo5(...)