Xamarin Public Jenkins (auto-signing) e19d552987 Imported Upstream version 5.18.0.161
Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
2018-10-19 08:34:24 +00:00

31 lines
724 B
LLVM

; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux-gnu -relocation-model=pic \
; RUN: | FileCheck -check-prefix=X64 %s
; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux-gnu \
; RUN: | FileCheck -check-prefix=X64 %s
define i32 @main() #0 {
; X64: callq *_Z3foov@GOTPCREL(%rip)
; X64: callq _Z3barv
; X64: callq _Z3bazv
entry:
%retval = alloca i32, align 4
store i32 0, i32* %retval, align 4
%call1 = call i32 @_Z3foov()
%call2 = call i32 @_Z3barv()
%call3 = call i32 @_Z3bazv()
ret i32 0
}
; Function Attrs: nonlazybind
declare i32 @_Z3foov() #1
declare i32 @_Z3barv() #2
; Function Attrs: nonlazybind
declare hidden i32 @_Z3bazv() #3
attributes #1 = { nonlazybind }
attributes #3 = { nonlazybind }