[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / tools / llvm-objdump / X86 / elf-disassemble.test
blob4db8d32947fd6c279d7240c41a6ba27eed39c7df
1 ## Show that disassembly is printed correctly, for only the desired sections.
2 # RUN: yaml2obj %s -o %t.o
3 # RUN: llvm-objdump %t.o --disassemble | FileCheck %s --implicit-check-not=Disassembly
4 # RUN: llvm-objdump %t.o --disassemble-all | FileCheck %s --check-prefixes=CHECK,ALL
6 # CHECK:       Disassembly of section .executable:
7 # CHECK-EMPTY:
8 # CHECK-NEXT:  0000000000001000 .executable:
9 # CHECK-NEXT:         0: 90                            nop
10 # ALL-EMPTY:
11 # ALL-NEXT:    Disassembly of section .writable:
12 # ALL-EMPTY:
13 # ALL-NEXT:    0000000000002000 .writable:
14 # ALL-NEXT:           0: c3                            retq
15 # ALL-EMPTY:
16 # ALL-NEXT:    Disassembly of section .readonly:
17 # ALL-EMPTY:
18 # ALL-NEXT:    0000000000003000 .readonly:
19 # ALL-NEXT:           0: 01 00                         addl    %eax, (%rax)
20 # ALL-EMPTY:
21 # ALL-NEXT:    Disassembly of section .nobits:
22 # ALL-EMPTY:
23 # ALL-NEXT:    0000000000004000 .nobits:
24 # ALL-NEXT:    ...
26 --- !ELF
27 FileHeader:
28   Class:   ELFCLASS64
29   Data:    ELFDATA2LSB
30   Type:    ET_REL
31   Machine: EM_X86_64
32 Sections:
33   - Name:    .executable
34     Type:    SHT_PROGBITS
35     Address: 0x1000
36     Flags:   [SHF_EXECINSTR]
37     Content: '90'
38   - Name:    .writable
39     Type:    SHT_PROGBITS
40     Address: 0x2000
41     Flags:   [SHF_WRITE]
42     Content: 'c3'
43   - Name:    .readonly
44     Type:    SHT_PROGBITS
45     Address: 0x3000
46     Content: '0100'
47   - Name:    .nobits
48     Type:    SHT_NOBITS
49     Address: 0x4000
50     Size:    4