diff options
Diffstat (limited to 'test/CodeGen/X86/rip-rel-address.ll')
-rw-r--r-- | test/CodeGen/X86/rip-rel-address.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/rip-rel-address.ll b/test/CodeGen/X86/rip-rel-address.ll new file mode 100644 index 0000000000..2c0926a654 --- /dev/null +++ b/test/CodeGen/X86/rip-rel-address.ll @@ -0,0 +1,7 @@ +; 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 +} |