llvm-6502/test/CodeGen/X86/rip-rel-address.ll

8 lines
188 B
LLVM
Raw Normal View History

; RUN: llvm-as < %s | llc -march=x86-64 -relocation-model=static | grep {a(%rip)}
@a = internal global double 3.4
define double @foo() nounwind {
%a = load double* @a
ret double %a
}