mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
2f6470d04a
This patch does the following: 1) Starts using YAML macro to reduce the number of YAML documents in tests. 2) Adds `#` before 'RUN'/`CHECK` lines in a few tests where it is missing. 3) Removes unused YAML keys. 4) Starts using `ENTSIZE=<none>` to simplify tests (see D84526). 5) Removes trailing white spaces in a few places. Differential revision: https://reviews.llvm.org/D85013
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
## Show the behavior of llvm-readobj/llvm-readelf when no operations are requested.
|
|
|
|
## Check the behavior on ET_EXEC input.
|
|
|
|
# RUN: yaml2obj -DTYPE=ET_EXEC %s -o %t.exe
|
|
# RUN: llvm-readobj %t.exe | FileCheck %s -DFILE=%t.exe --check-prefix LLVM
|
|
# RUN: llvm-readelf %t.exe | FileCheck %s -DFILE=%t.exe --check-prefix GNU --allow-empty
|
|
|
|
# LLVM: File: [[FILE]]
|
|
# LLVM: Format: elf64-x86-64
|
|
# LLVM: Arch: x86_64
|
|
# LLVM: AddressSize: 64bit
|
|
# LLVM: LoadName: <Not found>{{$}}
|
|
# LLVM-EMPTY:
|
|
# LLVM-NOT: {{.}}
|
|
|
|
# GNU-NOT: {{.}}
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: [[TYPE]]
|
|
Machine: EM_X86_64
|
|
|
|
## Check the behavior on ET_REL input.
|
|
|
|
# RUN: yaml2obj -DTYPE=ET_REL %s -o %t.o
|
|
# RUN: llvm-readobj %t.o | FileCheck %s -DFILE=%t.o --check-prefix LLVM
|
|
# RUN: llvm-readelf %t.o | FileCheck %s -DFILE=%t.o --check-prefix GNU --allow-empty
|
|
|
|
## Check the behavior on ET_DYN input.
|
|
|
|
# RUN: yaml2obj -DTYPE=ET_DYN %s -o %t.so
|
|
# RUN: llvm-readobj %t.so | FileCheck %s -DFILE=%t.so --check-prefix LLVM
|
|
# RUN: llvm-readelf %t.so | FileCheck %s -DFILE=%t.so --check-prefix GNU --allow-empty
|