summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objdump/X86/disassemble-invalid-byte-sequences.test
blob: a9d7f6ac0e48eb9a1ce25f61fcf9f8f31d854000 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
## Show that llvm-objdump handles invalid byte sequences, and continues.

# RUN: yaml2obj %s -o %t.o
# RUN: llvm-objdump %t.o -d | FileCheck %s

# CHECK:      0000000000000000 .text:
# CHECK:         0: d9 e2 <unknown>
# CHECK-NEXT:    2: 90    nop

--- !ELF
FileHeader:
  Class:   ELFCLASS64
  Data:    ELFDATA2LSB
  Type:    ET_EXEC
  Machine: EM_X86_64
Sections:
  - Name:    .text
    Type:    SHT_PROGBITS
    Flags:   [SHF_ALLOC, SHF_EXECINSTR]
    Content: 'd9e290'
OpenPOWER on IntegriCloud