diff options
Diffstat (limited to 'test/CodeGen/X86/x86-64-pic-8.ll')
-rw-r--r-- | test/CodeGen/X86/x86-64-pic-8.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/x86-64-pic-8.ll b/test/CodeGen/X86/x86-64-pic-8.ll new file mode 100644 index 0000000..d3b567c --- /dev/null +++ b/test/CodeGen/X86/x86-64-pic-8.ll @@ -0,0 +1,10 @@ +; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1 +; RUN: grep {leaq f(%rip),} %t1 +; RUN: not grep GOTPCREL %t1 + +define void ()* @g() { +entry: + ret void ()* @f +} + +declare hidden void @f() |