mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 15:13:49 -04:00
29e1b86c43
This patch significantly improves the llvm-size testing. The changes made are: 1) Change all tests to use yaml2obj instead of assembly or pre-canned inputs. 2) Move the tests out of the X86 directory, since they don't need to be there after 1). 3) Increased test coverage. 4) Added comments to explain purpose of tests. I haven't attempted to add test coverage for all Mach-O related code, as I am not familiar enough with that file format to be able to. Reviewers: grimar, MaskRay Differential Revision: https://reviews.llvm.org/D66134 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368821 91177308-0d34-0410-b5e6-96231b3b80d8
32 lines
720 B
Plaintext
32 lines
720 B
Plaintext
## Show that llvm-size reads stdin if the input file is '-'.
|
|
|
|
# RUN: yaml2obj %s -o %t
|
|
# RUN: llvm-size -B - < %t | FileCheck %s --check-prefix=BERKELEY
|
|
# RUN: llvm-size -A - < %t | FileCheck %s --check-prefix=SYSV
|
|
|
|
# BERKELEY: 1 2 4 7 7 <stdin>
|
|
# SYSV: <stdin> :
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Name: .text
|
|
Type: SHT_PROGBITS
|
|
Flags: [SHF_ALLOC, SHF_EXECINSTR]
|
|
Size: 1
|
|
Address: 4
|
|
- Name: .data
|
|
Type: SHT_PROGBITS
|
|
Flags: [SHF_ALLOC, SHF_WRITE]
|
|
Size: 2
|
|
Address: 2
|
|
- Name: .bss
|
|
Type: SHT_NOBITS
|
|
Flags: [SHF_ALLOC, SHF_WRITE]
|
|
Size: 4
|
|
Address: 1
|