[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ELF / ifunc-reloc.s
blob726fa2a3b75b535edc714e7f927d3b92acf1705a
1 # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r - | FileCheck %s
2 .global alias
3 .type alias, @function
4 alias:
5 callq global
7 .global global
8 .type global, @gnu_indirect_function
9 .set global, alias
11 .type local, @gnu_indirect_function
12 .set local, alias
14 ## Check we don't create the relocations with a section symbol for both global
15 ## They may result in IRELATIVE relocs that the dynamic loader will use to
16 ## resolve addresses at startup time.
17 .data
18 .quad global
19 .quad local
21 # CHECK: Relocations [
22 # CHECK-NEXT: Section {{.*}} .rela.text {
23 # CHECK-NEXT: 0x1 R_X86_64_PLT32 global 0xFFFFFFFFFFFFFFFC
24 # CHECK-NEXT: }
25 # CHECK-NEXT: Section {{.*}} .rela.data {
26 # CHECK-NEXT: 0x0 R_X86_64_64 global 0x0
27 # CHECK-NEXT: 0x8 R_X86_64_64 local 0x0
28 # CHECK-NEXT: }
29 # CHECK-NEXT: ]