xref: /llvm-project/llvm/test/tools/llvm-objdump/X86/disassemble-long-instructions.test (revision 903f5b05e264cca4bb24296f012854afe3102f6e)
1## This test shows that llvm-objdump can disassemble a long instruction.
2# RUN: yaml2obj %s -o %t.o
3# RUN: llvm-objdump -d %t.o | FileCheck %s --strict-whitespace
4
5# CHECK: 0: 66 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 	nopw	%cs:(%rax,%rax)
6
7--- !ELF
8FileHeader:
9  Class:   ELFCLASS64
10  Data:    ELFDATA2LSB
11  Type:    ET_EXEC
12  Machine: EM_X86_64
13Sections:
14  - Name:  .text
15    Type:  SHT_PROGBITS
16    Flags: [SHF_ALLOC, SHF_EXECINSTR]
17    Content: '6666666666662E0F1F840000000000' # 15-byte nop
18