Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / i386-merge.s
blob2848bd9af0d84f0cc2828f77202bb3a81c8b898e
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %s -o %t.o
3 // RUN: ld.lld %t.o -o %t -shared
4 // RUN: llvm-readobj -S --section-data %t | FileCheck %s
6 // CHECK: Name: .mysec
7 // CHECK-NEXT: Type:
8 // CHECK-NEXT: Flags [
9 // CHECK-NEXT: SHF_ALLOC
10 // CHECK-NEXT: SHF_MERGE
11 // CHECK-NEXT: ]
12 // CHECK-NEXT: Address: 0x178
13 // CHECK-NEXT: Offset:
14 // CHECK-NEXT: Size:
15 // CHECK-NEXT: Link:
16 // CHECK-NEXT: Info:
17 // CHECK-NEXT: AddressAlignment:
18 // CHECK-NEXT: EntrySize:
19 // CHECK-NEXT: SectionData (
20 // CHECK-NEXT: 0000: 42000000 |
21 // CHECK-NEXT: )
24 // CHECK: Name: .data
25 // CHECK-NEXT: Type: SHT_PROGBITS
26 // CHECK-NEXT: Flags [
27 // CHECK-NEXT: SHF_ALLOC
28 // CHECK-NEXT: SHF_WRITE
29 // CHECK-NEXT: ]
30 // CHECK-NEXT: Address: 0x31D4
31 // CHECK-NEXT: Offset: 0x1D4
32 // CHECK-NEXT: Size: 4
33 // CHECK-NEXT: Link: 0
34 // CHECK-NEXT: Info: 0
35 // CHECK-NEXT: AddressAlignment: 1
36 // CHECK-NEXT: EntrySize: 0
37 // CHECK-NEXT: SectionData (
38 // CHECK-NEXT: 0000: 78010000 |
39 // CHECK-NEXT: )
41 // The content of .data should be the address of .mysec.
43 .data
44 .long .mysec+4
46 .section .mysec,"aM",@progbits,4
47 .align 4
48 .long 0x42
49 .long 0x42