blob: 1afa4cad30d2517a87de23a785d1f028b78cce92 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic \
2; RUN: -o %t -f
3; RUN: grep _GLOBAL_OFFSET_TABLE_ %t
4; RUN: grep piclabel %t | wc -l | grep 3
5; RUN: grep PLT %t | wc -l | grep 6
6; RUN: grep GOTOFF %t | wc -l | grep 1
7; RUN: grep JTI %t | wc -l | grep 8
8
9define void @bar(i32 %n.u) {
10entry:
11 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 ]
12bb:
13 tail call void(...)* @foo1()
14 ret void
15bb1:
16 tail call void(...)* @foo2()
17 ret void
18bb2:
19 tail call void(...)* @foo6()
20 ret void
21bb3:
22 tail call void(...)* @foo3()
23 ret void
24bb4:
25 tail call void(...)* @foo4()
26 ret void
27bb5:
28 tail call void(...)* @foo5()
29 ret void
30bb6:
31 tail call void(...)* @foo1()
32 ret void
33bb7:
34 tail call void(...)* @foo2()
35 ret void
36bb8:
37 tail call void(...)* @foo6()
38 ret void
39bb9:
40 tail call void(...)* @foo3()
41 ret void
42bb10:
43 tail call void(...)* @foo4()
44 ret void
45bb11:
46 tail call void(...)* @foo5()
47 ret void
48bb12:
49 tail call void(...)* @foo6()
50 ret void
51}
52
53declare void @foo1(...)
54declare void @foo2(...)
55declare void @foo6(...)
56declare void @foo3(...)
57declare void @foo4(...)
58declare void @foo5(...)