From 01095a5d43bbfde13731688ddcf6048ebb8b7721 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 23 Jul 2016 20:41:05 +0000 Subject: Vendor import of llvm release_39 branch r276489: https://llvm.org/svn/llvm-project/llvm/branches/release_39@276489 --- test/CodeGen/X86/x86-64-pic.ll | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/CodeGen/X86/x86-64-pic.ll (limited to 'test/CodeGen/X86/x86-64-pic.ll') diff --git a/test/CodeGen/X86/x86-64-pic.ll b/test/CodeGen/X86/x86-64-pic.ll new file mode 100644 index 000000000000..76ed8894b417 --- /dev/null +++ b/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 +} -- cgit v1.3