mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 01:06:06 +00:00

The new behavior matches GNU objdump. A pair of angle brackets makes tests slightly easier. `.foo:` is not unique and thus cannot be used in a `CHECK-LABEL:` directive. Without `-LABEL`, the CHECK line can match the `Disassembly of section` line and causes the next `CHECK-NEXT:` to fail. ``` Disassembly of section .foo: 0000000000001634 .foo: ``` Bdragon: <> has metalinguistic connotation. it just "feels right" Reviewed By: rupprecht Differential Revision: https://reviews.llvm.org/D75713
21 lines
475 B
Plaintext
21 lines
475 B
Plaintext
## 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'
|