1 # RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-objdump -s - | FileCheck %s --check-prefix=COFF-i386
3 # COFF-i386: file format
4 # COFF-i386: Contents of section .text:
5 # COFF-i386: 0000 83ec0cc7 44240800 000000c7 04240000 ....D$.......$..
6 # COFF-i386: 0010 0000e800 000000e8 00000000 8b442408 .............D$.
7 # COFF-i386: 0020 83c40cc3 ....
8 # COFF-i386: Contents of section .data:
9 # COFF-i386: 0000 48656c6c 6f20576f 726c6421 00 Hello World!.
11 # RUN: yaml2obj %s -o %t.elf-i386
12 # RUN: llvm-objdump -s %t.elf-i386 | FileCheck %s -DFILE=%t.elf-i386 --check-prefix=ELF-i386
14 # ELF-i386: [[FILE]]: file format
15 # ELF-i386: Contents of section .text:
16 # ELF-i386: 0000 83ec0cc7 44240800 000000c7 04240000 ....D$.......$..
17 # ELF-i386: 0010 0000e8fc ffffffe8 fcffffff 8b442408 .............D$.
18 # ELF-i386: 0020 83c40cc3 ....
19 # ELF-i386: Contents of section .rodata.str1.1:
20 # ELF-i386: 0024 48656c6c 6f20576f 726c6421 00 Hello World!.
31 Content: 83EC0CC744240800000000C7042400000000E8FCFFFFFFE8FCFFFFFF8B44240883C40CC3
32 - Name: .rodata.str1.1
34 Address: 0x0000000000000024
35 Content: 48656C6C6F20576F726C642100
37 # RUN: llvm-objdump -s %p/Inputs/shared-object-test.elf-i386 \
38 # RUN: | FileCheck %s -check-prefix BSS
40 # BSS: Contents of section .bss:
41 # BSS-NEXT: <skipping contents of bss section at [12c8, 12cc)>