[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ELF / comdat-reloc.s
blobe4bc84778ecd544c6ebc8d655ddbd0ce718f40ad
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s
3 .text
4 .globl hello
5 .type hello,@function
6 hello:
7 call world
8 ret
10 .section .text.world,"axG",@progbits,world,comdat
11 .type world,@function
12 world:
13 call doctor
14 ret
16 // CHECK: Name: .group
17 // CHECK-NOT: SectionData
18 // CHECK: SectionData
19 // CHECK-NEXT: 0000: 01000000 05000000 06000000
21 // CHECK: Index: 5
22 // CHECK-NEXT: Name: .text.world
23 // CHECK-NOT: Section {
24 // CHECK: SHF_GROUP
26 // CHECK: Index: 6
27 // CHECK-NEXT: Name: .rela.text.world
28 // CHECK-NOT: Section {
29 // CHECK: SHF_GROUP