[RemoveDIs][DebugInfo] Update SROA to handle DPVAssigns (#78475)
[llvm-project.git] / llvm / test / MC / ELF / ifunc-gnu.s
blobfe80562bdcc416fac74b16089ec736f4383019a9
1 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux-gnu %s | llvm-readelf -hs - | FileCheck %s --check-prefixes=CHECK,GNU
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-freebsd %s | llvm-readelf -hs - | FileCheck %s --check-prefixes=CHECK,FREEBSD
4 .text
6 .type foo_impl,@function
7 foo_impl:
8 ret
10 .type foo_resolver,@function
11 foo_resolver:
12 mov $foo_impl, %rax
13 ret
15 .type foo,@gnu_indirect_function
16 .set foo,foo_resolver
18 ## ELFOSABI_NONE is changed to ELFOSABI_GNU. Other OSABI values are unchanged.
19 # GNU: OS/ABI: UNIX - GNU
20 # FREEBSD: OS/ABI: UNIX - FreeBSD
22 # CHECK: FUNC LOCAL DEFAULT 2 foo_impl
23 # CHECK-NEXT: FUNC LOCAL DEFAULT 2 foo_resolver
24 # CHECK-NEXT: IFUNC LOCAL DEFAULT 2 foo