mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
056055f8f6
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 llvm-svn: 368821
19 lines
585 B
Plaintext
19 lines
585 B
Plaintext
## Show that llvm-size falls back to Berkeley output if --format=darwin is
|
|
## specified and the input is not Mach-O.
|
|
|
|
# RUN: yaml2obj %s -o %t
|
|
# RUN: llvm-size -m %t | FileCheck %s
|
|
# RUN: llvm-size --format=darwin %t | FileCheck %s
|
|
|
|
## FIXME: The input filename should be printed but isn't currently due to
|
|
## https://bugs.llvm.org/show_bug.cgi?id=42971.
|
|
# CHECK: text data bss dec hex filename
|
|
# CHECK-NEXT: 0 0 0 0 0
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_X86_64
|