[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ELF / section-sym2.s
blobb404ef79414df3d040a65eaca89023290f0b291e
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols -r --expand-relocs - | FileCheck %s
3 // Test that we can forward reference a section.
5 mov .rodata, %rsi
6 .section .rodata
8 // CHECK:Relocations [
9 // CHECK: Section {{.*}} .rela.text {
10 // CHECK: Relocation {
11 // CHECK: Offset: 0x4
12 // CHECK: Type: R_X86_64_32S (11)
13 // CHECK: Symbol: .rodata
14 // CHECK: Addend: 0x0
15 // CHECK: }
16 // CHECK: }
17 // CHECK:]
19 // There is only one .rodata symbol
21 // CHECK:Symbols [
22 // CHECK: Type: Section (0x3)
23 // CHECK: Section: .rodata
24 // CHECK-NOT: Section: .rodata