aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/no-plt.ll
blob: d6383c2d7d14c871a91ec6bf9d5eff94f0429245 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
; 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 }