mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
7f70559bc4
* PIC-aware internal structures in X86 Codegen have been refactored * Visibility (default/weak) has been added * Docs fixes (external weak linkage, visibility, formatting) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33136 91177308-0d34-0410-b5e6-96231b3b80d8
58 lines
1.7 KiB
LLVM
58 lines
1.7 KiB
LLVM
; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic &&
|
|
; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep _GLOBAL_OFFSET_TABLE_ &&
|
|
; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep piclabel | wc -l | grep 3 &&
|
|
; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep PLT | wc -l | grep 13 &&
|
|
; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep GOTOFF | wc -l | grep 1 &&
|
|
; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep JTI | wc -l | grep 15
|
|
|
|
define void %bar(i32 %n.u) {
|
|
entry:
|
|
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 ]
|
|
bb:
|
|
tail call void(...)* %foo1()
|
|
ret void
|
|
bb1:
|
|
tail call void(...)* %foo2()
|
|
ret void
|
|
bb2:
|
|
tail call void(...)* %foo6()
|
|
ret void
|
|
bb3:
|
|
tail call void(...)* %foo3()
|
|
ret void
|
|
bb4:
|
|
tail call void(...)* %foo4()
|
|
ret void
|
|
bb5:
|
|
tail call void(...)* %foo5()
|
|
ret void
|
|
bb6:
|
|
tail call void(...)* %foo1()
|
|
ret void
|
|
bb7:
|
|
tail call void(...)* %foo2()
|
|
ret void
|
|
bb8:
|
|
tail call void(...)* %foo6()
|
|
ret void
|
|
bb9:
|
|
tail call void(...)* %foo3()
|
|
ret void
|
|
bb10:
|
|
tail call void(...)* %foo4()
|
|
ret void
|
|
bb11:
|
|
tail call void(...)* %foo5()
|
|
ret void
|
|
bb12:
|
|
tail call void(...)* %foo6()
|
|
ret void
|
|
}
|
|
|
|
declare void %foo1(...)
|
|
declare void %foo2(...)
|
|
declare void %foo6(...)
|
|
declare void %foo3(...)
|
|
declare void %foo4(...)
|
|
declare void %foo5(...)
|