llvm.org GIT mirror llvm / release_90 test / CodeGen / X86 / tailjmp_gotpcrel_relax_relocation.ll
release_90

Tree @release_90 (Download .tar.gz)

tailjmp_gotpcrel_relax_relocation.ll @release_90raw · history · blame

; RUN: llc -filetype=obj -relax-elf-relocations=true -mtriple=x86_64-linux-gnu -o - %s |  llvm-objdump - -d -r | FileCheck %s

; CHECK: jmpq *(%rip)
; CHECK-NEXT: R_X86_64_GOTPCRELX

define i32 @main() {
entry:
  %call = tail call i32 @foo()
  ret i32 %call
}

; Function Attrs: nonlazybind
declare i32 @foo() #1

attributes #1 = { nonlazybind }