llvm-for-llvmta/test/CodeGen/X86/x86-64-pic-7.ll

14 lines
350 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic | FileCheck %s
define void ()* @g() nounwind {
; CHECK-LABEL: g:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: movq f@{{.*}}(%rip), %rax
; CHECK-NEXT: retq
entry:
ret void ()* @f
}
declare void @f()