Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / merge-gc-piece2.s
blobc16e37b8e4e1c70de2e3ac318d3b2c40eae7aacb
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 --gc-sections
4 # RUN: llvm-readobj -S --section-data %t.so | FileCheck %s
6 # CHECK: Name: .bar
7 # CHECK-NEXT: Type: SHT_PROGBITS
8 # CHECK-NEXT: Flags [
9 # CHECK-NEXT: ]
10 # CHECK-NEXT: Address:
11 # CHECK-NEXT: Offset:
12 # CHECK-NEXT: Size: 16
13 # CHECK-NEXT: Link:
14 # CHECK-NEXT: Info:
15 # CHECK-NEXT: AddressAlignment:
16 # CHECK-NEXT: EntrySize:
17 # CHECK-NEXT: SectionData (
18 # CHECK-NEXT: 0000: 01000000 00000000 02000000 00000000
19 # CHECK-NEXT: )
21 .section .foo,"aM",@progbits,8
22 .quad 42
23 .quad 43
25 .section .bar
26 .quad .foo + 1
27 .quad .foo + 2