| Dmitry Polukhin | 24c4f28 | 2016-04-08 06:45:19 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s -o - | llc -filetype=asm | FileCheck %s |
| 2 | |||||
| 3 | target triple = "x86_64-unknown-linux-gnu" | ||||
| 4 | |||||
| 5 | define internal i64 @foo_ifunc() { | ||||
| 6 | entry: | ||||
| 7 | ret i64 0 | ||||
| 8 | } | ||||
| 9 | ; CHECK: .type foo_ifunc,@function | ||||
| 10 | ; CHECK-NEXT: foo_ifunc: | ||||
| 11 | |||||
| 12 | @foo = ifunc i32 (i32), i64 ()* @foo_ifunc | ||||
| 13 | ; CHECK: .type foo,@function | ||||
| 14 | ; CHECK-NEXT: .type foo,@gnu_indirect_function | ||||
| 15 | ; CHECK-NEXT: foo = foo_ifunc | ||||