mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
39f56b6d16
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75087 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
381 B
LLVM
19 lines
381 B
LLVM
; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | FileCheck %s
|
|
|
|
; CHECK: bar:
|
|
; CHECK: call .Lllvm$1.$piclabel
|
|
; CHECK: popl %ebx
|
|
; CHECK: addl $_GLOBAL_OFFSET_TABLE_ + [.-.Lllvm$1.$piclabel], %ebx
|
|
; CHECK: call foo@PLT
|
|
|
|
|
|
define void @bar() nounwind {
|
|
entry:
|
|
call void(...)* @foo()
|
|
br label %return
|
|
return:
|
|
ret void
|
|
}
|
|
|
|
declare void @foo(...)
|