[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / tools / llvm-objdump / X86 / elf-disassemble-bss.test
blobed4340331f2d05ce1967a0621f119eeb5d2f6be2
1 ## Check that when BSS is larger than the file llvm-objdump doesn't
2 ## assert with an unexpected end of file error.
3 # RUN: yaml2obj --docnum=1 %s -o %t
4 # RUN: yaml2obj --docnum=2 %s -o %t.2
5 # RUN: llvm-objdump -D %t | FileCheck %s
6 # RUN: llvm-objdump -D %t.2 | FileCheck %s
8 # CHECK: Disassembly of section .bss:
9 # CHECK: <.bss>:
10 # CHECK-NEXT: ...
12 --- !ELF
13 FileHeader:
14   Class:           ELFCLASS64
15   Data:            ELFDATA2LSB
16   Type:            ET_EXEC
17   Machine:         EM_X86_64
18 Sections:
19   - Name:            .bss
20     Type:            SHT_NOBITS
21     Flags:           [ SHF_WRITE, SHF_ALLOC ]
22     Size:            0x0000000000001000
23 ...
25 --- !ELF
26 FileHeader:
27   Class:           ELFCLASS64
28   Data:            ELFDATA2LSB
29   Type:            ET_EXEC
30   Machine:         EM_X86_64
31 Sections:
32   - Name:            .bss
33     Type:            SHT_NOBITS
34     Flags:           [ SHF_WRITE, SHF_ALLOC ]
35     Size:            0x0000000000001000
36     ShOffset:        0x0000000080000000
37 ...