Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / merge-align.s
blob15304b1a129dc28cf1e582337f78abd90477be5a
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 // RUN: ld.lld %t.o -o %t.so -shared
4 // RUN: llvm-readobj -S --section-data %t.so | FileCheck %s
6 .section .rodata.foo,"aM",@progbits,1
7 .align 16
8 .byte 0x42
10 .section .rodata.bar,"aM",@progbits,1
11 .align 16
12 .byte 0x42
14 .section .rodata.zed,"aM",@progbits,1
15 .align 16
16 .byte 0x41
18 // CHECK: Name: .rodata (
19 // CHECK-NEXT: Type: SHT_PROGBITS
20 // CHECK-NEXT: Flags [
21 // CHECK-NEXT: SHF_ALLOC
22 // CHECK-NEXT: SHF_MERGE
23 // CHECK-NEXT: ]
24 // CHECK-NEXT: Address:
25 // CHECK-NEXT: Offset:
26 // CHECK-NEXT: Size: 17
27 // CHECK-NEXT: Link: 0
28 // CHECK-NEXT: Info: 0
29 // CHECK-NEXT: AddressAlignment: 16
30 // CHECK-NEXT: EntrySize: 1
31 // CHECK-NEXT: SectionData (
32 // CHECK-NEXT: 0000: 41000000 00000000 00000000 00000000 |
33 // CHECK-NEXT: 0010: 42 |
34 // CHECK-NEXT: )