1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

[test] Use yaml2obj -o %t instead of > %t

To improve consistency and avoid unneeded shell feature (output
redirection).

While here, make other changes to improve consistency

--docnum 1 => --docnum=1
-docnum=x => --docnum=x
This commit is contained in:
Fangrui Song 2020-01-21 17:02:25 -08:00
parent 83ca134320
commit d68dfedd72
269 changed files with 398 additions and 398 deletions

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj < %s > %t.obj
# RUN: yaml2obj %s -o %t.obj
# RUN: llvm-pdbutil dump --symbols %t.obj | FileCheck %s
# RUN: llvm-readobj -codeview %t.obj | FileCheck %s --check-prefix=READOBJ

View File

@ -1,5 +1,5 @@
RUN: yaml2obj %p/Inputs/obj-hashes-1.yaml > %T/obj-hashes-1.obj
RUN: yaml2obj %p/Inputs/obj-hashes-2.yaml > %T/obj-hashes-2.obj
RUN: yaml2obj %p/Inputs/obj-hashes-1.yaml -o %T/obj-hashes-1.obj
RUN: yaml2obj %p/Inputs/obj-hashes-2.yaml -o %T/obj-hashes-2.obj
RUN: echo obj-hashes-1 > %T/hashes-combined.out
RUN: llvm-pdbutil dump -type-extras %T/obj-hashes-1.obj >> %T/hashes-combined.out
RUN: echo obj-hashes-2 >> %T/hashes-combined.out

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj < %s > %t.obj
# RUN: yaml2obj %s -o %t.obj
# RUN: llvm-readobj --codeview %t.obj | FileCheck %s
# CHECK: Kind: S_UNAMESPACE (0x1124)

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t.o
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-dwarfdump %t.o 2>&1 | FileCheck %s
# CHECK: failed to compute relocation: Unknown

View File

@ -3,8 +3,8 @@ RUN: rm -rf %t1/
RUN: mkdir %t1
RUN: obj2yaml %S/Inputs/precomp-a.obj > %t1/precomp-a.yaml
RUN: obj2yaml %S/Inputs/precomp.obj > %t1/precomp.yaml
RUN: yaml2obj %t1/precomp-a.yaml > %t1/a.obj
RUN: yaml2obj %t1/precomp.yaml > %t1/precomp.obj
RUN: yaml2obj %t1/precomp-a.yaml -o %t1/a.obj
RUN: yaml2obj %t1/precomp.yaml -o %t1/precomp.obj
RUN: llvm-readobj --codeview %t1/a.obj | FileCheck %s -check-prefix PRECOMP
RUN: llvm-readobj --codeview %t1/precomp.obj | FileCheck %s -check-prefix ENDPRECOMP
RUN: llvm-pdbutil dump -types %t1/a.obj | FileCheck %s -check-prefix PDB-PRECOMP

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: obj2yaml %t | FileCheck %s
# CHECK: - Name: .rela.text

View File

@ -1,103 +1,103 @@
# RUN: yaml2obj -docnum=1 %s > %t.o.1
# RUN: yaml2obj --docnum=1 %s -o %t.o.1
# RUN: llvm-readobj -S --file-headers %t.o.1 | FileCheck --check-prefixes=ELF-ALL,ELF-R600 %s
# RUN: obj2yaml %t.o.1 | FileCheck --check-prefixes=YAML-R600 %s
# RUN: yaml2obj -docnum=2 %s > %t.o.2
# RUN: yaml2obj --docnum=2 %s -o %t.o.2
# RUN: llvm-readobj -S --file-headers %t.o.2 | FileCheck --check-prefixes=ELF-ALL,ELF-R630 %s
# RUN: obj2yaml %t.o.2 | FileCheck --check-prefixes=YAML-R630 %s
# RUN: yaml2obj -docnum=3 %s > %t.o.3
# RUN: yaml2obj --docnum=3 %s -o %t.o.3
# RUN: llvm-readobj -S --file-headers %t.o.3 | FileCheck --check-prefixes=ELF-ALL,ELF-RS880 %s
# RUN: obj2yaml %t.o.3 | FileCheck --check-prefixes=YAML-RS880 %s
# RUN: yaml2obj -docnum=4 %s > %t.o.4
# RUN: yaml2obj --docnum=4 %s -o %t.o.4
# RUN: llvm-readobj -S --file-headers %t.o.4 | FileCheck --check-prefixes=ELF-ALL,ELF-RV670 %s
# RUN: obj2yaml %t.o.4 | FileCheck --check-prefixes=YAML-RV670 %s
# RUN: yaml2obj -docnum=5 %s > %t.o.5
# RUN: yaml2obj --docnum=5 %s -o %t.o.5
# RUN: llvm-readobj -S --file-headers %t.o.5 | FileCheck --check-prefixes=ELF-ALL,ELF-RV710 %s
# RUN: obj2yaml %t.o.5 | FileCheck --check-prefixes=YAML-RV710 %s
# RUN: yaml2obj -docnum=6 %s > %t.o.6
# RUN: yaml2obj --docnum=6 %s -o %t.o.6
# RUN: llvm-readobj -S --file-headers %t.o.6 | FileCheck --check-prefixes=ELF-ALL,ELF-RV730 %s
# RUN: obj2yaml %t.o.6 | FileCheck --check-prefixes=YAML-RV730 %s
# RUN: yaml2obj -docnum=7 %s > %t.o.7
# RUN: yaml2obj --docnum=7 %s -o %t.o.7
# RUN: llvm-readobj -S --file-headers %t.o.7 | FileCheck --check-prefixes=ELF-ALL,ELF-RV770 %s
# RUN: obj2yaml %t.o.7 | FileCheck --check-prefixes=YAML-RV770 %s
# RUN: yaml2obj -docnum=8 %s > %t.o.8
# RUN: yaml2obj --docnum=8 %s -o %t.o.8
# RUN: llvm-readobj -S --file-headers %t.o.8 | FileCheck --check-prefixes=ELF-ALL,ELF-CEDAR %s
# RUN: obj2yaml %t.o.8 | FileCheck --check-prefixes=YAML-CEDAR %s
# RUN: yaml2obj -docnum=9 %s > %t.o.9
# RUN: yaml2obj --docnum=9 %s -o %t.o.9
# RUN: llvm-readobj -S --file-headers %t.o.9 | FileCheck --check-prefixes=ELF-ALL,ELF-CYPRESS %s
# RUN: obj2yaml %t.o.9 | FileCheck --check-prefixes=YAML-CYPRESS %s
# RUN: yaml2obj -docnum=10 %s > %t.o.10
# RUN: yaml2obj --docnum=10 %s -o %t.o.10
# RUN: llvm-readobj -S --file-headers %t.o.10 | FileCheck --check-prefixes=ELF-ALL,ELF-JUNIPER %s
# RUN: obj2yaml %t.o.10 | FileCheck --check-prefixes=YAML-JUNIPER %s
# RUN: yaml2obj -docnum=11 %s > %t.o.11
# RUN: yaml2obj --docnum=11 %s -o %t.o.11
# RUN: llvm-readobj -S --file-headers %t.o.11 | FileCheck --check-prefixes=ELF-ALL,ELF-REDWOOD %s
# RUN: obj2yaml %t.o.11 | FileCheck --check-prefixes=YAML-REDWOOD %s
# RUN: yaml2obj -docnum=12 %s > %t.o.12
# RUN: yaml2obj --docnum=12 %s -o %t.o.12
# RUN: llvm-readobj -S --file-headers %t.o.12 | FileCheck --check-prefixes=ELF-ALL,ELF-SUMO %s
# RUN: obj2yaml %t.o.12 | FileCheck --check-prefixes=YAML-SUMO %s
# RUN: yaml2obj -docnum=13 %s > %t.o.13
# RUN: yaml2obj --docnum=13 %s -o %t.o.13
# RUN: llvm-readobj -S --file-headers %t.o.13 | FileCheck --check-prefixes=ELF-ALL,ELF-BARTS %s
# RUN: obj2yaml %t.o.13 | FileCheck --check-prefixes=YAML-BARTS %s
# RUN: yaml2obj -docnum=14 %s > %t.o.14
# RUN: yaml2obj --docnum=14 %s -o %t.o.14
# RUN: llvm-readobj -S --file-headers %t.o.14 | FileCheck --check-prefixes=ELF-ALL,ELF-CAICOS %s
# RUN: obj2yaml %t.o.14 | FileCheck --check-prefixes=YAML-CAICOS %s
# RUN: yaml2obj -docnum=15 %s > %t.o.15
# RUN: yaml2obj --docnum=15 %s -o %t.o.15
# RUN: llvm-readobj -S --file-headers %t.o.15 | FileCheck --check-prefixes=ELF-ALL,ELF-CAYMAN %s
# RUN: obj2yaml %t.o.15 | FileCheck --check-prefixes=YAML-CAYMAN %s
# RUN: yaml2obj -docnum=16 %s > %t.o.16
# RUN: yaml2obj --docnum=16 %s -o %t.o.16
# RUN: llvm-readobj -S --file-headers %t.o.16 | FileCheck --check-prefixes=ELF-ALL,ELF-TURKS %s
# RUN: obj2yaml %t.o.16 | FileCheck --check-prefixes=YAML-TURKS %s
# RUN: yaml2obj -docnum=17 %s > %t.o.17
# RUN: yaml2obj --docnum=17 %s -o %t.o.17
# RUN: llvm-readobj -S --file-headers %t.o.17 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX600 %s
# RUN: obj2yaml %t.o.17 | FileCheck --check-prefixes=YAML-GFX600 %s
# RUN: yaml2obj -docnum=18 %s > %t.o.18
# RUN: yaml2obj --docnum=18 %s -o %t.o.18
# RUN: llvm-readobj -S --file-headers %t.o.18 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX601 %s
# RUN: obj2yaml %t.o.18 | FileCheck --check-prefixes=YAML-GFX601 %s
# RUN: yaml2obj -docnum=19 %s > %t.o.19
# RUN: yaml2obj --docnum=19 %s -o %t.o.19
# RUN: llvm-readobj -S --file-headers %t.o.19 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX700 %s
# RUN: obj2yaml %t.o.19 | FileCheck --check-prefixes=YAML-GFX700 %s
# RUN: yaml2obj -docnum=20 %s > %t.o.20
# RUN: yaml2obj --docnum=20 %s -o %t.o.20
# RUN: llvm-readobj -S --file-headers %t.o.20 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX701 %s
# RUN: obj2yaml %t.o.20 | FileCheck --check-prefixes=YAML-GFX701 %s
# RUN: yaml2obj -docnum=21 %s > %t.o.21
# RUN: yaml2obj --docnum=21 %s -o %t.o.21
# RUN: llvm-readobj -S --file-headers %t.o.21 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX702 %s
# RUN: obj2yaml %t.o.21 | FileCheck --check-prefixes=YAML-GFX702 %s
# RUN: yaml2obj -docnum=22 %s > %t.o.22
# RUN: yaml2obj --docnum=22 %s -o %t.o.22
# RUN: llvm-readobj -S --file-headers %t.o.22 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX703 %s
# RUN: obj2yaml %t.o.22 | FileCheck --check-prefixes=YAML-GFX703 %s
# RUN: yaml2obj -docnum=23 %s > %t.o.23
# RUN: yaml2obj --docnum=23 %s -o %t.o.23
# RUN: llvm-readobj -S --file-headers %t.o.23 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX704 %s
# RUN: obj2yaml %t.o.23 | FileCheck --check-prefixes=YAML-GFX704 %s
# RUN: yaml2obj -docnum=24 %s > %t.o.24
# RUN: yaml2obj --docnum=24 %s -o %t.o.24
# RUN: llvm-readobj -S --file-headers %t.o.24 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX801 %s
# RUN: obj2yaml %t.o.24 | FileCheck --check-prefixes=YAML-GFX801 %s
# RUN: yaml2obj -docnum=25 %s > %t.o.25
# RUN: yaml2obj --docnum=25 %s -o %t.o.25
# RUN: llvm-readobj -S --file-headers %t.o.25 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX802 %s
# RUN: obj2yaml %t.o.25 | FileCheck --check-prefixes=YAML-GFX802 %s
# RUN: yaml2obj -docnum=26 %s > %t.o.26
# RUN: yaml2obj --docnum=26 %s -o %t.o.26
# RUN: llvm-readobj -S --file-headers %t.o.26 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX803 %s
# RUN: obj2yaml %t.o.26 | FileCheck --check-prefixes=YAML-GFX803 %s
# RUN: yaml2obj -docnum=27 %s > %t.o.27
# RUN: yaml2obj --docnum=27 %s -o %t.o.27
# RUN: llvm-readobj -S --file-headers %t.o.27 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX810 %s
# RUN: obj2yaml %t.o.27 | FileCheck --check-prefixes=YAML-GFX810 %s
# RUN: yaml2obj -docnum=28 %s > %t.o.28
# RUN: yaml2obj --docnum=28 %s -o %t.o.28
# RUN: llvm-readobj -S --file-headers %t.o.28 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX900 %s
# RUN: obj2yaml %t.o.28 | FileCheck --check-prefixes=YAML-GFX900 %s
# RUN: yaml2obj -docnum=29 %s > %t.o.29
# RUN: yaml2obj --docnum=29 %s -o %t.o.29
# RUN: llvm-readobj -S --file-headers %t.o.29 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX902 %s
# RUN: obj2yaml %t.o.29 | FileCheck --check-prefixes=YAML-GFX902 %s
# RUN: yaml2obj -docnum=30 %s > %t.o.30
# RUN: yaml2obj --docnum=30 %s -o %t.o.30
# RUN: llvm-readobj -S --file-headers %t.o.30 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX904 %s
# RUN: obj2yaml %t.o.30 | FileCheck --check-prefixes=YAML-GFX904 %s
# RUN: yaml2obj -docnum=31 %s > %t.o.31
# RUN: yaml2obj --docnum=31 %s -o %t.o.31
# RUN: llvm-readobj -S --file-headers %t.o.31 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX906 %s
# RUN: obj2yaml %t.o.31 | FileCheck --check-prefixes=YAML-GFX906 %s
# RUN: yaml2obj -docnum=32 %s > %t.o.32
# RUN: yaml2obj --docnum=32 %s -o %t.o.32
# RUN: llvm-readobj -s -file-headers %t.o.32 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX908 %s
# RUN: obj2yaml %t.o.32 | FileCheck --check-prefixes=YAML-GFX908 %s
# RUN: yaml2obj -docnum=33 %s > %t.o.33
# RUN: yaml2obj --docnum=33 %s -o %t.o.33
# RUN: llvm-readobj -s -file-headers %t.o.33 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX909 %s
# RUN: obj2yaml %t.o.33 | FileCheck --check-prefixes=YAML-GFX909 %s
# RUN: yaml2obj -docnum=34 %s > %t.o.34
# RUN: yaml2obj --docnum=34 %s -o %t.o.34
# RUN: llvm-readobj -s -file-headers %t.o.34 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX1010 %s
# RUN: obj2yaml %t.o.34 | FileCheck --check-prefixes=YAML-GFX1010 %s

View File

@ -1,10 +1,10 @@
# RUN: yaml2obj -docnum=1 %s > %t.o.1
# RUN: yaml2obj --docnum=1 %s -o %t.o.1
# RUN: llvm-readobj -S --file-headers %t.o.1 | FileCheck --check-prefixes=ELF-ALL,ELF-SRAM-ECC-NONE %s
# RUN: obj2yaml %t.o.1 | FileCheck --check-prefixes=YAML-SRAM-ECC-NONE %s
# RUN: yaml2obj -docnum=2 %s > %t.o.2
# RUN: yaml2obj --docnum=2 %s -o %t.o.2
# RUN: llvm-readobj -S --file-headers %t.o.2 | FileCheck --check-prefixes=ELF-ALL,ELF-SRAM-ECC-GFX900 %s
# RUN: obj2yaml %t.o.2 | FileCheck --check-prefixes=YAML-SRAM-ECC-GFX900 %s
# RUN: yaml2obj -docnum=3 %s > %t.o.3
# RUN: yaml2obj --docnum=3 %s -o %t.o.3
# RUN: llvm-readobj -S --file-headers %t.o.3 | FileCheck --check-prefixes=ELF-ALL,ELF-SRAM-ECC-XNACK-GFX900 %s
# RUN: obj2yaml %t.o.3 | FileCheck --check-prefixes=YAML-SRAM-ECC-XNACK-GFX900 %s

View File

@ -1,7 +1,7 @@
# RUN: yaml2obj -docnum=1 %s > %t.o.1
# RUN: yaml2obj --docnum=1 %s -o %t.o.1
# RUN: llvm-readobj -S --file-headers %t.o.1 | FileCheck --check-prefixes=ELF-ALL,ELF-XNACK-NONE %s
# RUN: obj2yaml %t.o.1 | FileCheck --check-prefixes=YAML-XNACK-NONE %s
# RUN: yaml2obj -docnum=2 %s > %t.o.2
# RUN: yaml2obj --docnum=2 %s -o %t.o.2
# RUN: llvm-readobj -S --file-headers %t.o.2 | FileCheck --check-prefixes=ELF-ALL,ELF-XNACK-GFX801 %s
# RUN: obj2yaml %t.o.2 | FileCheck --check-prefixes=YAML-XNACK-GFX801 %s

View File

@ -1,10 +1,10 @@
# RUN: yaml2obj -docnum=1 %s > %t.o.1
# RUN: yaml2obj --docnum=1 %s -o %t.o.1
# RUN: llvm-readobj -S --file-headers %t.o.1 | FileCheck --check-prefixes=ELF-HSA %s
# RUN: obj2yaml %t.o.1 | FileCheck --check-prefixes=YAML-HSA %s
# RUN: yaml2obj -docnum=2 %s > %t.o.2
# RUN: yaml2obj --docnum=2 %s -o %t.o.2
# RUN: llvm-readobj -S --file-headers %t.o.2 | FileCheck --check-prefixes=ELF-PAL %s
# RUN: obj2yaml %t.o.2 | FileCheck --check-prefixes=YAML-PAL %s
# RUN: yaml2obj -docnum=3 %s > %t.o.3
# RUN: yaml2obj --docnum=3 %s -o %t.o.3
# RUN: llvm-readobj -S --file-headers %t.o.3 | FileCheck --check-prefixes=ELF-MESA3D %s
# RUN: obj2yaml %t.o.3 | FileCheck --check-prefixes=YAML-MESA3D %s

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t.o
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-readobj -S --file-headers %t.o | FileCheck %s
# CHECK: Format: ELF32-amdgpu

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: llvm-readobj -r %t | FileCheck %s
# CHECK: Relocations [

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t.o
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-readobj -S --file-headers %t.o | FileCheck %s
# CHECK: Format: ELF64-amdgpu

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: llvm-readobj -r %t | FileCheck %s
# CHECK: Relocations [

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: llvm-readobj -A %t | FileCheck -check-prefix=OBJ %s
# RUN: obj2yaml %t | FileCheck -check-prefix=YAML %s

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: llvm-readobj -r %t | FileCheck -check-prefix=OBJ %s
# RUN: obj2yaml %t | FileCheck -check-prefix=YAML %s

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: llvm-readobj --file-headers %t | FileCheck -check-prefix=OBJ %s
# RUN: obj2yaml %t | FileCheck -check-prefix=YAML %s

View File

@ -69,7 +69,7 @@
# MACHO-x86-64: 23: 48 83 c4 08 addq $8, %rsp
# MACHO-x86-64: 27: c3 ret
# RUN: yaml2obj -docnum=1 %s > %t.elf-i386
# RUN: yaml2obj --docnum=1 %s -o %t.elf-i386
# RUN: llvm-objdump -d -r %t.elf-i386 | FileCheck %s -check-prefix ELF-i386
# ELF-i386: file format ELF32-i386
@ -126,7 +126,7 @@ Symbols:
- Name: puts
Binding: STB_GLOBAL
# RUN: yaml2obj -docnum=2 %s > %t.elf-x86-64
# RUN: yaml2obj --docnum=2 %s -o %t.elf-x86-64
# RUN: llvm-objdump -d -r %t.elf-x86-64 | FileCheck %s -check-prefix ELF-x86-64
--- !ELF

View File

@ -26,7 +26,7 @@
# COFF-x86-64: 21: 48 83 c4 28 addq $40, %rsp
# COFF-x86-64: 25: c3 ret
# RUN: yaml2obj -docnum=1 %s > %t.elf-i386
# RUN: yaml2obj --docnum=1 %s -o %t.elf-i386
# RUN: llvm-objdump -d %t.elf-i386 | FileCheck %s -check-prefix ELF-i386
# ELF-i386: file format ELF32-i386
@ -52,7 +52,7 @@ Sections:
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
Content: 83EC0CC744240800000000C7042400000000E8FCFFFFFFE8FCFFFFFF8B44240883C40CC3
# RUN: yaml2obj -docnum=2 %s > %t.elf-x86-64
# RUN: yaml2obj --docnum=2 %s -o %t.elf-x86-64
# RUN: llvm-objdump -d %t.elf-x86-64 | FileCheck %s -check-prefix ELF-x86-64
# ELF-x86-64: file format ELF64-x86-64

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: obj2yaml %t | FileCheck %s
# CHECK: Relocations:

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: llvm-readobj -r %t | FileCheck %s
# CHECK: Relocations [

View File

@ -83,7 +83,7 @@ tools on some versions of Solaris will abort operations if there is no
symbol table. Create such an object, put it into an archive, and check to
see that there is an empty symbol table.
RUN: mkdir -p %t
RUN: yaml2obj %S/Inputs/solaris-nosymbols.yaml > %t/foo.o
RUN: yaml2obj %S/Inputs/solaris-nosymbols.yaml -o %t/foo.o
RUN: llvm-ar rs %t/foo.a %t/foo.o
RUN: cat -v %t/foo.a | FileCheck -strict-whitespace --check-prefix=SOLARIS %s
SOLARIS: !<arch>

View File

@ -1,5 +1,5 @@
# RUN: yaml2obj -docnum=1 %s > %t.elf-x86-64
# RUN: yaml2obj -docnum=2 %s > %t2.elf-x86-64
# RUN: yaml2obj --docnum=1 %s -o %t.elf-x86-64
# RUN: yaml2obj --docnum=2 %s -o %t2.elf-x86-64
--- !ELF
FileHeader:

View File

@ -1,7 +1,7 @@
## Test that llvm-nm returns an error because of the unknown file type, but
## keeps processing subsequent files.
# RUN: yaml2obj %s > %t-i386
# RUN: yaml2obj %s -o %t-i386
# RUN: touch %t
# RUN: not llvm-nm %t-i386 %t %t-i386 | FileCheck %s

View File

@ -34,7 +34,7 @@
# ERROR: File format has no dynamic symbol table.
# RUN: yaml2obj %s > %t.elf-i386
# RUN: yaml2obj %s -o %t.elf-i386
# RUN: llvm-nm -D %t.elf-i386 2>&1 | FileCheck %s -check-prefix=NO-SYMBOLS
# NO-SYMBOLS: no symbols

View File

@ -29,7 +29,7 @@
# WASM-NEXT: U puts
# WASM-NEXT: 00000010 D var
# RUN: yaml2obj -docnum=1 %s > %t.elf-i386
# RUN: yaml2obj --docnum=1 %s -o %t.elf-i386
--- !ELF
FileHeader:
@ -79,7 +79,7 @@ Symbols:
## Test different ELF symbols for 64-bit platform.
# RUN: yaml2obj -docnum=2 %s > %t.elf-x86-64
# RUN: yaml2obj --docnum=2 %s -o %t.elf-x86-64
# RUN: llvm-nm %t.elf-x86-64 | FileCheck %s -check-prefix ELF64
# ELF64: U SomeOtherFunction
@ -157,7 +157,7 @@ Symbols:
## Test llvm-nm shows all symbols with -a.
# RUN: yaml2obj -docnum=3 %s > %t-a.elf-x86-64
# RUN: yaml2obj --docnum=3 %s -o %t-a.elf-x86-64
# RUN: llvm-nm -a %t-a.elf-x86-64 | FileCheck %s -check-prefix ELF64-a
# ELF64-a: 00000000 b .bss
@ -221,7 +221,7 @@ Symbols:
## Test that we drop the thumb bit only from function addresses.
# RUN: yaml2obj -docnum=4 %s > %t.elf-arm32
# RUN: yaml2obj --docnum=4 %s -o %t.elf-arm32
# RUN: llvm-nm %t.elf-arm32 | FileCheck %s -check-prefix ELF-THUMB
# ELF-THUMB: 00000000 t func

View File

@ -524,7 +524,7 @@
# ELF-MIPS64EL-NEXT: - Name: zed
# ELF-MIPS64EL-NEXT: Binding: STB_GLOBAL
# RUN: yaml2obj %s > %t-x86-64
# RUN: yaml2obj %s -o %t-x86-64
# RUN: obj2yaml %t-x86-64 | FileCheck %s --check-prefix ELF-X86-64
# ELF-X86-64: FileHeader:

View File

@ -3,7 +3,7 @@
# RUN: llvm-objdump -r %p/Inputs/trivial-object-test.coff-x86-64 \
# RUN: | FileCheck %s -check-prefix COFF-x86-64
# RUN: yaml2obj -docnum=1 %s > %t-i386
# RUN: yaml2obj --docnum=1 %s -o %t-i386
# RUN: llvm-objdump -r %t-i386 | FileCheck %s -check-prefix ELF-i386
# ELF-i386: .text
@ -39,7 +39,7 @@ Symbols:
- Name: symbol
Binding: STB_GLOBAL
# RUN: yaml2obj -docnum=2 %s > %t-x86-64
# RUN: yaml2obj --docnum=2 %s -o %t-x86-64
# RUN: llvm-objdump -r %t-x86-64 | FileCheck %s -check-prefix ELF-x86-64
# ELF-x86-64: .text

View File

@ -8,7 +8,7 @@
# COFF-i386: Contents of section .data:
# COFF-i386: 0000 48656c6c 6f20576f 726c6421 00 Hello World!.
# RUN: yaml2obj %s > %t.elf-i386
# RUN: yaml2obj %s -o %t.elf-i386
# RUN: llvm-objdump -s %t.elf-i386 | FileCheck %s -DFILE=%t.elf-i386 -check-prefix ELF-i386
# ELF-i386: [[FILE]]: file format

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t.elf-x86-64
# RUN: yaml2obj %s -o %t.elf-x86-64
# RUN: llvm-objdump -h %t.elf-x86-64 | FileCheck %s
# To verify this, use readelf -S, not objdump -h. Binutils objdump filters the

View File

@ -12,7 +12,7 @@
# COFF-i386: [ 6](sec 0)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 _puts
# COFF-i386: [ 7](sec 0)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 _SomeOtherFunction
# RUN: yaml2obj %s > %t.elf-i386
# RUN: yaml2obj %s -o %t.elf-i386
# RUN: llvm-objdump -t %t.elf-i386 | FileCheck %s -check-prefix ELF-i386
# ELF-i386: {{.*}}elf-i386: file format

View File

@ -1,5 +1,5 @@
## Don't crash if required information is absent
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: llvm-readobj --dyn-syms %t
--- !ELF

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t.wasm
# RUN: yaml2obj %s -o %t.wasm
# RUN: echo -e -n "\x01" >> %t.wasm
# Append a new section but truncate the encoding of the section size
# RUN: not llvm-objdump -h %t.wasm 2>&1 | FileCheck %s -check-prefix=CHECK-LEB-DECODE
@ -15,7 +15,7 @@ FileHeader:
# CHECK-SECTION-SIZE: '{{.*}}.wasm': Section too large
# RUN: yaml2obj %s > %t.wasm
# RUN: yaml2obj %s -o %t.wasm
# # Append an section with invalid type (type 0x20, size 0x1, content 0x0)
# RUN: echo -e -n "\x20\x01\x00" >> %t.wasm
# RUN: not llvm-objdump -h %t.wasm 2>&1 | FileCheck %s -check-prefix=CHECK-SECTION-TYPE

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t.obj
# RUN: yaml2obj %s -o %t.obj
# RUN: obj2yaml %t.obj | FileCheck --check-prefix=CHECK %s
# RUN: llvm-objdump -section-headers %t.obj | FileCheck --check-prefix=HEADERS %s

View File

@ -42,7 +42,7 @@ LoadCommands:
content: CDAB3412
## Case 2: The content size equals the section size.
# RUN: yaml2obj --docnum=2 %s > %t2
# RUN: yaml2obj --docnum=2 %s -o %t2
# RUN: llvm-readobj --sections --section-data %t2 | FileCheck %s --check-prefix=CASE2
# CASE2: Index: 0
# CASE2-NEXT: Name: __data (5F 5F 64 61 74 61 00 00 00 00 00 00 00 00 00 00)
@ -102,7 +102,7 @@ LoadCommands:
## Case 3: The content size is less than the section size. In this case, the area
## after the custom content is filled with zeroes.
# RUN: yaml2obj --docnum=3 %s > %t3
# RUN: yaml2obj --docnum=3 %s -o %t3
# RUN: llvm-readobj --sections --section-data %t3 | FileCheck %s --check-prefix=CASE3
# CASE3: Index: 0
# CASE3-NEXT: Name: __data (5F 5F 64 61 74 61 00 00 00 00 00 00 00 00 00 00)

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: llvm-elfabi --elf %t --emit-tbe=- --soname=best.so | FileCheck %s
!ELF

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: llvm-elfabi --elf %t --emit-tbe=- | FileCheck %s
!ELF

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: not llvm-elfabi --elf %t --emit-tbe=%t.tbe 2>&1 | FileCheck %s
!ELF

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: not llvm-elfabi --elf %t --emit-tbe=%t.tbe 2>&1 | FileCheck %s
!ELF

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: not llvm-elfabi --elf %t --emit-tbe=%t.tbe 2>&1 | FileCheck %s
!ELF

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: not llvm-elfabi --elf %t --emit-tbe=%t.tbe 2>&1 | FileCheck %s
!ELF

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: not llvm-elfabi --elf %t --emit-tbe=%t.tbe 2>&1 | FileCheck %s
!ELF

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: not llvm-elfabi --elf %t --emit-tbe=%t.tbe 2>&1 | FileCheck %s
!ELF

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: llvm-elfabi --elf %t --emit-tbe=- | FileCheck %s --check-prefix=ORIGINAL
# RUN: llvm-elfabi --elf %t --emit-tbe=- --soname=libbest.so | FileCheck %s --check-prefix=REPLACED

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: not llvm-elfabi --elf %t --emit-tbe=%t.tbe 2>&1 | FileCheck %s
!ELF

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: llvm-elfabi --elf %t --emit-tbe=- | FileCheck %s
!ELF

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# Tests that the output for an unknown architecture is the same as cctools lipo
# RUN: llvm-lipo %t -archs | FileCheck %s
# CHECK: unknown(151,3)

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: llvm-lipo %t -archs | FileCheck --check-prefix=ARCHS %s
# RUN: llvm-lipo %t --archs | FileCheck --check-prefix=ARCHS %s

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: llvm-lipo %t -archs | FileCheck %s
# CHECK: armv7k arm64

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# Tests that the output for an unknown architecture is the same as cctools lipo
# RUN: llvm-lipo %t -archs 2>&1 | FileCheck %s
# CHECK: i386 unknown(16777367,3)

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: llvm-lipo %t -archs | FileCheck %s
# CHECK: i386 x86_64

View File

@ -1,5 +1,5 @@
# RUN: yaml2obj %p/Inputs/i386-slice.yaml > %t-i386.o
# RUN: yaml2obj %p/Inputs/x86_64-slice.yaml > %t-x86_64.o
# RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-i386.o
# RUN: yaml2obj %p/Inputs/x86_64-slice.yaml -o %t-x86_64.o
# RUN: llvm-lipo %t-i386.o %t-x86_64.o -create -output %t-universal.o
# RUN: llvm-lipo %t-i386.o -arch x86_64 %t-x86_64.o -create -output %t-universal-1.o

View File

@ -1,6 +1,6 @@
# RUN: yaml2obj %p/Inputs/i386-slice.yaml > %t-i386.o
# RUN: yaml2obj %p/Inputs/x86_64-slice.yaml > %t-x86_64.o
# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml > %t-universal.o
# RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-i386.o
# RUN: yaml2obj %p/Inputs/x86_64-slice.yaml -o %t-x86_64.o
# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o
# RUN: llvm-ar cr %t.empty.a
# RUN: not llvm-lipo %t.empty.a -create -output /dev/null 2>&1 | FileCheck --check-prefix=EMPTY-ARCHIVE %s

View File

@ -1,6 +1,6 @@
# RUN: yaml2obj %p/Inputs/i386-slice.yaml > %t-i386.o
# RUN: yaml2obj %p/Inputs/CPU14-slice.yaml > %t-CPU14.o
# RUN: yaml2obj %p/Inputs/CPU10-slice.yaml > %t-CPU10.o
# RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-i386.o
# RUN: yaml2obj %p/Inputs/CPU14-slice.yaml -o %t-CPU14.o
# RUN: yaml2obj %p/Inputs/CPU10-slice.yaml -o %t-CPU10.o
# RUN: llvm-lipo %t-i386.o %t-CPU14.o %t-CPU10.o -create -output %t-universal.o

View File

@ -1,13 +1,13 @@
# RUN: yaml2obj %p/Inputs/i386-slice.yaml > %t-i386.o
# RUN: yaml2obj %p/Inputs/x86_64-slice.yaml > %t-x86_64.o
# RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-i386.o
# RUN: yaml2obj %p/Inputs/x86_64-slice.yaml -o %t-x86_64.o
# RUN: llvm-lipo %t-i386.o %t-x86_64.o -create -output %t-universal-llvm.o
# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml > %t-universal.o
# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o
# RUN: cmp %t-universal-llvm.o %t-universal.o
# RUN: yaml2obj %p/Inputs/armv7-slice.yaml > %t-armv7.o
# RUN: yaml2obj %p/Inputs/arm64-slice.yaml > %t-arm64.o
# RUN: yaml2obj %p/Inputs/armv7-slice.yaml -o %t-armv7.o
# RUN: yaml2obj %p/Inputs/arm64-slice.yaml -o %t-arm64.o
# RUN: llvm-lipo %t-arm64.o %t-armv7.o %t-universal.o -create -output %t-universal-2.o
# RUN: llvm-lipo %t-universal-2.o -thin x86_64 -output %t-x86_64_extracted.o

View File

@ -1,7 +1,7 @@
# Executable testing is not supported on Windows, since all files are considered executable
# UNSUPPORTED: system-windows
# RUN: yaml2obj %p/Inputs/i386-slice.yaml > %t-i386.o
# RUN: yaml2obj %p/Inputs/x86_64-slice.yaml > %t-x86_64.o
# RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-i386.o
# RUN: yaml2obj %p/Inputs/x86_64-slice.yaml -o %t-x86_64.o
# RUN: chmod a-x %t-i386.o
# RUN: chmod a-x %t-x86_64.o

View File

@ -1,5 +1,5 @@
# RUN: yaml2obj %p/Inputs/i386-slice.yaml > %t-32.o
# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml > %t-universal.o
# RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-32.o
# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o
# RUN: not llvm-lipo %t-32.o -create 2>&1 | FileCheck --check-prefix=NO_OUTPUT %s
# NO_OUTPUT: error: create expects a single output file to be specified

View File

@ -1,9 +1,9 @@
# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml > %t-universal.o
# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o
# RUN: not llvm-lipo %t-universal.o -extract arm64_32 -output /dev/null 2>&1 | FileCheck --check-prefix=ARCH_NOT_IN_FILE %s
# ARCH_NOT_IN_FILE: does not contain the specified architecture arm64_32
# RUN: yaml2obj %p/Inputs/i386-slice.yaml > %t-i386.o
# RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-i386.o
# RUN: not llvm-lipo %t-i386.o -extract arm64_32 -output /dev/null 2>&1 | FileCheck --check-prefix=INPUT_NOT_A_FAT_FILE %s
# INPUT_NOT_A_FAT_FILE: must be a fat file when the -extract option is specified

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: not llvm-lipo %t -info 2>&1 | FileCheck %s
# CHECK: has unsupported binary format

View File

@ -1,6 +1,6 @@
# RUN: yaml2obj %p/Inputs/i386-slice.yaml > %t-i386.o
# RUN: yaml2obj %p/Inputs/x86_64-slice.yaml > %t-x86_64.o
# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml > %t-universal.o
# RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-i386.o
# RUN: yaml2obj %p/Inputs/x86_64-slice.yaml -o %t-x86_64.o
# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o
# RUN: llvm-lipo %t-universal.o %t-i386.o %t-universal.o %t-x86_64.o -info | FileCheck %s
# CHECK: Architectures in the fat file:

View File

@ -1,6 +1,6 @@
# RUN: yaml2obj %p/Inputs/i386-slice.yaml > %t-32.o
# RUN: yaml2obj %p/Inputs/arm64-slice.yaml > %t-arm64.o
# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml > %t-universal.o
# RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-32.o
# RUN: yaml2obj %p/Inputs/arm64-slice.yaml -o %t-arm64.o
# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o
# RUN: not llvm-lipo %t-universal.o -replace %t-32.o 2>&1 | FileCheck --check-prefix=MISSING_ARG %s
# MISSING_ARG: error: replace is missing an argument: expects -replace arch_type file_name

View File

@ -1,5 +1,5 @@
# RUN: yaml2obj %p/Inputs/armv7-slice-big.yaml > %t-armv7big.o
# RUN: yaml2obj %p/Inputs/i386-x86_64-armv7-arm64-universal.yaml > %t-universal.o
# RUN: yaml2obj %p/Inputs/armv7-slice-big.yaml -o %t-armv7big.o
# RUN: yaml2obj %p/Inputs/i386-x86_64-armv7-arm64-universal.yaml -o %t-universal.o
# RUN: llvm-lipo %t-universal.o -replace armv7 %t-armv7big.o -o %t.o
# RUN: llvm-objdump %t.o -m --universal-headers | FileCheck --check-prefix=ARMV7_BIG %s
@ -20,8 +20,8 @@
# ARMV7_BIG: size 516
# ARMV7_BIG: align 2^14 (16384)
# RUN: yaml2obj %p/Inputs/armv7-slice.yaml > %t-armv7.o
# RUN: yaml2obj %p/Inputs/armv7_i386_non_default_alignment.yaml > %t-universal-align.o
# RUN: yaml2obj %p/Inputs/armv7-slice.yaml -o %t-armv7.o
# RUN: yaml2obj %p/Inputs/armv7_i386_non_default_alignment.yaml -o %t-universal-align.o
# RUN: llvm-lipo %t-universal-align.o -replace armv7 %t-armv7.o -o %t2.o
# RUN: llvm-objdump %t2.o -m --universal-headers | FileCheck --check-prefix=ARMV7_ALIGN_SWAP %s

View File

@ -1,5 +1,5 @@
# RUN: yaml2obj %p/Inputs/arm64-slice.yaml > %t-arm64.o
# RUN: yaml2obj %p/Inputs/armv7-slice.yaml > %t-armv7.o
# RUN: yaml2obj %p/Inputs/arm64-slice.yaml -o %t-arm64.o
# RUN: yaml2obj %p/Inputs/armv7-slice.yaml -o %t-armv7.o
# RUN: not llvm-lipo %t-armv7.o %t-arm64.o -create -o %t.o -segalign a 2>&1 | FileCheck --check-prefix=MISSING_ARG %s
# MISSING_ARG: error: segalign is missing an argument: expects -segalign arch_type alignment_value

View File

@ -1,6 +1,6 @@
# RUN: yaml2obj %p/Inputs/arm64-slice.yaml > %t-arm64.o
# RUN: yaml2obj %p/Inputs/armv7-slice.yaml > %t-armv7.o
# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml > %t-universal.o
# RUN: yaml2obj %p/Inputs/arm64-slice.yaml -o %t-arm64.o
# RUN: yaml2obj %p/Inputs/armv7-slice.yaml -o %t-armv7.o
# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o
# segalign expects an architecture type followed by a hexadecimal value for alignment
@ -65,8 +65,8 @@
# RUN: llvm-lipo %t2.o -thin armv7 -o %thin-armv7.o
# RUN: cmp %thin-armv7.o %t-armv7.o
# RUN: yaml2obj %p/Inputs/armv7-slice-big.yaml > %t-armv7-big.o
# RUN: yaml2obj %p/Inputs/i386-x86_64-armv7-arm64-universal.yaml > %t-universal-big.o
# RUN: yaml2obj %p/Inputs/armv7-slice-big.yaml -o %t-armv7-big.o
# RUN: yaml2obj %p/Inputs/i386-x86_64-armv7-arm64-universal.yaml -o %t-universal-big.o
# RUN: llvm-lipo %t-universal-big.o -replace armv7 %t-armv7-big.o -o %t3.o -segalign armv7 4
# RUN: llvm-objdump %t3.o -m --universal-headers | FileCheck --check-prefix=CHECK_REPLACE_ARMV7 %s

View File

@ -1,6 +1,6 @@
# Executable testing is not supported on Windows, since all files are considered executable
# UNSUPPORTED: system-windows
# RUN: yaml2obj %s > %t-universal.o
# RUN: yaml2obj %s -o %t-universal.o
# RUN: chmod a-x %t-universal.o
# RUN: llvm-lipo %t-universal.o -thin i386 -output %t32.o

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: not llvm-lipo %t -thin i386 2>&1 | FileCheck --check-prefix=NO_OUTPUT %s
# NO_OUTPUT: error: thin expects a single output file

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: not llvm-lipo %t -thin arm64_32 -output %t.out 2>&1 | FileCheck --check-prefix=ARCH_NOT_IN_FILE %s
# ARCH_NOT_IN_FILE: does not contain the specified architecture arm64_32 to thin it to
@ -6,9 +6,9 @@
# RUN: not llvm-lipo %t -thin aarch101 -output %t.out 2>&1 | FileCheck --check-prefix=INVALID_ARCH %s
# INVALID_ARCH: Invalid architecture: aarch101
# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml > %t-universal.o
# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o
# RUN: llvm-lipo %t-universal.o -thin i386 -output %t32.o
# RUN: yaml2obj %p/Inputs/i386-slice.yaml > %t-basic32.o
# RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-basic32.o
# RUN: cmp %t32.o %t-basic32.o
--- !fat-mach-o

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: llvm-lipo %t -verify_arch i386
# RUN: llvm-lipo %t --verify_arch i386

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: llvm-lipo %t -verify_arch i386
# RUN: llvm-lipo %t -verify_arch i386 x86_64

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# Test --special-syms flag. Currently this flag is a no-op, so outputs with and without
# this flag should be identical. GNU nm doesn't show ARM and AArch64 special symbols
# without --special-syms, so this test is to be changed when/if we decide to implement

View File

@ -1,6 +1,6 @@
## When a file contains only local symbols the "no symbols" error should not
## be shown, so we expect the output to be completely empty.
# RUN: yaml2obj %s > %t.o
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-nm %t.o 2>&1 | count 0
!ELF

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t.o
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-nm %t.o 2>&1 | FileCheck %s -DFILE=%t.o
!ELF

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t.o
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-nm %t.o --portability | FileCheck %s --strict-whitespace --match-full-lines
# RUN: llvm-nm %t.o -P | FileCheck %s --strict-whitespace --match-full-lines

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t.o
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-nm --debug-syms %t.o | FileCheck %s --implicit-check-not U
# RUN: llvm-nm -a %t.o | FileCheck %s --implicit-check-not U

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t.o
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-nm %t.o --debug-syms --format=sysv | FileCheck %s -DFILE=%t.o --strict-whitespace
# RUN: llvm-nm %t.o --debug-syms -f=sysv | FileCheck %s -DFILE=%t.o --strict-whitespace

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj --docnum=1 %s > %t1.o
# RUN: yaml2obj --docnum=1 %s -o %t1.o
# RUN: llvm-nm %t1.o --format=sysv | FileCheck %s
--- !ELF
@ -38,7 +38,7 @@ Symbols:
## (sh_name offset goes past the end of the sections name string table).
## We test that we can still print a reasonable output and don't crash/assert.
# RUN: yaml2obj --docnum=2 %s > %t2.o
# RUN: yaml2obj --docnum=2 %s -o %t2.o
# RUN: llvm-nm %t2.o --format=sysv | FileCheck %s --check-prefix=ERR
# ERR: foo |0000000000000000| ? | NOTYPE|0000000000000000| |

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t.o
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-nm %t.o --debug-syms --format=sysv | FileCheck %s
!ELF

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t.o
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-nm %t.o | FileCheck %s --check-prefix=DEFAULT
# RUN: llvm-nm --no-sort %t.o | FileCheck %s --check-prefix=NOSORT
# RUN: llvm-nm -p %t.o | FileCheck %s --check-prefix=NOSORT

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t.o
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-nm %t.o | FileCheck %s --check-prefix=DEFAULT
# RUN: llvm-nm --numeric-sort %t.o | FileCheck %s --check-prefix=NUMERIC
# RUN: llvm-nm -n %t.o | FileCheck %s --check-prefix=NUMERIC

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t.o
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-nm --undefined-only %t.o | FileCheck %s --implicit-check-not=symbol_defined
!ELF

View File

@ -1,4 +1,4 @@
RUN: yaml2obj %p/Inputs/x86_64-exe.yaml > %t.in123.exe
RUN: yaml2obj %p/Inputs/x86_64-exe.yaml -o %t.in123.exe
# Using a debuglink filename with a length that is a multiple of 4, to
# showcase padding in CONTENTS below.

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
## Test that llvm-objcopy adds a section to the given object with expected
## contents.
@ -35,7 +35,7 @@
## Test that llvm-objcopy can add a section to an object with extended
## relocations.
# RUN: %python %p/../Inputs/ungzip.py %p/Inputs/x86_64-obj-xrelocs.yaml.gz > %t.xrelocs.yaml
# RUN: yaml2obj %t.xrelocs.yaml > %t.xrelocs.obj
# RUN: yaml2obj %t.xrelocs.yaml -o %t.xrelocs.obj
# RUN: llvm-objcopy --add-section=.test.section=%t.sec %t.xrelocs.obj %t1.xrelocs.obj
# RUN: llvm-readobj --file-headers --sections --section-data %t1.xrelocs.obj | FileCheck %s --check-prefixes=CHECK-EXTENDED-RELOCS

View File

@ -17,31 +17,31 @@ following aspects:
- Alignment of section data
- Checksums
RUN: yaml2obj %p/Inputs/i386-obj.yaml > %t.i386.o
RUN: yaml2obj %p/Inputs/i386-obj.yaml -o %t.i386.o
RUN: llvm-objcopy %t.i386.o %t.i386-copy.o
RUN: obj2yaml %t.i386.o > %t.i386.o.yaml
RUN: obj2yaml %t.i386-copy.o > %t.i386-copy.o.yaml
RUN: cmp %t.i386.o.yaml %t.i386-copy.o.yaml
RUN: yaml2obj %p/Inputs/x86_64-obj.yaml > %t.x86_64.o
RUN: yaml2obj %p/Inputs/x86_64-obj.yaml -o %t.x86_64.o
RUN: llvm-objcopy %t.x86_64.o %t.x86_64-copy.o
RUN: obj2yaml %t.x86_64.o > %t.x86_64.o.yaml
RUN: obj2yaml %t.x86_64-copy.o > %t.x86_64-copy.o.yaml
RUN: cmp %t.x86_64.o.yaml %t.x86_64-copy.o.yaml
RUN: yaml2obj %p/Inputs/i386-exe.yaml > %t.i386.exe
RUN: yaml2obj %p/Inputs/i386-exe.yaml -o %t.i386.exe
RUN: llvm-objcopy %t.i386.exe %t.i386-copy.exe
RUN: obj2yaml %t.i386.exe > %t.i386.exe.yaml
RUN: obj2yaml %t.i386-copy.exe > %t.i386-copy.exe.yaml
RUN: cmp %t.i386.exe.yaml %t.i386-copy.exe.yaml
RUN: yaml2obj %p/Inputs/x86_64-exe.yaml > %t.x86_64.exe
RUN: yaml2obj %p/Inputs/x86_64-exe.yaml -o %t.x86_64.exe
RUN: llvm-objcopy %t.x86_64.exe %t.x86_64-copy.exe
RUN: obj2yaml %t.x86_64.exe > %t.x86_64.exe.yaml
RUN: obj2yaml %t.x86_64-copy.exe > %t.x86_64-copy.exe.yaml
RUN: cmp %t.x86_64.exe.yaml %t.x86_64-copy.exe.yaml
RUN: yaml2obj %p/Inputs/no-symbols.yaml > %t.no-symbols.o
RUN: yaml2obj %p/Inputs/no-symbols.yaml -o %t.no-symbols.o
RUN: llvm-objcopy %t.no-symbols.o %t.no-symbols-copy.o
RUN: obj2yaml %t.no-symbols.o > %t.no-symbols.o.yaml
RUN: obj2yaml %t.no-symbols-copy.o > %t.no-symbols-copy.o.yaml

View File

@ -1,4 +1,4 @@
RUN: yaml2obj %p/Inputs/discard-locals.yaml > %t.in.o
RUN: yaml2obj %p/Inputs/discard-locals.yaml -o %t.in.o
RUN: llvm-objdump -t %t.in.o | FileCheck %s --check-prefixes=SYMBOLS,SYMBOLS-PRE

View File

@ -1,4 +1,4 @@
RUN: yaml2obj %p/Inputs/only-keep-sections.yaml > %t.in.exe
RUN: yaml2obj %p/Inputs/only-keep-sections.yaml -o %t.in.exe
RUN: llvm-objcopy --only-keep-debug %t.in.exe %t.out.exe
RUN: llvm-readobj --sections %t.out.exe | FileCheck %s --check-prefix=SECTIONS

View File

@ -1,4 +1,4 @@
RUN: yaml2obj %p/Inputs/only-keep-sections.yaml > %t.in.exe
RUN: yaml2obj %p/Inputs/only-keep-sections.yaml -o %t.in.exe
RUN: llvm-objcopy --only-section .debug_discardable %t.in.exe %t.out.exe
RUN: llvm-objdump --section-headers -t %t.out.exe | FileCheck %s --check-prefixes=SECTIONS,SECTIONS-DEBUG,SYMBOLS,SYMBOLS-DEBUG

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t.in.exe
# RUN: yaml2obj %s -o %t.in.exe
# RUN: llvm-objdump -s %t.in.exe | FileCheck %s --check-prefixes=CONTENTS,CONTENTS-PRE
# RUN: llvm-readobj --sections %t.in.exe | FileCheck %s --check-prefixes=SECTIONS,SECTIONS-PRE

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t.in.o
# RUN: yaml2obj %s -o %t.in.o
#
# RUN: llvm-objdump -section-headers %t.in.o | FileCheck %s --check-prefixes=SECTIONS-PRE
# RUN: llvm-objdump -t %t.in.o | FileCheck %s --check-prefixes=SYMBOLS-PRE

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t.in.o
# RUN: yaml2obj %s -o %t.in.o
# RUN: llvm-objdump -t %t.in.o | FileCheck %s --check-prefixes=SYMBOLS,SYMBOLS-PRE

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t.in.o
# RUN: yaml2obj %s -o %t.in.o
#
# RUN: llvm-objdump --section-headers %t.in.o | FileCheck %s --check-prefixes=SECTIONS,SECTIONS-PRE
# RUN: llvm-objdump -t %t.in.o | FileCheck %s --check-prefixes=SYMBOLS,SYMBOLS-PRE

View File

@ -1,4 +1,4 @@
RUN: yaml2obj %p/Inputs/strip-symbols.yaml > %t.o
RUN: yaml2obj %p/Inputs/strip-symbols.yaml -o %t.o
RUN: not llvm-objcopy -N foo %t.o 2>&1 | FileCheck %s --check-prefix=ERROR
RUN: not llvm-objcopy --strip-symbol foo %t.o 2>&1 | FileCheck %s --check-prefix=ERROR

View File

@ -1,4 +1,4 @@
RUN: yaml2obj %p/Inputs/strip-symbols.yaml > %t.in.o
RUN: yaml2obj %p/Inputs/strip-symbols.yaml -o %t.in.o
RUN: llvm-readobj -r %t.in.o | FileCheck %s --check-prefixes=RELOCS,RELOCS-PRE
RUN: llvm-objdump -t %t.in.o | FileCheck %s --check-prefixes=SYMBOLS,SYMBOLS-PRE

View File

@ -1,4 +1,4 @@
RUN: yaml2obj %p/Inputs/discard-locals.yaml > %t.in.o
RUN: yaml2obj %p/Inputs/discard-locals.yaml -o %t.in.o
RUN: llvm-objdump -t %t.in.o | FileCheck %s --check-prefixes=SYMBOLS,SYMBOLS-PRE

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t.in.o
# RUN: yaml2obj %s -o %t.in.o
# RUN: llvm-objdump -t %t.in.o | FileCheck %s --check-prefixes=SYMBOLS,SYMBOLS-PRE

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: llvm-objcopy %t %t2
# RUN: llvm-readobj --symbols %t2 | FileCheck %s

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: printf 0000 > %t.blob
# RUN: llvm-objcopy --add-gnu-debuglink=%t.blob %t %t2
# RUN: llvm-readobj --sections --section-data %t2 | FileCheck %s

View File

@ -11,7 +11,7 @@
# RUN: echo -e -n "\x08\x09\x0a\x0b" >> %t-note.bin
# RUN: echo -e -n "\x0c\x0d\x0e\x0f" >> %t-note.bin
# RUN: yaml2obj %s > %t.o
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-objcopy --add-section=.note.gnu.build-id=%t-note.bin %t.o %t-with-note.o
# RUN: llvm-readobj --notes %t-with-note.o | FileCheck %s

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: echo 0000 > %t.sec
# RUN: llvm-objcopy -R .test2 --add-section=.test2=%t.sec %t %t2
# RUN: llvm-readobj --file-headers --sections --section-data %t2 | FileCheck %s

View File

@ -2,7 +2,7 @@
# By default, sections are SHT_PROGBITS, but .note sections (excluding
# .note.GNU-stack) are SHT_NOTE sections.
# RUN: yaml2obj %s > %t.o
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-objcopy --add-section=.foo=/dev/null %t.o %t-foo.o
# RUN: llvm-objcopy --add-section=.note.foo=/dev/null %t.o %t-regular-note.o
# RUN: llvm-objcopy --add-section=.note.GNU-stack=/dev/null %t.o %t-gnu-stack.o

View File

@ -1,4 +1,4 @@
# RUN: yaml2obj %s > %t
# RUN: yaml2obj %s -o %t
# RUN: llvm-objcopy -O binary -j .test2 %t %t.sec
# RUN: llvm-objcopy -R .test2 %t %t2
# RUN: llvm-objcopy --add-section=.test2=%t.sec %t2 %t3

Some files were not shown because too many files have changed in this diff Show More