blob: 076103133fa96a282ab6f72efcbc36554e57e761 [file] [log] [blame]
Dan Gohman0cb2f672009-09-11 18:36:27 +00001; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1
Rafael Espindolae0ac18d2008-06-09 09:52:31 +00002; RUN: grep {leaq f(%rip),} %t1
3; RUN: not grep GOTPCREL %t1
4
Chris Lattner0249bee2009-06-27 04:07:31 +00005define void ()* @g() nounwind {
Rafael Espindolae0ac18d2008-06-09 09:52:31 +00006entry:
7 ret void ()* @f
8}
9
Chris Lattner0249bee2009-06-27 04:07:31 +000010define internal void @f() nounwind {
Rafael Espindolae0ac18d2008-06-09 09:52:31 +000011entry:
12 ret void
13}