Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / i386-pc16.test
blobe0ae31d2da000bb28be3d9fb5f3deb7273e5bc82
1 # REQUIRES: x86
3 # RUN: yaml2obj %s -o %t.o
4 # RUN: ld.lld -Ttext 0x0 %t.o -o %t.exe
5 # RUN: llvm-objdump -s --section=.text %t.exe 2>&1 | FileCheck %s
7 # CHECK:      Contents of section .text:
8 # CHECK-NEXT:  0000 45231111 41231111
10 !ELF
11 FileHeader:
12   Class:           ELFCLASS32
13   Data:            ELFDATA2LSB
14   Type:            ET_REL
15   Machine:         EM_386
16 Sections:
17   - Type:            SHT_PROGBITS
18     Name:            .text
19     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
20     AddressAlign:    0x04
21     Content:         "1111111111111111"
22   - Type:            SHT_REL
23     Name:            .rel.text
24     Link:            .symtab
25     Info:            .text
26     AddressAlign:    0x04
27     Relocations:
28       - Symbol:          _start
29         Type:            R_386_16
30       - Offset:          4
31         Symbol:          _start
32         Type:            R_386_PC16
33 Symbols:
34   - Name:     _start
35     Type:     STT_FUNC
36     Section:  .text
37     Value:    0x1234
38     Size:     4
39     Binding:  STB_GLOBAL