[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ELF / comdat-name-number.s
blob6bfa30e4d28e56faff80fcf26b4b4a9b2ae487d8
1 // RUN: llvm-mc -triple x86_64-pc-linux-gnu %s -filetype=obj -o %t.o
2 // RUN: llvm-readobj --section-groups %t.o | FileCheck %s
4 // Test that we can handle numeric COMDAT names.
6 .section .foo,"G",@progbits,123,comdat
7 .section .bar,"G",@progbits,abc,comdat
9 // CHECK: Groups {
10 // CHECK-NEXT: Group {
11 // CHECK-NEXT: Name: .group
12 // CHECK-NEXT: Index:
13 // CHECK-NEXT: Link:
14 // CHECK-NEXT: Info:
15 // CHECK-NEXT: Type: COMDAT
16 // CHECK-NEXT: Signature: 123
17 // CHECK-NEXT: Section(s) in group [
18 // CHECK-NEXT: .foo
19 // CHECK-NEXT: ]
20 // CHECK-NEXT: }
21 // CHECK-NEXT: Group {
22 // CHECK-NEXT: Name: .group
23 // CHECK-NEXT: Index:
24 // CHECK-NEXT: Link:
25 // CHECK-NEXT: Info:
26 // CHECK-NEXT: Type: COMDAT
27 // CHECK-NEXT: Signature: abc
28 // CHECK-NEXT: Section(s) in group [
29 // CHECK-NEXT: .bar
30 // CHECK-NEXT: ]
31 // CHECK-NEXT: }
32 // CHECK-NEXT: }