| ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic \ |
| ; RUN: grep _GLOBAL_OFFSET_TABLE_ %t |
| ; RUN: grep piclabel %t | count 3 |
| ; RUN: grep PLT %t | count 6 |
| ; RUN: grep GOTOFF %t | count 14 |
| ; RUN: grep JTI %t | count 2 |
| ; RUN: llvm-as < %s | llc -mtriple=x86_64-pc-linux-gnu -relocation-model=pic > %t |
| ; RUN: grep {LJTI1_0(%rip)} %t |
| define void @bar(i32 %n.u) nounwind { |
| 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 ] |
| tail call void(...)* @foo1() |
| tail call void(...)* @foo2() |
| tail call void(...)* @foo6() |
| tail call void(...)* @foo3() |
| tail call void(...)* @foo4() |
| tail call void(...)* @foo5() |
| tail call void(...)* @foo1() |
| tail call void(...)* @foo2() |
| tail call void(...)* @foo6() |
| tail call void(...)* @foo3() |
| tail call void(...)* @foo4() |
| tail call void(...)* @foo5() |
| tail call void(...)* @foo6() |