Rafael Espindola | e0ac18d | 2008-06-09 09:52:31 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | \ |
Dan Gohman | 2d65d35 | 2009-08-25 15:38:29 +0000 | [diff] [blame] | 2 | ; RUN: llc -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1 |
Rafael Espindola | e0ac18d | 2008-06-09 09:52:31 +0000 | [diff] [blame] | 3 | ; RUN: grep {leaq f(%rip),} %t1 |
4 | ; RUN: not grep GOTPCREL %t1 | ||||
5 | |||||
6 | define void ()* @g() { | ||||
7 | entry: | ||||
8 | ret void ()* @f | ||||
9 | } | ||||
10 | |||||
11 | declare hidden void @f() |