Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / ELF / ifunc-alias.s
blobb3303d97907e8aef6fc85346bdaf53527c09c71d
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readelf -s - | FileCheck %s
2 .text
4 .type foo_impl,@function
5 foo_impl:
6 ret
8 .type foo_resolver,@function
9 foo_resolver:
10 mov $foo_impl, %rax
11 ret
13 .type foo,@gnu_indirect_function
14 .set foo,foo_resolver
16 // All things below should be IFunc identical to 'foo'
17 .set foo2,foo
18 .set foo3,foo2
19 .type foo4,@function
20 .set foo4,foo3
22 // But tls_object should not be IFunc
23 .set tls,foo
24 .type tls,@tls_object
26 // CHECK: FUNC LOCAL DEFAULT 2 foo_impl
27 // CHECK-NEXT: FUNC LOCAL DEFAULT 2 foo_resolver
28 // CHECK-NEXT: IFUNC LOCAL DEFAULT 2 foo
29 // CHECK-NEXT: IFUNC LOCAL DEFAULT 2 foo2
30 // CHECK-NEXT: IFUNC LOCAL DEFAULT 2 foo3
31 // CHECK-NEXT: IFUNC LOCAL DEFAULT 2 foo4
32 // CHECK-NEXT: TLS LOCAL DEFAULT 2 tls