diff options
Diffstat (limited to 'llvm/test/CodeGen/X86/x86-64-pic.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/x86-64-pic.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/x86-64-pic.ll b/llvm/test/CodeGen/X86/x86-64-pic.ll new file mode 100644 index 00000000000..76ed8894b41 --- /dev/null +++ b/llvm/test/CodeGen/X86/x86-64-pic.ll @@ -0,0 +1,8 @@ +; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic | FileCheck %s + +@g1 = private global i8 1 +define i8* @get_g1() { +; CHECK: get_g1: +; CHECK: leaq .Lg1(%rip), %rax + ret i8* @g1 +} |