blob: 6231991ef206fd6c0ebae89b96975d468e8aeed8 [file] [log] [blame]
Rafael Espindolae0ac18d2008-06-09 09:52:31 +00001; RUN: llvm-as < %s | \
Dan Gohman2d65d352009-08-25 15:38:29 +00002; RUN: llc -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1
Rafael Espindolae0ac18d2008-06-09 09:52:31 +00003; RUN: grep {leaq f(%rip),} %t1
4; RUN: not grep GOTPCREL %t1
5
6define void ()* @g() {
7entry:
8 ret void ()* @f
9}
10
11declare hidden void @f()