xref: /llvm-project/llvm/test/CodeGen/X86/tailjmp_gotpcrel_relax_relocation.ll (revision e63ea9d6f7b1d15f4819e6af8ee9452046e1548c)
1; RUN: llc -filetype=obj -x86-relax-relocations=true -mtriple=x86_64-linux-gnu -o - %s |  llvm-objdump - -d -r | FileCheck %s
2
3; CHECK: jmpq *(%rip)
4; CHECK-NEXT: R_X86_64_GOTPCRELX
5
6define i32 @main() {
7entry:
8  %call = tail call i32 @foo()
9  ret i32 %call
10}
11
12; Function Attrs: nonlazybind
13declare i32 @foo() #1
14
15attributes #1 = { nonlazybind }
16