diff --git a/test/CodeGen/AArch64/note-gnu-property-pac-bti-0.ll b/test/CodeGen/AArch64/note-gnu-property-pac-bti-0.ll index d7a2c62cf82..798cd72c5be 100644 --- a/test/CodeGen/AArch64/note-gnu-property-pac-bti-0.ll +++ b/test/CodeGen/AArch64/note-gnu-property-pac-bti-0.ll @@ -1,7 +1,7 @@ ; RUN: llc -mtriple=aarch64-linux %s -o - | \ ; RUN: FileCheck %s --check-prefix=ASM ; RUN: llc -mtriple=aarch64-linux %s -filetype=obj -o - | \ -; RUN: llvm-readelf --notes | FileCheck %s --check-prefix=OBJ +; RUN: llvm-readelf --notes - | FileCheck %s --check-prefix=OBJ @x = common dso_local global i32 0, align 4 attributes #0 = { "branch-target-enforcement" } diff --git a/test/CodeGen/AArch64/note-gnu-property-pac-bti-1.ll b/test/CodeGen/AArch64/note-gnu-property-pac-bti-1.ll index 92973ea73ff..747836cab83 100644 --- a/test/CodeGen/AArch64/note-gnu-property-pac-bti-1.ll +++ b/test/CodeGen/AArch64/note-gnu-property-pac-bti-1.ll @@ -1,7 +1,7 @@ ; RUN: llc -mtriple=aarch64-linux %s -o - | \ ; RUN: FileCheck %s --check-prefix=ASM ; RUN: llc -mtriple=aarch64-linux %s -filetype=obj -o - | \ -; RUN: llvm-readelf --notes | FileCheck %s --check-prefix=OBJ +; RUN: llvm-readelf --notes - | FileCheck %s --check-prefix=OBJ define dso_local i32 @f() #0 { entry: diff --git a/test/CodeGen/AArch64/note-gnu-property-pac-bti-2.ll b/test/CodeGen/AArch64/note-gnu-property-pac-bti-2.ll index 826dd934bd9..71b31093219 100644 --- a/test/CodeGen/AArch64/note-gnu-property-pac-bti-2.ll +++ b/test/CodeGen/AArch64/note-gnu-property-pac-bti-2.ll @@ -1,7 +1,7 @@ ; RUN: llc -mtriple=aarch64-linux %s -o - | \ ; RUN: FileCheck %s --check-prefix=ASM ; RUN: llc -mtriple=aarch64-linux %s -filetype=obj -o - | \ -; RUN: llvm-readelf --notes | FileCheck %s --check-prefix=OBJ +; RUN: llvm-readelf --notes - | FileCheck %s --check-prefix=OBJ define dso_local i32 @f() #0 { entry: diff --git a/test/CodeGen/AArch64/note-gnu-property-pac-bti-3.ll b/test/CodeGen/AArch64/note-gnu-property-pac-bti-3.ll index c25b23aa1f5..ad222e8b4e4 100644 --- a/test/CodeGen/AArch64/note-gnu-property-pac-bti-3.ll +++ b/test/CodeGen/AArch64/note-gnu-property-pac-bti-3.ll @@ -1,7 +1,7 @@ ; RUN: llc -mtriple=aarch64-linux %s -o - | \ ; RUN: FileCheck %s --check-prefix=ASM ; RUN: llc -mtriple=aarch64-linux %s -filetype=obj -o - | \ -; RUN: llvm-readelf --notes | FileCheck %s --check-prefix=OBJ +; RUN: llvm-readelf --notes - | FileCheck %s --check-prefix=OBJ define dso_local i32 @f() #0 { entry: diff --git a/test/CodeGen/AArch64/note-gnu-property-pac-bti-4.ll b/test/CodeGen/AArch64/note-gnu-property-pac-bti-4.ll index 9667288afc5..83da5305e24 100644 --- a/test/CodeGen/AArch64/note-gnu-property-pac-bti-4.ll +++ b/test/CodeGen/AArch64/note-gnu-property-pac-bti-4.ll @@ -1,7 +1,7 @@ ; RUN: llc -mtriple=aarch64-linux %s -o - | \ ; RUN: FileCheck %s --check-prefix=ASM ; RUN: llc -mtriple=aarch64-linux %s -filetype=obj -o - | \ -; RUN: llvm-readelf --notes | FileCheck %s --check-prefix=OBJ +; RUN: llvm-readelf --notes - | FileCheck %s --check-prefix=OBJ define dso_local i32 @f() #0 { entry: diff --git a/test/CodeGen/AArch64/note-gnu-property-pac-bti-5.ll b/test/CodeGen/AArch64/note-gnu-property-pac-bti-5.ll index f7d1b0e287d..083f8b38f67 100644 --- a/test/CodeGen/AArch64/note-gnu-property-pac-bti-5.ll +++ b/test/CodeGen/AArch64/note-gnu-property-pac-bti-5.ll @@ -1,7 +1,7 @@ ; RUN: llc -mtriple=aarch64-linux %s -o - 2>&1 | \ ; RUN: FileCheck %s --check-prefix=ASM ; RUN: llc -mtriple=aarch64-linux %s -filetype=obj -o - | \ -; RUN: llvm-readelf --notes | FileCheck %s --check-prefix=OBJ +; RUN: llvm-readelf --notes - | FileCheck %s --check-prefix=OBJ define dso_local i32 @f() #0 { entry: diff --git a/test/CodeGen/AArch64/note-gnu-property-pac-bti-6.ll b/test/CodeGen/AArch64/note-gnu-property-pac-bti-6.ll index b57a23b97b2..8fb550bcef4 100644 --- a/test/CodeGen/AArch64/note-gnu-property-pac-bti-6.ll +++ b/test/CodeGen/AArch64/note-gnu-property-pac-bti-6.ll @@ -1,7 +1,7 @@ ; RUN: llc -mtriple=aarch64-linux %s -o - | \ ; RUN: FileCheck %s --check-prefix=ASM ; RUN: llc -mtriple=aarch64-linux %s -filetype=obj -o - | \ -; RUN: llvm-readelf -S | FileCheck %s --check-prefix=OBJ +; RUN: llvm-readelf -S - | FileCheck %s --check-prefix=OBJ define dso_local i32 @f() #0 { entry: diff --git a/test/CodeGen/AArch64/note-gnu-property-pac-bti-7.ll b/test/CodeGen/AArch64/note-gnu-property-pac-bti-7.ll index b663dafe44c..6768252feff 100644 --- a/test/CodeGen/AArch64/note-gnu-property-pac-bti-7.ll +++ b/test/CodeGen/AArch64/note-gnu-property-pac-bti-7.ll @@ -1,7 +1,7 @@ ; RUN: llc -mtriple=aarch64-linux %s -o - 2>&1 | \ ; RUN: FileCheck %s --check-prefix=ASM ; RUN: llc -mtriple=aarch64-linux %s -filetype=obj -o - | \ -; RUN: llvm-readelf -S | FileCheck %s --check-prefix=OBJ +; RUN: llvm-readelf -S - | FileCheck %s --check-prefix=OBJ define dso_local i32 @f() #0 { entry: diff --git a/test/CodeGen/AArch64/note-gnu-property-pac-bti-8.ll b/test/CodeGen/AArch64/note-gnu-property-pac-bti-8.ll index e27141afdf7..44545b413ad 100644 --- a/test/CodeGen/AArch64/note-gnu-property-pac-bti-8.ll +++ b/test/CodeGen/AArch64/note-gnu-property-pac-bti-8.ll @@ -1,7 +1,7 @@ ; RUN: llc -mtriple=aarch64-linux %s -o - | \ ; RUN: FileCheck %s --check-prefix=ASM ; RUN: llc -mtriple=aarch64-linux %s -filetype=obj -o - | \ -; RUN: llvm-readelf --notes | FileCheck %s --check-prefix=OBJ +; RUN: llvm-readelf --notes - | FileCheck %s --check-prefix=OBJ define dso_local i32 @f() #0 { entry: diff --git a/test/CodeGen/AArch64/win64-jumptable.ll b/test/CodeGen/AArch64/win64-jumptable.ll index 6a9752687aa..5a89c239081 100644 --- a/test/CodeGen/AArch64/win64-jumptable.ll +++ b/test/CodeGen/AArch64/win64-jumptable.ll @@ -1,5 +1,5 @@ ; RUN: llc -o - %s -mtriple=aarch64-windows -aarch64-enable-compress-jump-tables=0 | FileCheck %s -; RUN: llc -o - %s -mtriple=aarch64-windows -aarch64-enable-compress-jump-tables=0 -filetype=obj | llvm-readobj -unwind | FileCheck %s -check-prefix=UNWIND +; RUN: llc -o - %s -mtriple=aarch64-windows -aarch64-enable-compress-jump-tables=0 -filetype=obj | llvm-readobj -unwind - | FileCheck %s -check-prefix=UNWIND define void @f(i32 %x) { entry: diff --git a/test/CodeGen/AArch64/wineh-mingw.ll b/test/CodeGen/AArch64/wineh-mingw.ll index 3e95789a3d4..ff1a55711b9 100644 --- a/test/CodeGen/AArch64/wineh-mingw.ll +++ b/test/CodeGen/AArch64/wineh-mingw.ll @@ -1,5 +1,5 @@ ; RUN: llc < %s -mtriple=aarch64-pc-mingw32 | FileCheck %s -check-prefix=WINEH -; RUN: llc < %s -mtriple=aarch64-pc-mingw32 -filetype=obj | llvm-readobj -S | FileCheck %s -check-prefix=WINEH-SECTIONS +; RUN: llc < %s -mtriple=aarch64-pc-mingw32 -filetype=obj | llvm-readobj -S - | FileCheck %s -check-prefix=WINEH-SECTIONS ; Check emission of eh handler and handler data declare i32 @_d_eh_personality(i32, i32, i64, i8*, i8*) diff --git a/test/CodeGen/AArch64/wineh1.mir b/test/CodeGen/AArch64/wineh1.mir index e468d7f0b82..deaff395ca6 100644 --- a/test/CodeGen/AArch64/wineh1.mir +++ b/test/CodeGen/AArch64/wineh1.mir @@ -1,5 +1,5 @@ # RUN: llc -o - %s -mtriple=aarch64-windows -start-after=prologepilog -filetype=obj \ -# RUN: | llvm-readobj --unwind | FileCheck %s +# RUN: | llvm-readobj --unwind - | FileCheck %s # RUN: llc -o - %s -mtriple=aarch64-windows -run-pass=aarch64-ldst-opt \ # RUN: | FileCheck %s --check-prefix=CHECK-LDSTOPT # This test case checks the basic validity of the .xdata section. It's diff --git a/test/CodeGen/AArch64/wineh2.mir b/test/CodeGen/AArch64/wineh2.mir index aa78ee7b93b..79d022df269 100644 --- a/test/CodeGen/AArch64/wineh2.mir +++ b/test/CodeGen/AArch64/wineh2.mir @@ -1,5 +1,5 @@ # RUN: llc -o - %s -mtriple=aarch64-windows -start-after=prologepilog \ -# RUN: -filetype=obj | llvm-readobj --unwind | FileCheck %s +# RUN: -filetype=obj | llvm-readobj --unwind - | FileCheck %s # Test that the pre/post increment save of a flating point register is correct. # CHECK: ExceptionData { diff --git a/test/CodeGen/AArch64/wineh3.mir b/test/CodeGen/AArch64/wineh3.mir index 82f65eac457..6cbe7f42dc5 100644 --- a/test/CodeGen/AArch64/wineh3.mir +++ b/test/CodeGen/AArch64/wineh3.mir @@ -1,5 +1,5 @@ # RUN: llc -o - %s -mtriple=aarch64-windows -start-after=prologepilog \ -# RUN: -filetype=obj | llvm-readobj --unwind | FileCheck %s +# RUN: -filetype=obj | llvm-readobj --unwind - | FileCheck %s # Test that the register pairing of both general purpose and floating point # registers is correctly saved in the .xdata section, as well as the pre/post # increment of floating point register pairs. diff --git a/test/CodeGen/AArch64/wineh4.mir b/test/CodeGen/AArch64/wineh4.mir index 50c8bf1b770..c007671a83c 100644 --- a/test/CodeGen/AArch64/wineh4.mir +++ b/test/CodeGen/AArch64/wineh4.mir @@ -1,6 +1,6 @@ # RUN: llc -o - %s -mtriple=aarch64-windows -start-after=prologepilog \ # RUN: -disable-branch-fold -filetype=obj \ -# RUN: | llvm-readobj --unwind | FileCheck %s +# RUN: | llvm-readobj --unwind - | FileCheck %s # Check that identical multiple epilgoues are correctly shared in .xdata. # CHECK: ExceptionData { diff --git a/test/CodeGen/AArch64/wineh5.mir b/test/CodeGen/AArch64/wineh5.mir index b81a8474974..1280997fbb3 100644 --- a/test/CodeGen/AArch64/wineh5.mir +++ b/test/CodeGen/AArch64/wineh5.mir @@ -1,5 +1,5 @@ # RUN: llc -o - %s -mtriple=aarch64-windows -start-after=prologepilog \ -# RUN: -filetype=obj | llvm-readobj --unwind | FileCheck %s +# RUN: -filetype=obj | llvm-readobj --unwind - | FileCheck %s # Check that that the large stack allocation is correctly represented in .xdata. diff --git a/test/CodeGen/AArch64/wineh6.mir b/test/CodeGen/AArch64/wineh6.mir index bff09cba626..3ea7c0f20d4 100644 --- a/test/CodeGen/AArch64/wineh6.mir +++ b/test/CodeGen/AArch64/wineh6.mir @@ -1,5 +1,5 @@ # RUN: llc -o - %s -mtriple=aarch64-windows -start-after=prologepilog \ -# RUN: -filetype=obj | llvm-readobj --unwind | FileCheck %s +# RUN: -filetype=obj | llvm-readobj --unwind - | FileCheck %s # Check save_fplr_x, set_fp, alloc_s # CHECK: ExceptionData { diff --git a/test/CodeGen/AArch64/wineh7.mir b/test/CodeGen/AArch64/wineh7.mir index 040ab61f916..c445cbfd6b0 100644 --- a/test/CodeGen/AArch64/wineh7.mir +++ b/test/CodeGen/AArch64/wineh7.mir @@ -1,5 +1,5 @@ # RUN: llc -o - %s -mtriple=aarch64-windows -start-after=prologepilog \ -# RUN: -filetype=obj | llvm-readobj --unwind | FileCheck %s +# RUN: -filetype=obj | llvm-readobj --unwind - | FileCheck %s # Check AddFP # CHECK: ExceptionData { diff --git a/test/CodeGen/AArch64/wineh8.mir b/test/CodeGen/AArch64/wineh8.mir index 5b56300b1bc..9a37ed760ad 100644 --- a/test/CodeGen/AArch64/wineh8.mir +++ b/test/CodeGen/AArch64/wineh8.mir @@ -1,6 +1,6 @@ # RUN: llc -o - %s -mtriple=aarch64-windows -start-after=prologepilog \ # RUN: -disable-branch-fold -filetype=obj \ -# RUN: | llvm-readobj --unwind | FileCheck %s +# RUN: | llvm-readobj --unwind - | FileCheck %s # Check that non-identical multiple epilgoues are correctly shared in .xdata. # CHECK: ExceptionData { diff --git a/test/CodeGen/AMDGPU/amdpal-elf.ll b/test/CodeGen/AMDGPU/amdpal-elf.ll index 412815fb9c8..dfff47a926f 100644 --- a/test/CodeGen/AMDGPU/amdpal-elf.ll +++ b/test/CodeGen/AMDGPU/amdpal-elf.ll @@ -1,5 +1,5 @@ -; RUN: llc < %s -mtriple=amdgcn--amdpal -mcpu=kaveri -filetype=obj -mattr=-code-object-v3 | llvm-readobj -symbols -s -sd | FileCheck --check-prefix=ELF %s -; RUN: llc < %s -mtriple=amdgcn--amdpal -mcpu=kaveri -mattr=-code-object-v3 | llvm-mc -filetype=obj -triple amdgcn--amdpal -mcpu=kaveri -mattr=-code-object-v3 | llvm-readobj -symbols -s -sd | FileCheck %s --check-prefix=ELF +; RUN: llc < %s -mtriple=amdgcn--amdpal -mcpu=kaveri -filetype=obj -mattr=-code-object-v3 | llvm-readobj -symbols -s -sd - | FileCheck --check-prefix=ELF %s +; RUN: llc < %s -mtriple=amdgcn--amdpal -mcpu=kaveri -mattr=-code-object-v3 | llvm-mc -filetype=obj -triple amdgcn--amdpal -mcpu=kaveri -mattr=-code-object-v3 | llvm-readobj -symbols -s -sd - | FileCheck %s --check-prefix=ELF ; RUN: llc < %s -mtriple=amdgcn--amdpal -mcpu=gfx1010 -mattr=+WavefrontSize32,-WavefrontSize64,-code-object-v3 | FileCheck --check-prefix=GFX10-W32 %s ; RUN: llc < %s -mtriple=amdgcn--amdpal -mcpu=gfx1010 -mattr=-WavefrontSize32,+WavefrontSize64,-code-object-v3 | FileCheck --check-prefix=GFX10-W64 %s diff --git a/test/CodeGen/AMDGPU/attr-amdgpu-flat-work-group-size.ll b/test/CodeGen/AMDGPU/attr-amdgpu-flat-work-group-size.ll index f372fcb4266..859fbc1e651 100644 --- a/test/CodeGen/AMDGPU/attr-amdgpu-flat-work-group-size.ll +++ b/test/CodeGen/AMDGPU/attr-amdgpu-flat-work-group-size.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 < %s | FileCheck --check-prefix=CHECK %s -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=HSAMD %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=HSAMD %s ; CHECK-LABEL: {{^}}min_64_max_64: ; CHECK: SGPRBlocks: 0 diff --git a/test/CodeGen/AMDGPU/code-object-v3.ll b/test/CodeGen/AMDGPU/code-object-v3.ll index 2dc41a96596..dafedf1dcd8 100644 --- a/test/CodeGen/AMDGPU/code-object-v3.ll +++ b/test/CodeGen/AMDGPU/code-object-v3.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 -mattr=+code-object-v3 < %s | FileCheck --check-prefixes=ALL-ASM,OSABI-AMDHSA-ASM %s -; RUN: llc -filetype=obj -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 -mattr=+code-object-v3 < %s | llvm-readelf --notes -relocations -sections -symbols | FileCheck --check-prefixes=ALL-ELF,OSABI-AMDHSA-ELF %s +; RUN: llc -filetype=obj -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 -mattr=+code-object-v3 < %s | llvm-readelf --notes -relocations -sections -symbols - | FileCheck --check-prefixes=ALL-ELF,OSABI-AMDHSA-ELF %s ; ALL-ASM-LABEL: {{^}}fadd: diff --git a/test/CodeGen/AMDGPU/elf-notes.ll b/test/CodeGen/AMDGPU/elf-notes.ll index a9b77d97133..3a73b91249d 100644 --- a/test/CodeGen/AMDGPU/elf-notes.ll +++ b/test/CodeGen/AMDGPU/elf-notes.ll @@ -1,12 +1,12 @@ ; RUN: llc -mtriple=amdgcn-amd-unknown -mcpu=gfx802 -mattr=-code-object-v3 < %s | FileCheck --check-prefix=GCN --check-prefix=OSABI-UNK --check-prefix=GFX802 %s ; RUN: llc -mtriple=amdgcn-amd-unknown -mcpu=iceland -mattr=-code-object-v3 < %s | FileCheck --check-prefix=GCN --check-prefix=OSABI-UNK --check-prefix=GFX802 %s -; RUN: llc -mtriple=amdgcn-amd-unknown -mcpu=gfx802 -filetype=obj -mattr=-code-object-v3 < %s | llvm-readelf --notes | FileCheck --check-prefix=GCN --check-prefix=OSABI-UNK-ELF --check-prefix=GFX802 %s +; RUN: llc -mtriple=amdgcn-amd-unknown -mcpu=gfx802 -filetype=obj -mattr=-code-object-v3 < %s | llvm-readelf --notes - | FileCheck --check-prefix=GCN --check-prefix=OSABI-UNK-ELF --check-prefix=GFX802 %s ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -mattr=-code-object-v3 < %s | FileCheck --check-prefix=GCN --check-prefix=OSABI-HSA --check-prefix=GFX802 %s ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=iceland -mattr=-code-object-v3 < %s | FileCheck --check-prefix=GCN --check-prefix=OSABI-HSA --check-prefix=GFX802 %s -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -filetype=obj -mattr=-code-object-v3 < %s | llvm-readelf --notes | FileCheck --check-prefix=GCN --check-prefix=OSABI-HSA-ELF --check-prefix=GFX802 %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -filetype=obj -mattr=-code-object-v3 < %s | llvm-readelf --notes - | FileCheck --check-prefix=GCN --check-prefix=OSABI-HSA-ELF --check-prefix=GFX802 %s ; RUN: llc -mtriple=amdgcn-amd-amdpal -mcpu=gfx802 -mattr=-code-object-v3 < %s | FileCheck --check-prefix=GCN --check-prefix=OSABI-PAL --check-prefix=GFX802 %s ; RUN: llc -mtriple=amdgcn-amd-amdpal -mcpu=iceland -mattr=-code-object-v3 < %s | FileCheck --check-prefix=GCN --check-prefix=OSABI-PAL --check-prefix=GFX802 %s -; RUN: llc -mtriple=amdgcn-amd-amdpal -mcpu=gfx802 -filetype=obj -mattr=-code-object-v3 < %s | llvm-readelf --notes | FileCheck --check-prefix=GCN --check-prefix=OSABI-PAL-ELF --check-prefix=GFX802 %s +; RUN: llc -mtriple=amdgcn-amd-amdpal -mcpu=gfx802 -filetype=obj -mattr=-code-object-v3 < %s | llvm-readelf --notes - | FileCheck --check-prefix=GCN --check-prefix=OSABI-PAL-ELF --check-prefix=GFX802 %s ; RUN: llc -march=r600 < %s | FileCheck --check-prefix=R600 %s ; OSABI-UNK-NOT: .hsa_code_object_version diff --git a/test/CodeGen/AMDGPU/hsa-func-align.ll b/test/CodeGen/AMDGPU/hsa-func-align.ll index 005540092c9..db0f60e924e 100644 --- a/test/CodeGen/AMDGPU/hsa-func-align.ll +++ b/test/CodeGen/AMDGPU/hsa-func-align.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=amdgcn--amdhsa -mcpu=kaveri < %s | FileCheck -check-prefix=HSA %s -; RUN: llc -mtriple=amdgcn--amdhsa -mcpu=kaveri -filetype=obj < %s | llvm-readobj --symbols -S --sd | FileCheck -check-prefix=ELF %s +; RUN: llc -mtriple=amdgcn--amdhsa -mcpu=kaveri -filetype=obj < %s | llvm-readobj --symbols -S --sd - | FileCheck -check-prefix=ELF %s ; ELF: Section { ; ELF: Name: .text diff --git a/test/CodeGen/AMDGPU/hsa-func.ll b/test/CodeGen/AMDGPU/hsa-func.ll index b04ad1ce963..4409384b0cb 100644 --- a/test/CodeGen/AMDGPU/hsa-func.ll +++ b/test/CodeGen/AMDGPU/hsa-func.ll @@ -2,8 +2,8 @@ ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mattr=-code-object-v3 -mcpu=kaveri | FileCheck --check-prefix=HSA-CI %s ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mattr=-code-object-v3 -mcpu=carrizo | FileCheck --check-prefix=HSA %s ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mattr=-code-object-v3 -mcpu=carrizo | FileCheck --check-prefix=HSA-VI %s -; RUN: llc < %s -mtriple=amdgcn--amdhsa -mattr=-code-object-v3 -mcpu=kaveri -filetype=obj | llvm-readobj --symbols -S --sd | FileCheck --check-prefix=ELF %s -; RUN: llc < %s -mtriple=amdgcn--amdhsa -mattr=-code-object-v3 -mcpu=kaveri | llvm-mc -filetype=obj -triple amdgcn--amdhsa -mattr=-code-object-v3 -mcpu=kaveri | llvm-readobj --symbols -S --sd | FileCheck %s --check-prefix=ELF +; RUN: llc < %s -mtriple=amdgcn--amdhsa -mattr=-code-object-v3 -mcpu=kaveri -filetype=obj | llvm-readobj --symbols -S --sd - | FileCheck --check-prefix=ELF %s +; RUN: llc < %s -mtriple=amdgcn--amdhsa -mattr=-code-object-v3 -mcpu=kaveri | llvm-mc -filetype=obj -triple amdgcn--amdhsa -mattr=-code-object-v3 -mcpu=kaveri | llvm-readobj --symbols -S --sd - | FileCheck %s --check-prefix=ELF ; The SHT_NOTE section contains the output from the .hsa_code_object_* ; directives. diff --git a/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg-v3.ll b/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg-v3.ll index 4afa9f35499..90714fa8bdd 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg-v3.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg-v3.ll @@ -1,4 +1,4 @@ -; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck %s +; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s ; CHECK: - .args: ; CHECK-NEXT: - .access: read_only diff --git a/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg.ll b/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg.ll index 6e22f85f453..c4374452b49 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s ; CHECK: - Name: test_ro_arg ; CHECK-NEXT: SymbolName: 'test_ro_arg@kd' diff --git a/test/CodeGen/AMDGPU/hsa-metadata-enqueue-kernel-v3.ll b/test/CodeGen/AMDGPU/hsa-metadata-enqueue-kernel-v3.ll index 5f77fef31bf..5768fa1f030 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-enqueue-kernel-v3.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-enqueue-kernel-v3.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mattr=+code-object-v3 -mcpu=gfx900 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mattr=+code-object-v3 -mcpu=gfx900 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mattr=+code-object-v3 -mcpu=gfx900 -amdgpu-dump-hsa-metadata -amdgpu-verify-hsa-metadata -filetype=obj -o - < %s 2>&1 | FileCheck --check-prefix=PARSER %s ; CHECK: --- diff --git a/test/CodeGen/AMDGPU/hsa-metadata-enqueue-kernel.ll b/test/CodeGen/AMDGPU/hsa-metadata-enqueue-kernel.ll index 086c810c9de..4ea88155c8a 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-enqueue-kernel.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-enqueue-kernel.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mattr=-code-object-v3 -mcpu=gfx900 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mattr=-code-object-v3 -mcpu=gfx900 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mattr=-code-object-v3 -mcpu=gfx900 -amdgpu-dump-hsa-metadata -amdgpu-verify-hsa-metadata -filetype=obj -o - < %s 2>&1 | FileCheck --check-prefix=PARSER %s ; CHECK: --- diff --git a/test/CodeGen/AMDGPU/hsa-metadata-from-llvm-ir-full-v3.ll b/test/CodeGen/AMDGPU/hsa-metadata-from-llvm-ir-full-v3.ll index ef441b9c3cc..1eb4eb717d9 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-from-llvm-ir-full-v3.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-from-llvm-ir-full-v3.ll @@ -1,6 +1,6 @@ -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -mattr=+code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX700 --check-prefix=NOTES %s -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -mattr=+code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX802 --check-prefix=NOTES %s -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -mattr=+code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -mattr=+code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX700 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -mattr=+code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX802 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -mattr=+code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -mattr=+code-object-v3 -amdgpu-dump-hsa-metadata -amdgpu-verify-hsa-metadata -filetype=obj -o - < %s 2>&1 | FileCheck --check-prefix=PARSER %s ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -mattr=+code-object-v3 -amdgpu-dump-hsa-metadata -amdgpu-verify-hsa-metadata -filetype=obj -o - < %s 2>&1 | FileCheck --check-prefix=PARSER %s ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -mattr=+code-object-v3 -amdgpu-dump-hsa-metadata -amdgpu-verify-hsa-metadata -filetype=obj -o - < %s 2>&1 | FileCheck --check-prefix=PARSER %s diff --git a/test/CodeGen/AMDGPU/hsa-metadata-from-llvm-ir-full.ll b/test/CodeGen/AMDGPU/hsa-metadata-from-llvm-ir-full.ll index 8969c7b45bb..85915cc5140 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-from-llvm-ir-full.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-from-llvm-ir-full.ll @@ -1,6 +1,6 @@ -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX700 --check-prefix=NOTES %s -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX802 --check-prefix=NOTES %s -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX700 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX802 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -mattr=-code-object-v3 -amdgpu-dump-hsa-metadata -amdgpu-verify-hsa-metadata -filetype=obj -o - < %s 2>&1 | FileCheck --check-prefix=PARSER %s ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -mattr=-code-object-v3 -amdgpu-dump-hsa-metadata -amdgpu-verify-hsa-metadata -filetype=obj -o - < %s 2>&1 | FileCheck --check-prefix=PARSER %s ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -mattr=-code-object-v3 -amdgpu-dump-hsa-metadata -amdgpu-verify-hsa-metadata -filetype=obj -o - < %s 2>&1 | FileCheck --check-prefix=PARSER %s diff --git a/test/CodeGen/AMDGPU/hsa-metadata-hidden-args-v3.ll b/test/CodeGen/AMDGPU/hsa-metadata-hidden-args-v3.ll index 67e2bfce503..235530c5cfd 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-hidden-args-v3.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-hidden-args-v3.ll @@ -1,6 +1,6 @@ -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -mattr=+code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX700 --check-prefix=NOTES %s -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 -mattr=+code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX803 --check-prefix=NOTES %s -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -mattr=+code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -mattr=+code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX700 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 -mattr=+code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX803 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -mattr=+code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s ; CHECK: --- ; CHECK: amdhsa.kernels: diff --git a/test/CodeGen/AMDGPU/hsa-metadata-hidden-args.ll b/test/CodeGen/AMDGPU/hsa-metadata-hidden-args.ll index 91e382dcce5..5322c60d68d 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-hidden-args.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-hidden-args.ll @@ -1,6 +1,6 @@ -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX700 --check-prefix=NOTES %s -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX803 --check-prefix=NOTES %s -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX700 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX803 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s ; CHECK: --- ; CHECK: Version: [ 1, 0 ] diff --git a/test/CodeGen/AMDGPU/hsa-metadata-hostcall-absent-v3.ll b/test/CodeGen/AMDGPU/hsa-metadata-hostcall-absent-v3.ll index c52e09158ee..1a81d8f90bb 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-hostcall-absent-v3.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-hostcall-absent-v3.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mattr=+code-object-v3 -mcpu=gfx900 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mattr=+code-object-v3 -mcpu=gfx900 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mattr=+code-object-v3 -mcpu=gfx900 -amdgpu-dump-hsa-metadata -amdgpu-verify-hsa-metadata -filetype=obj -o - < %s 2>&1 | FileCheck --check-prefix=PARSER %s ; CHECK: --- diff --git a/test/CodeGen/AMDGPU/hsa-metadata-hostcall-absent.ll b/test/CodeGen/AMDGPU/hsa-metadata-hostcall-absent.ll index fb5874acbe7..4f843b28851 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-hostcall-absent.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-hostcall-absent.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mattr=-code-object-v3 -mcpu=gfx900 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mattr=-code-object-v3 -mcpu=gfx900 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mattr=-code-object-v3 -mcpu=gfx900 -amdgpu-dump-hsa-metadata -amdgpu-verify-hsa-metadata -filetype=obj -o - < %s 2>&1 | FileCheck --check-prefix=PARSER %s ; CHECK: --- diff --git a/test/CodeGen/AMDGPU/hsa-metadata-hostcall-present-v3.ll b/test/CodeGen/AMDGPU/hsa-metadata-hostcall-present-v3.ll index 8fd62c89a60..f4cff1a5b20 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-hostcall-present-v3.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-hostcall-present-v3.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mattr=+code-object-v3 -mcpu=gfx900 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mattr=+code-object-v3 -mcpu=gfx900 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mattr=+code-object-v3 -mcpu=gfx900 -amdgpu-dump-hsa-metadata -amdgpu-verify-hsa-metadata -filetype=obj -o - < %s 2>&1 | FileCheck --check-prefix=PARSER %s ; CHECK: --- diff --git a/test/CodeGen/AMDGPU/hsa-metadata-hostcall-present.ll b/test/CodeGen/AMDGPU/hsa-metadata-hostcall-present.ll index e8db4d2a866..277055c8cb9 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-hostcall-present.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-hostcall-present.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mattr=-code-object-v3 -mcpu=gfx900 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mattr=-code-object-v3 -mcpu=gfx900 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mattr=-code-object-v3 -mcpu=gfx900 -amdgpu-dump-hsa-metadata -amdgpu-verify-hsa-metadata -filetype=obj -o - < %s 2>&1 | FileCheck --check-prefix=PARSER %s ; CHECK: --- diff --git a/test/CodeGen/AMDGPU/hsa-metadata-images-v3.ll b/test/CodeGen/AMDGPU/hsa-metadata-images-v3.ll index 5ee17a8c485..17f419dbdf5 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-images-v3.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-images-v3.ll @@ -1,6 +1,6 @@ -; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX700 --check-prefix=NOTES %s -; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX802 --check-prefix=NOTES %s -; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s +; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX700 --check-prefix=NOTES %s +; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX802 --check-prefix=NOTES %s +; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s %opencl.image1d_t = type opaque %opencl.image1d_array_t = type opaque diff --git a/test/CodeGen/AMDGPU/hsa-metadata-images.ll b/test/CodeGen/AMDGPU/hsa-metadata-images.ll index 79e0cfcffd8..d843a019001 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-images.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-images.ll @@ -1,6 +1,6 @@ -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX700 --check-prefix=NOTES %s -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX802 --check-prefix=NOTES %s -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX700 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX802 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s %opencl.image1d_t = type opaque %opencl.image1d_array_t = type opaque diff --git a/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-1-v3.ll b/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-1-v3.ll index 1c6103275c9..95f8cde2c8b 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-1-v3.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-1-v3.ll @@ -1,4 +1,4 @@ -; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck %s +; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s ; Make sure llc does not crash for invalid opencl version metadata. diff --git a/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-1.ll b/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-1.ll index 6ce365efbc6..1fbb097ef65 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-1.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-1.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s ; Make sure llc does not crash for invalid opencl version metadata. diff --git a/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-2-v3.ll b/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-2-v3.ll index 5f55ffb55c5..d9c1bebf1e2 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-2-v3.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-2-v3.ll @@ -1,4 +1,4 @@ -; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck %s +; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s ; Make sure llc does not crash for invalid opencl version metadata. diff --git a/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-2.ll b/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-2.ll index 74a5413aa61..89f6afb246e 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-2.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-2.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s ; Make sure llc does not crash for invalid opencl version metadata. diff --git a/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-3-v3.ll b/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-3-v3.ll index 31c77f0a031..0ab0df27c5c 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-3-v3.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-3-v3.ll @@ -1,4 +1,4 @@ -; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck %s +; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s ; Make sure llc does not crash for invalid opencl version metadata. diff --git a/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-3.ll b/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-3.ll index ca6a3d5d326..01e826c7f2a 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-3.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-3.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s ; Make sure llc does not crash for invalid opencl version metadata. diff --git a/test/CodeGen/AMDGPU/hsa-metadata-kernel-code-props-v3.ll b/test/CodeGen/AMDGPU/hsa-metadata-kernel-code-props-v3.ll index 858bd541236..d24af8482fd 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-kernel-code-props-v3.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-kernel-code-props-v3.ll @@ -1,7 +1,7 @@ -; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -enable-misched=0 -filetype=obj -o - < %s | llvm-readobj -elf-output-style=GNU -notes | FileCheck --check-prefix=CHECK --check-prefix=GFX700 --check-prefix=WAVE64 --check-prefix=NOTES %s -; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 -enable-misched=0 -filetype=obj -o - < %s | llvm-readobj -elf-output-style=GNU -notes | FileCheck --check-prefix=CHECK --check-prefix=GFX803 --check-prefix=WAVE64 --check-prefix=NOTES %s -; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -enable-misched=0 -filetype=obj -o - < %s | llvm-readobj -elf-output-style=GNU -notes | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=WAVE64 --check-prefix=NOTES %s -; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1010 -enable-misched=0 -filetype=obj -o - < %s | llvm-readobj -elf-output-style=GNU -notes | FileCheck --check-prefix=CHECK --check-prefix=GFX1010 --check-prefix=WAVE32 --check-prefix=NOTES %s +; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -enable-misched=0 -filetype=obj -o - < %s | llvm-readobj -elf-output-style=GNU -notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX700 --check-prefix=WAVE64 --check-prefix=NOTES %s +; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 -enable-misched=0 -filetype=obj -o - < %s | llvm-readobj -elf-output-style=GNU -notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX803 --check-prefix=WAVE64 --check-prefix=NOTES %s +; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -enable-misched=0 -filetype=obj -o - < %s | llvm-readobj -elf-output-style=GNU -notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=WAVE64 --check-prefix=NOTES %s +; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1010 -enable-misched=0 -filetype=obj -o - < %s | llvm-readobj -elf-output-style=GNU -notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX1010 --check-prefix=WAVE32 --check-prefix=NOTES %s @var = addrspace(1) global float 0.0 diff --git a/test/CodeGen/AMDGPU/hsa-metadata-kernel-code-props.ll b/test/CodeGen/AMDGPU/hsa-metadata-kernel-code-props.ll index 12d8973333f..86306127b33 100644 --- a/test/CodeGen/AMDGPU/hsa-metadata-kernel-code-props.ll +++ b/test/CodeGen/AMDGPU/hsa-metadata-kernel-code-props.ll @@ -1,6 +1,6 @@ -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -mattr=-code-object-v3 -enable-misched=0 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX700 --check-prefix=NOTES %s -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 -mattr=-code-object-v3 -enable-misched=0 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX803 --check-prefix=NOTES %s -; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -mattr=-code-object-v3 -enable-misched=0 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -mattr=-code-object-v3 -enable-misched=0 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX700 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 -mattr=-code-object-v3 -enable-misched=0 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX803 --check-prefix=NOTES %s +; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -mattr=-code-object-v3 -enable-misched=0 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s @var = addrspace(1) global float 0.0 diff --git a/test/CodeGen/AMDGPU/hsa.ll b/test/CodeGen/AMDGPU/hsa.ll index 3462398b585..f23ce238998 100644 --- a/test/CodeGen/AMDGPU/hsa.ll +++ b/test/CodeGen/AMDGPU/hsa.ll @@ -2,8 +2,8 @@ ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3,-flat-for-global | FileCheck --check-prefix=HSA-CI %s ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=carrizo -mattr=-code-object-v3 | FileCheck --check-prefix=HSA %s ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=carrizo -mattr=-code-object-v3,-flat-for-global | FileCheck --check-prefix=HSA-VI %s -; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=kaveri -filetype=obj -mattr=-code-object-v3 | llvm-readobj -symbols -s -sd | FileCheck --check-prefix=ELF %s -; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 | llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 | llvm-readobj -symbols -s -sd | FileCheck %s --check-prefix=ELF +; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=kaveri -filetype=obj -mattr=-code-object-v3 | llvm-readobj -symbols -s -sd - | FileCheck --check-prefix=ELF %s +; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 | llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 | llvm-readobj -symbols -s -sd - | FileCheck %s --check-prefix=ELF ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=gfx1010 -mattr=+WavefrontSize32,-WavefrontSize64,-code-object-v3 | FileCheck --check-prefix=HSA --check-prefix=GFX10 --check-prefix=GFX10-W32 %s ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=gfx1010 -mattr=-WavefrontSize32,+WavefrontSize64,-code-object-v3 | FileCheck --check-prefix=HSA --check-prefix=GFX10 --check-prefix=GFX10-W64 %s diff --git a/test/CodeGen/AMDGPU/lds-relocs.ll b/test/CodeGen/AMDGPU/lds-relocs.ll index cf88c235e03..3e458378a71 100644 --- a/test/CodeGen/AMDGPU/lds-relocs.ll +++ b/test/CodeGen/AMDGPU/lds-relocs.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx900 -verify-machineinstrs -show-mc-encoding < %s | FileCheck -check-prefixes=GCN %s -; RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx900 -filetype=obj < %s | llvm-readobj -r -t | FileCheck -check-prefixes=ELF %s +; RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx900 -filetype=obj < %s | llvm-readobj -r -t - | FileCheck -check-prefixes=ELF %s @lds.external = external unnamed_addr addrspace(3) global [0 x i32] @lds.defined = unnamed_addr addrspace(3) global [8 x i32] undef, align 8 diff --git a/test/CodeGen/AMDGPU/no-initializer-constant-addrspace.ll b/test/CodeGen/AMDGPU/no-initializer-constant-addrspace.ll index 2312112b7bc..feb582e28ff 100644 --- a/test/CodeGen/AMDGPU/no-initializer-constant-addrspace.ll +++ b/test/CodeGen/AMDGPU/no-initializer-constant-addrspace.ll @@ -1,6 +1,6 @@ -; RUN: llc -mtriple=amdgcn- -mcpu=tahiti -filetype=obj < %s | llvm-readobj -r --symbols | FileCheck %s -check-prefix=GCN -; RUN: llc -mtriple=amdgcn- -mcpu=tonga -filetype=obj < %s | llvm-readobj -r --symbols | FileCheck %s -check-prefix=GCN -; RUN: llc -mtriple=r600- -mcpu=cypress -filetype=obj < %s | llvm-readobj -r --symbols | FileCheck %s -check-prefix=EG +; RUN: llc -mtriple=amdgcn- -mcpu=tahiti -filetype=obj < %s | llvm-readobj -r --symbols - | FileCheck %s -check-prefix=GCN +; RUN: llc -mtriple=amdgcn- -mcpu=tonga -filetype=obj < %s | llvm-readobj -r --symbols - | FileCheck %s -check-prefix=GCN +; RUN: llc -mtriple=r600- -mcpu=cypress -filetype=obj < %s | llvm-readobj -r --symbols - | FileCheck %s -check-prefix=EG ; GCN: R_AMDGPU_GOTPCREL32_LO extern_const_addrspace 0x0 ; EG: R_AMDGPU_ABS32 extern_const_addrspace diff --git a/test/CodeGen/AMDGPU/r600-constant-array-fixup.ll b/test/CodeGen/AMDGPU/r600-constant-array-fixup.ll index 7166a88b481..54460a77c4d 100644 --- a/test/CodeGen/AMDGPU/r600-constant-array-fixup.ll +++ b/test/CodeGen/AMDGPU/r600-constant-array-fixup.ll @@ -1,4 +1,4 @@ -; RUN: llc -filetype=obj -mtriple=r600-mesa-mesa3d -mcpu=cypress -verify-machineinstrs < %s | llvm-readobj -r --symbols | FileCheck %s +; RUN: llc -filetype=obj -mtriple=r600-mesa-mesa3d -mcpu=cypress -verify-machineinstrs < %s | llvm-readobj -r --symbols - | FileCheck %s @arr = internal unnamed_addr addrspace(4) constant [4 x i32] [i32 4, i32 5, i32 6, i32 7], align 4 diff --git a/test/CodeGen/AMDGPU/scratch-simple.ll b/test/CodeGen/AMDGPU/scratch-simple.ll index 2c852f066c4..5fe1329ecf6 100644 --- a/test/CodeGen/AMDGPU/scratch-simple.ll +++ b/test/CodeGen/AMDGPU/scratch-simple.ll @@ -1,7 +1,7 @@ ; RUN: llc -march=amdgcn -mtriple=amdgcn-- -mcpu=verde -amdgpu-use-divergent-register-indexing -verify-machineinstrs < %s | FileCheck --check-prefixes=GCN,SI,SIVI %s ; RUN: llc -march=amdgcn -mtriple=amdgcn-- -mcpu=gfx803 -mattr=-flat-for-global -amdgpu-use-divergent-register-indexing -verify-machineinstrs < %s | FileCheck --check-prefixes=GCN,VI,SIVI %s ; RUN: llc -march=amdgcn -mtriple=amdgcn-- -mcpu=gfx900 -mattr=-flat-for-global -amdgpu-use-divergent-register-indexing -verify-machineinstrs < %s | FileCheck --check-prefixes=GCN,GFX9,GFX9_10 %s -; RUN: llc -march=amdgcn -mtriple=amdgcn-- -mcpu=gfx900 -filetype=obj -amdgpu-use-divergent-register-indexing < %s | llvm-readobj -r | FileCheck --check-prefix=RELS %s +; RUN: llc -march=amdgcn -mtriple=amdgcn-- -mcpu=gfx900 -filetype=obj -amdgpu-use-divergent-register-indexing < %s | llvm-readobj -r - | FileCheck --check-prefix=RELS %s ; RUN: llc -march=amdgcn -mtriple=amdgcn-- -mcpu=gfx1010 -mattr=-flat-for-global -amdgpu-use-divergent-register-indexing -verify-machineinstrs < %s | FileCheck --check-prefixes=GCN,GFX10_W32,GFX9_10 %s ; RUN: llc -march=amdgcn -mtriple=amdgcn-- -mcpu=gfx1010 -mattr=-flat-for-global,+wavefrontsize64 -amdgpu-use-divergent-register-indexing -verify-machineinstrs < %s | FileCheck --check-prefixes=GCN,GFX10_W64,GFX9_10 %s diff --git a/test/CodeGen/ARM/2010-12-08-tpsoft.ll b/test/CodeGen/ARM/2010-12-08-tpsoft.ll index 14883f4f1d5..2df9fb76b97 100644 --- a/test/CodeGen/ARM/2010-12-08-tpsoft.ll +++ b/test/CodeGen/ARM/2010-12-08-tpsoft.ll @@ -1,7 +1,7 @@ ; RUN: llc %s -mtriple=armv7-linux-gnueabi -o - | \ ; RUN: FileCheck -check-prefix=ELFASM %s ; RUN: llc %s -mtriple=armv7-linux-gnueabi -filetype=obj -o - | \ -; RUN: llvm-readobj -S --sd | FileCheck -check-prefix=ELFOBJ %s +; RUN: llvm-readobj -S --sd - | FileCheck -check-prefix=ELFOBJ %s ;; Make sure that bl __aeabi_read_tp is materialized and fixed up correctly ;; in the obj case. diff --git a/test/CodeGen/ARM/2010-12-15-elf-lcomm.ll b/test/CodeGen/ARM/2010-12-15-elf-lcomm.ll index bf53ab24dab..ccebe2a003c 100644 --- a/test/CodeGen/ARM/2010-12-15-elf-lcomm.ll +++ b/test/CodeGen/ARM/2010-12-15-elf-lcomm.ll @@ -1,5 +1,5 @@ ; RUN: llc %s -mtriple=armv7-linux-gnueabi -filetype=obj -o - | \ -; RUN: llvm-readobj -S --symbols | FileCheck -check-prefix=OBJ %s +; RUN: llvm-readobj -S --symbols - | FileCheck -check-prefix=OBJ %s ; RUN: llc %s -mtriple=armv7-linux-gnueabi -o - | \ ; RUN: FileCheck -check-prefix=ASM %s diff --git a/test/CodeGen/ARM/MachO-subtypes.ll b/test/CodeGen/ARM/MachO-subtypes.ll index bd002622e30..f5cc20a4d07 100644 --- a/test/CodeGen/ARM/MachO-subtypes.ll +++ b/test/CodeGen/ARM/MachO-subtypes.ll @@ -1,57 +1,57 @@ ; Check that MachO ARM CPU Subtypes are respected ; RUN: llc -mtriple=armv4t-apple-darwin -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V4T +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V4T ; RUN: llc -mtriple=armv5-apple-darwin -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V5 +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V5 ; RUN: llc -mtriple=armv5e-apple-darwin -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V5 +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V5 ; RUN: llc -mtriple=armv5t-apple-darwin -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V5 +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V5 ; RUN: llc -mtriple=armv5te-apple-darwin -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V5 +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V5 ; RUN: llc -mtriple=armv5tej-apple-darwin -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V5 +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V5 ; RUN: llc -mtriple=armv6-apple-darwin -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V6 +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V6 ; RUN: llc -mtriple=armv6k-apple-darwin -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V6 +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V6 ; RUN: llc -mtriple=thumbv6-apple-darwin -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V6 +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V6 ; RUN: llc -mtriple=thumbv6k-apple-darwin -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V6 +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V6 ; RUN: llc -mtriple=armv6m-apple-darwin -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V6M +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V6M ; RUN: llc -mtriple=thumbv6m-apple-darwin -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V6M +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V6M ; RUN: llc -mtriple=armv7-apple-darwin -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V7 +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V7 ; RUN: llc -mtriple=thumbv7-apple-darwin -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V7 +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V7 ; RUN: llc -mtriple=thumbv7em-apple-darwin -mcpu=cortex-m4 -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V7EM +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V7EM ; RUN: llc -mtriple=thumbv7em-apple-darwin -mcpu=cortex-m7 -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V7EM +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V7EM ; RUN: llc -mtriple=armv7k-apple-darwin -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V7K +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V7K ; RUN: llc -mtriple=thumbv7k-apple-darwin -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V7K +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V7K ; RUN: llc -mtriple=thumbv7m-apple-darwin -mcpu=sc300 -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V7M +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V7M ; RUN: llc -mtriple=thumbv7m-apple-darwin -mcpu=cortex-m3 -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V7M +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V7M ; RUN: llc -mtriple=armv7s-apple-darwin -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V7S +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V7S ; RUN: llc -mtriple=thumbv7s-apple-darwin -filetype=obj -o - < %s \ -; RUN: | llvm-readobj --file-headers | FileCheck %s --check-prefix=CHECK-V7S +; RUN: | llvm-readobj --file-headers - | FileCheck %s --check-prefix=CHECK-V7S define void @_test() { ret void diff --git a/test/CodeGen/ARM/build-attributes-encoding.s b/test/CodeGen/ARM/build-attributes-encoding.s index 356185079d6..87e28f0adf8 100644 --- a/test/CodeGen/ARM/build-attributes-encoding.s +++ b/test/CodeGen/ARM/build-attributes-encoding.s @@ -1,7 +1,7 @@ // This tests that ARM attributes are properly encoded. // RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj -o - \ -// RUN: | llvm-readobj -S --sd | FileCheck %s +// RUN: | llvm-readobj -S --sd - | FileCheck %s // Tag_CPU_name (=5) .cpu cortex-a8 diff --git a/test/CodeGen/BPF/BTF/binary-format.ll b/test/CodeGen/BPF/BTF/binary-format.ll index ec4363cce18..d5b4b4786c1 100644 --- a/test/CodeGen/BPF/BTF/binary-format.ll +++ b/test/CodeGen/BPF/BTF/binary-format.ll @@ -1,5 +1,5 @@ -; RUN: llc -march=bpfel -filetype=obj -o - %s | llvm-readelf -x ".BTF" -x ".BTF.ext" | FileCheck -check-prefixes=CHECK,CHECK-EL %s -; RUN: llc -march=bpfeb -filetype=obj -o - %s | llvm-readelf -x ".BTF" -x ".BTF.ext" | FileCheck -check-prefixes=CHECK,CHECK-EB %s +; RUN: llc -march=bpfel -filetype=obj -o - %s | llvm-readelf -x ".BTF" -x ".BTF.ext" - | FileCheck -check-prefixes=CHECK,CHECK-EL %s +; RUN: llc -march=bpfeb -filetype=obj -o - %s | llvm-readelf -x ".BTF" -x ".BTF.ext" - | FileCheck -check-prefixes=CHECK,CHECK-EB %s ; Source code: ; int f(int a) { return a; } diff --git a/test/CodeGen/BPF/CORE/no-elf-ama-symbol.ll b/test/CodeGen/BPF/CORE/no-elf-ama-symbol.ll index 8851c502b6f..3ac50f120a1 100644 --- a/test/CodeGen/BPF/CORE/no-elf-ama-symbol.ll +++ b/test/CodeGen/BPF/CORE/no-elf-ama-symbol.ll @@ -1,7 +1,7 @@ -; RUN: llc -march=bpfel -filetype=obj -o - %s | llvm-readelf -s | FileCheck -check-prefixes=CHECK %s -; RUN: llc -march=bpfeb -filetype=obj -o - %s | llvm-readelf -s | FileCheck -check-prefixes=CHECK %s -; RUN: llc -march=bpfel -filetype=obj -addrsig -o - %s | llvm-readelf -s | FileCheck -check-prefixes=CHECK %s -; RUN: llc -march=bpfeb -filetype=obj -addrsig -o - %s | llvm-readelf -s | FileCheck -check-prefixes=CHECK %s +; RUN: llc -march=bpfel -filetype=obj -o - %s | llvm-readelf -s - | FileCheck -check-prefixes=CHECK %s +; RUN: llc -march=bpfeb -filetype=obj -o - %s | llvm-readelf -s - | FileCheck -check-prefixes=CHECK %s +; RUN: llc -march=bpfel -filetype=obj -addrsig -o - %s | llvm-readelf -s - | FileCheck -check-prefixes=CHECK %s +; RUN: llc -march=bpfeb -filetype=obj -addrsig -o - %s | llvm-readelf -s - | FileCheck -check-prefixes=CHECK %s ; ; Source Code: ; struct tt { int a; } __attribute__((preserve_access_index)); diff --git a/test/CodeGen/BPF/elf-symbol-information.ll b/test/CodeGen/BPF/elf-symbol-information.ll index 37af7eddea5..5e400dab32e 100644 --- a/test/CodeGen/BPF/elf-symbol-information.ll +++ b/test/CodeGen/BPF/elf-symbol-information.ll @@ -1,4 +1,4 @@ -; RUN: llc -march=bpfel -filetype=obj -o - %s | llvm-readelf --symbols | FileCheck %s +; RUN: llc -march=bpfel -filetype=obj -o - %s | llvm-readelf --symbols - | FileCheck %s ; CHECK: 0 FILE LOCAL DEFAULT ABS elf-symbol-information.ll ; CHECK: 8 FUNC GLOBAL DEFAULT 2 test_func diff --git a/test/CodeGen/Hexagon/simple_addend.ll b/test/CodeGen/Hexagon/simple_addend.ll index e0308cdc5cf..4a6f0323bcb 100644 --- a/test/CodeGen/Hexagon/simple_addend.ll +++ b/test/CodeGen/Hexagon/simple_addend.ll @@ -1,4 +1,4 @@ -; RUN: llc -march=hexagon -filetype=obj -o - < %s | llvm-readobj -r | FileCheck %s +; RUN: llc -march=hexagon -filetype=obj -o - < %s | llvm-readobj -r - | FileCheck %s declare void @bar(i32); diff --git a/test/CodeGen/MIR/X86/diexpr-win32.mir b/test/CodeGen/MIR/X86/diexpr-win32.mir index f12e4922f34..8f88926376f 100644 --- a/test/CodeGen/MIR/X86/diexpr-win32.mir +++ b/test/CodeGen/MIR/X86/diexpr-win32.mir @@ -1,4 +1,4 @@ -# RUN: llc -start-after=prologepilog -filetype=obj -O0 %s -o - | llvm-readobj --codeview | FileCheck %s +# RUN: llc -start-after=prologepilog -filetype=obj -O0 %s -o - | llvm-readobj --codeview - | FileCheck %s # Offsets are now CFA, or VFRAME, relative. Both the NRVO sret pointer and the # string* parameter are on the stack, NRVO at offset 4 (after RA), and Str at diff --git a/test/CodeGen/Mips/cpus.ll b/test/CodeGen/Mips/cpus.ll index 182d13b1c7e..5f9740c2ce8 100644 --- a/test/CodeGen/Mips/cpus.ll +++ b/test/CodeGen/Mips/cpus.ll @@ -1,57 +1,57 @@ ; Check that the CPU names work. ; RUN: llc -mtriple=mips -mcpu=generic -filetype=obj < %s \ -; RUN: | llvm-readelf -A | FileCheck %s --check-prefix=GENERIC +; RUN: | llvm-readelf -A - | FileCheck %s --check-prefix=GENERIC ; GENERIC: ISA: MIPS32 ; RUN: llc -mtriple=mips -mcpu=mips2 -filetype=obj < %s \ -; RUN: | llvm-readelf -A | FileCheck %s --check-prefix=MIPS2 +; RUN: | llvm-readelf -A - | FileCheck %s --check-prefix=MIPS2 ; MIPS2: ISA: MIPS2 ; RUN: llc -mtriple=mips64 -mcpu=mips3 -filetype=obj < %s \ -; RUN: | llvm-readelf -A | FileCheck %s --check-prefix=MIPS3 +; RUN: | llvm-readelf -A - | FileCheck %s --check-prefix=MIPS3 ; MIPS3: ISA: MIPS3 ; RUN: llc -mtriple=mips64 -mcpu=mips4 -filetype=obj < %s \ -; RUN: | llvm-readelf -A | FileCheck %s --check-prefix=MIPS4 +; RUN: | llvm-readelf -A - | FileCheck %s --check-prefix=MIPS4 ; MIPS4: ISA: MIPS4 ; RUN: llc -mtriple=mips -mcpu=mips32 -filetype=obj < %s \ -; RUN: | llvm-readelf -A | FileCheck %s --check-prefix=MIPS32 +; RUN: | llvm-readelf -A - | FileCheck %s --check-prefix=MIPS32 ; MIPS32: ISA: MIPS32 ; RUN: llc -mtriple=mips -mcpu=mips32r2 -filetype=obj < %s \ -; RUN: | llvm-readelf -A | FileCheck %s --check-prefix=MIPS32R2 +; RUN: | llvm-readelf -A - | FileCheck %s --check-prefix=MIPS32R2 ; MIPS32R2: ISA: MIPS32r2 ; RUN: llc -mtriple=mips -mcpu=mips32r3 -filetype=obj < %s \ -; RUN: | llvm-readelf -A | FileCheck %s --check-prefix=MIPS32R3 +; RUN: | llvm-readelf -A - | FileCheck %s --check-prefix=MIPS32R3 ; MIPS32R3: ISA: MIPS32r3 ; RUN: llc -mtriple=mips -mcpu=mips32r5 -filetype=obj < %s \ -; RUN: | llvm-readelf -A | FileCheck %s --check-prefix=MIPS32R5 +; RUN: | llvm-readelf -A - | FileCheck %s --check-prefix=MIPS32R5 ; MIPS32R5: ISA: MIPS32r5 ; RUN: llc -mtriple=mips -mcpu=mips32r6 -filetype=obj < %s \ -; RUN: | llvm-readelf -A | FileCheck %s --check-prefix=MIPS32R6 +; RUN: | llvm-readelf -A - | FileCheck %s --check-prefix=MIPS32R6 ; MIPS32R6: ISA: MIPS32r6 ; RUN: llc -mtriple=mips64 -mcpu=mips64 -filetype=obj < %s \ -; RUN: | llvm-readelf -A | FileCheck %s --check-prefix=MIPS64 +; RUN: | llvm-readelf -A - | FileCheck %s --check-prefix=MIPS64 ; MIPS64: ISA: MIPS64 ; RUN: llc -mtriple=mips64 -mcpu=mips64r2 -filetype=obj < %s \ -; RUN: | llvm-readelf -A | FileCheck %s --check-prefix=MIPS64R2 +; RUN: | llvm-readelf -A - | FileCheck %s --check-prefix=MIPS64R2 ; MIPS64R2: ISA: MIPS64r2 ; RUN: llc -mtriple=mips64 -mcpu=mips64r3 -filetype=obj < %s \ -; RUN: | llvm-readelf -A | FileCheck %s --check-prefix=MIPS64R3 +; RUN: | llvm-readelf -A - | FileCheck %s --check-prefix=MIPS64R3 ; MIPS64R3: ISA: MIPS64r3 ; RUN: llc -mtriple=mips64 -mcpu=mips64r5 -filetype=obj < %s \ -; RUN: | llvm-readelf -A | FileCheck %s --check-prefix=MIPS64R5 +; RUN: | llvm-readelf -A - | FileCheck %s --check-prefix=MIPS64R5 ; MIPS64R5: ISA: MIPS64r5 ; RUN: llc -mtriple=mips64 -mcpu=mips64r6 -filetype=obj < %s \ -; RUN: | llvm-readelf -A | FileCheck %s --check-prefix=MIPS64R6 +; RUN: | llvm-readelf -A - | FileCheck %s --check-prefix=MIPS64R6 ; MIPS64R6: ISA: MIPS64r6 ; RUN: llc -mtriple=mips64 -mcpu=octeon -filetype=obj < %s \ -; RUN: | llvm-readelf -A | FileCheck %s --check-prefix=OCTEON +; RUN: | llvm-readelf -A - | FileCheck %s --check-prefix=OCTEON ; OCTEON: ISA: MIPS64r2 ; OCTEON: ISA Extension: Cavium Networks Octeon ; RUN: llc -mtriple=mips64 -mcpu=octeon+ -filetype=obj < %s \ -; RUN: | llvm-readelf -A | FileCheck %s --check-prefix=OCTEONP +; RUN: | llvm-readelf -A - | FileCheck %s --check-prefix=OCTEONP ; OCTEONP: ISA: MIPS64r2 ; OCTEONP: ISA Extension: Cavium Networks OcteonP diff --git a/test/CodeGen/Mips/micromips-ase-function-attribute.ll b/test/CodeGen/Mips/micromips-ase-function-attribute.ll index cd78166d372..edb94496b3e 100644 --- a/test/CodeGen/Mips/micromips-ase-function-attribute.ll +++ b/test/CodeGen/Mips/micromips-ase-function-attribute.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=mips-unknown-linux -filetype=obj %s -o - | \ -; RUN: llvm-readobj -A | \ +; RUN: llvm-readobj -A - | \ ; RUN: FileCheck --check-prefix=ASE-MICROMIPS %s define void @_Z3foov() #0 { diff --git a/test/CodeGen/Mips/mips-shf-gprel.s b/test/CodeGen/Mips/mips-shf-gprel.s index 0228a3fa24b..51a513a7785 100644 --- a/test/CodeGen/Mips/mips-shf-gprel.s +++ b/test/CodeGen/Mips/mips-shf-gprel.s @@ -2,7 +2,7 @@ # and proper section types. # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o - \ -# RUN: | llvm-readobj -S | FileCheck %s +# RUN: | llvm-readobj -S - | FileCheck %s .sdata .word 0 diff --git a/test/CodeGen/PowerPC/mcm-obj-2.ll b/test/CodeGen/PowerPC/mcm-obj-2.ll index 0884d34a88a..ce305800de8 100644 --- a/test/CodeGen/PowerPC/mcm-obj-2.ll +++ b/test/CodeGen/PowerPC/mcm-obj-2.ll @@ -1,5 +1,5 @@ ; RUN: llc -relocation-model=static -verify-machineinstrs -O1 -mcpu=pwr7 -code-model=medium -filetype=obj %s -o - | \ -; RUN: llvm-readobj -r | FileCheck %s +; RUN: llvm-readobj -r - | FileCheck %s ; FIXME: When asm-parse is available, could make this an assembly test. diff --git a/test/CodeGen/PowerPC/mcm-obj.ll b/test/CodeGen/PowerPC/mcm-obj.ll index fa899b5b301..452aa83fd1d 100644 --- a/test/CodeGen/PowerPC/mcm-obj.ll +++ b/test/CodeGen/PowerPC/mcm-obj.ll @@ -1,13 +1,13 @@ ; RUN: llc -relocation-model=static -verify-machineinstrs -O0 -mcpu=pwr7 -code-model=medium -filetype=obj -fast-isel=false %s -o - | \ -; RUN: llvm-readobj -r | FileCheck -check-prefix=MEDIUM %s +; RUN: llvm-readobj -r - | FileCheck -check-prefix=MEDIUM %s ; RUN: llc -relocation-model=static -verify-machineinstrs -O0 -mcpu=pwr7 -code-model=large -filetype=obj -fast-isel=false %s -o - | \ -; RUN: llvm-readobj -r | FileCheck -check-prefix=LARGE %s +; RUN: llvm-readobj -r - | FileCheck -check-prefix=LARGE %s ; Run jump table test separately since jump tables aren't generated at -O0. ; RUN: llc -relocation-model=static -verify-machineinstrs -mcpu=pwr7 -code-model=medium -filetype=obj -fast-isel=false %s -o - | \ -; RUN: llvm-readobj -r | FileCheck -check-prefix=MEDIUM-JT %s +; RUN: llvm-readobj -r - | FileCheck -check-prefix=MEDIUM-JT %s ; RUN: llc -relocation-model=static -verify-machineinstrs -mcpu=pwr7 -code-model=large -filetype=obj -fast-isel=false %s -o - | \ -; RUN: llvm-readobj -r | FileCheck -check-prefix=LARGE-JT %s +; RUN: llvm-readobj -r - | FileCheck -check-prefix=LARGE-JT %s ; FIXME: When asm-parse is available, could make this an assembly test. diff --git a/test/CodeGen/PowerPC/pr15359.ll b/test/CodeGen/PowerPC/pr15359.ll index 23f9e211e93..273663e4f5a 100644 --- a/test/CodeGen/PowerPC/pr15359.ll +++ b/test/CodeGen/PowerPC/pr15359.ll @@ -1,5 +1,5 @@ ; RUN: llc -verify-machineinstrs -O0 -mcpu=pwr7 -filetype=obj %s -o - | \ -; RUN: llvm-readobj --symbols | FileCheck %s +; RUN: llvm-readobj --symbols - | FileCheck %s target datalayout = "E-p:64:64:64-S0-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-f128:128:128-v64:64:64-v128:128:128-a0:0:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" diff --git a/test/CodeGen/PowerPC/pr22711.ll b/test/CodeGen/PowerPC/pr22711.ll index fec38ac8952..044486553a6 100644 --- a/test/CodeGen/PowerPC/pr22711.ll +++ b/test/CodeGen/PowerPC/pr22711.ll @@ -1,6 +1,6 @@ ; Verify that the .toc section is aligned on an 8-byte boundary. -; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -filetype=obj -o - | llvm-readobj --sections | FileCheck %s +; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -filetype=obj -o - | llvm-readobj --sections - | FileCheck %s define void @test(i32* %a) { entry: diff --git a/test/CodeGen/RISCV/fixups-diff.ll b/test/CodeGen/RISCV/fixups-diff.ll index 08dca52a345..8b2273ddaa3 100644 --- a/test/CodeGen/RISCV/fixups-diff.ll +++ b/test/CodeGen/RISCV/fixups-diff.ll @@ -1,7 +1,7 @@ ; RUN: llc -filetype=obj -mtriple=riscv32 -mattr=+relax %s -o - \ -; RUN: | llvm-readobj -r | FileCheck -check-prefix=RELAX %s +; RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELAX %s ; RUN: llc -filetype=obj -mtriple=riscv32 -mattr=-relax %s -o - \ -; RUN: | llvm-readobj -r | FileCheck -check-prefix=NORELAX %s +; RUN: | llvm-readobj -r - | FileCheck -check-prefix=NORELAX %s ; Check that a difference between two symbols in the same fragment ; causes relocations to be emitted if and only if relaxation is enabled. diff --git a/test/CodeGen/RISCV/fixups-relax-diff.ll b/test/CodeGen/RISCV/fixups-relax-diff.ll index 0fa7998dae0..2ac335b74d6 100644 --- a/test/CodeGen/RISCV/fixups-relax-diff.ll +++ b/test/CodeGen/RISCV/fixups-relax-diff.ll @@ -1,7 +1,7 @@ ; RUN: llc -filetype=obj -mtriple=riscv32 -mattr=+relax %s -o - \ -; RUN: | llvm-readobj -r | FileCheck -check-prefix=RELAX %s +; RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELAX %s ; RUN: llc -filetype=obj -mtriple=riscv32 -mattr=-relax %s -o - \ -; RUN: | llvm-readobj -r | FileCheck -check-prefix=NORELAX %s +; RUN: | llvm-readobj -r - | FileCheck -check-prefix=NORELAX %s ; This test checks that a diff inserted via inline assembly only causes ; relocations when relaxation is enabled. This isn't an assembly test diff --git a/test/CodeGen/SPARC/obj-relocs.ll b/test/CodeGen/SPARC/obj-relocs.ll index 0e7e04032be..edeb39ec47e 100644 --- a/test/CodeGen/SPARC/obj-relocs.ll +++ b/test/CodeGen/SPARC/obj-relocs.ll @@ -1,5 +1,5 @@ -; RUN: llc < %s -march=sparcv9 -filetype=obj --relocation-model=static | llvm-readobj -r | FileCheck %s --check-prefix=CHECK-ABS -; RUN: llc < %s -march=sparcv9 -filetype=obj --relocation-model=pic | llvm-readobj -r | FileCheck %s --check-prefix=CHECK-PIC +; RUN: llc < %s -march=sparcv9 -filetype=obj --relocation-model=static | llvm-readobj -r - | FileCheck %s --check-prefix=CHECK-ABS +; RUN: llc < %s -march=sparcv9 -filetype=obj --relocation-model=pic | llvm-readobj -r - | FileCheck %s --check-prefix=CHECK-PIC ;CHECK-ABS: Relocations [ ;CHECK-ABS: 0x{{[0-9,A-F]+}} R_SPARC_H44 AGlobalVar 0x0 diff --git a/test/CodeGen/SPARC/tls.ll b/test/CodeGen/SPARC/tls.ll index 843769df8d9..da676ca84d4 100644 --- a/test/CodeGen/SPARC/tls.ll +++ b/test/CodeGen/SPARC/tls.ll @@ -3,10 +3,10 @@ ; RUN: llc <%s -mtriple=sparc-unknown-linux -relocation-model=pic | FileCheck %s --check-prefix=pic ; RUN: llc <%s -mtriple=sparcv9-unknown-linux -relocation-model=pic | FileCheck %s --check-prefix=pic -; RUN: llc <%s -mtriple=sparc-unknown-linux -relocation-model=static -filetype=obj | llvm-readobj -r --symbols | FileCheck %s --check-prefix=v8abs-obj -; RUN: llc <%s -mtriple=sparcv9-unknown-linux -relocation-model=static -filetype=obj | llvm-readobj -r --symbols | FileCheck %s --check-prefix=v9abs-obj -; RUN: llc <%s -mtriple=sparc-unknown-linux -relocation-model=pic -filetype=obj | llvm-readobj -r --symbols | FileCheck %s --check-prefix=pic-obj -; RUN: llc <%s -mtriple=sparcv9-unknown-linux -relocation-model=pic -filetype=obj | llvm-readobj -r --symbols | FileCheck %s --check-prefix=pic-obj +; RUN: llc <%s -mtriple=sparc-unknown-linux -relocation-model=static -filetype=obj | llvm-readobj -r --symbols - | FileCheck %s --check-prefix=v8abs-obj +; RUN: llc <%s -mtriple=sparcv9-unknown-linux -relocation-model=static -filetype=obj | llvm-readobj -r --symbols - | FileCheck %s --check-prefix=v9abs-obj +; RUN: llc <%s -mtriple=sparc-unknown-linux -relocation-model=pic -filetype=obj | llvm-readobj -r --symbols - | FileCheck %s --check-prefix=pic-obj +; RUN: llc <%s -mtriple=sparcv9-unknown-linux -relocation-model=pic -filetype=obj | llvm-readobj -r --symbols - | FileCheck %s --check-prefix=pic-obj @local_symbol = internal thread_local global i32 0 @extern_symbol = external thread_local global i32 diff --git a/test/CodeGen/Thumb2/tpsoft.ll b/test/CodeGen/Thumb2/tpsoft.ll index 7e268c718ea..443cbdb9597 100644 --- a/test/CodeGen/Thumb2/tpsoft.ll +++ b/test/CodeGen/Thumb2/tpsoft.ll @@ -3,9 +3,9 @@ ; RUN: llc %s -mtriple=thumbebv7-linux-gnueabi -o - | \ ; RUN: FileCheck -check-prefix=ELFASM %s ; RUN: llc %s -mtriple=thumbv7-linux-gnueabi -filetype=obj -o - | \ -; RUN: llvm-readobj -S --sd | FileCheck -check-prefix=ELFOBJ -check-prefix=ELFOBJ-LE %s +; RUN: llvm-readobj -S --sd - | FileCheck -check-prefix=ELFOBJ -check-prefix=ELFOBJ-LE %s ; RUN: llc %s -mtriple=thumbebv7-linux-gnueabi -filetype=obj -o - | \ -; RUN: llvm-readobj -S --sd | FileCheck -check-prefix=ELFOBJ -check-prefix=ELFOBJ-BE %s +; RUN: llvm-readobj -S --sd - | FileCheck -check-prefix=ELFOBJ -check-prefix=ELFOBJ-BE %s ;; Make sure that bl __aeabi_read_tp is materialized and fixed up correctly ;; in the obj case. diff --git a/test/CodeGen/X86/file-directive.ll b/test/CodeGen/X86/file-directive.ll index 4650432f50d..35a07b0b4f4 100644 --- a/test/CodeGen/X86/file-directive.ll +++ b/test/CodeGen/X86/file-directive.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-linux-gnu -filetype=asm < %s | FileCheck %s --check-prefix=DIRECTIVE -; RUN: llc -mtriple=x86_64-linux-gnu -filetype=obj < %s | llvm-readobj --symbols | FileCheck %s --check-prefix=STT-FILE +; RUN: llc -mtriple=x86_64-linux-gnu -filetype=obj < %s | llvm-readobj --symbols - | FileCheck %s --check-prefix=STT-FILE ; DIRECTIVE: .file "foobar" ; STT-FILE: Name: foobar diff --git a/test/CodeGen/X86/push-cfi-obj.ll b/test/CodeGen/X86/push-cfi-obj.ll index 4b608ef94d8..4611a2c6b8a 100644 --- a/test/CodeGen/X86/push-cfi-obj.ll +++ b/test/CodeGen/X86/push-cfi-obj.ll @@ -1,5 +1,5 @@ -; RUN: llc < %s -mtriple=i686-pc-linux -filetype=obj | llvm-readobj -S --sr --sd | FileCheck %s -check-prefix=LINUX -; RUN: llc < %s -mtriple=i686-darwin-macosx10.7 -filetype=obj | llvm-readobj --sections | FileCheck -check-prefix=DARWIN %s +; RUN: llc < %s -mtriple=i686-pc-linux -filetype=obj | llvm-readobj -S --sr --sd - | FileCheck %s -check-prefix=LINUX +; RUN: llc < %s -mtriple=i686-darwin-macosx10.7 -filetype=obj | llvm-readobj --sections - | FileCheck -check-prefix=DARWIN %s ; On darwin, check that we manage to generate the compact unwind section ; DARWIN: Name: __compact_unwind diff --git a/test/DebugInfo/COFF/asm.ll b/test/DebugInfo/COFF/asm.ll index c259a53f68a..d873df26bf7 100644 --- a/test/DebugInfo/COFF/asm.ll +++ b/test/DebugInfo/COFF/asm.ll @@ -1,7 +1,7 @@ ; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 -O0 < %s | FileCheck --check-prefix=X86 %s -; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 -o - -O0 < %s | llvm-mc -triple=i686-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview | FileCheck --check-prefix=OBJ32 %s +; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 -o - -O0 < %s | llvm-mc -triple=i686-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview - | FileCheck --check-prefix=OBJ32 %s ; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32 -O0 < %s | FileCheck --check-prefix=X64 %s -; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32 -o - -O0 < %s | llvm-mc -triple=x86_64-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview | FileCheck --check-prefix=OBJ64 %s +; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32 -o - -O0 < %s | llvm-mc -triple=x86_64-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview - | FileCheck --check-prefix=OBJ64 %s ; This LL file was generated by running clang on the following code: ; D:\asm.c: diff --git a/test/DebugInfo/COFF/cpp-mangling.ll b/test/DebugInfo/COFF/cpp-mangling.ll index c48dae30ad2..d94de78514e 100644 --- a/test/DebugInfo/COFF/cpp-mangling.ll +++ b/test/DebugInfo/COFF/cpp-mangling.ll @@ -1,5 +1,5 @@ ; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 -o - -O0 -filetype=obj < %s \ -; RUN: | llvm-readobj --codeview | FileCheck %s +; RUN: | llvm-readobj --codeview - | FileCheck %s ; C++ source to regenerate: ; namespace foo { diff --git a/test/DebugInfo/COFF/dlang.ll b/test/DebugInfo/COFF/dlang.ll index 9c8ce17b4a3..c73089b5469 100644 --- a/test/DebugInfo/COFF/dlang.ll +++ b/test/DebugInfo/COFF/dlang.ll @@ -1,5 +1,5 @@ ; RUN: llc < %s | FileCheck %s --check-prefix=ASM -; RUN: llc -filetype=obj < %s | llvm-readobj --codeview | FileCheck %s --check-prefix=OBJ +; RUN: llc -filetype=obj < %s | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ ; ASM: .short 4412 # Record kind: S_COMPILE3 ; ASM-NEXT: .long 68 # Flags and language diff --git a/test/DebugInfo/COFF/fpo-csrs.ll b/test/DebugInfo/COFF/fpo-csrs.ll index 926adab350b..c5b1dc996f3 100644 --- a/test/DebugInfo/COFF/fpo-csrs.ll +++ b/test/DebugInfo/COFF/fpo-csrs.ll @@ -1,5 +1,5 @@ ; RUN: llc < %s | FileCheck %s --check-prefix=ASM -; RUN: llc -filetype=obj < %s | llvm-readobj --codeview | FileCheck %s --check-prefix=OBJ +; RUN: llc -filetype=obj < %s | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ ; C source: ; int getval(void); diff --git a/test/DebugInfo/COFF/fpo-realign-vframe.ll b/test/DebugInfo/COFF/fpo-realign-vframe.ll index 87e80a69edb..29e0e6adab3 100644 --- a/test/DebugInfo/COFF/fpo-realign-vframe.ll +++ b/test/DebugInfo/COFF/fpo-realign-vframe.ll @@ -1,5 +1,5 @@ ; RUN: llc < %s | FileCheck %s --check-prefix=ASM -; RUN: llc -filetype=obj < %s | llvm-readobj --codeview | FileCheck %s --check-prefix=OBJ +; RUN: llc -filetype=obj < %s | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ ; PR38857 diff --git a/test/DebugInfo/COFF/fpo-shrink-wrap.ll b/test/DebugInfo/COFF/fpo-shrink-wrap.ll index 23a1f56fdf4..719d69d16a6 100644 --- a/test/DebugInfo/COFF/fpo-shrink-wrap.ll +++ b/test/DebugInfo/COFF/fpo-shrink-wrap.ll @@ -1,5 +1,5 @@ ; RUN: llc -enable-shrink-wrap=true < %s | FileCheck %s --check-prefix=ASM -; RUN: llc -enable-shrink-wrap=true -filetype=obj < %s | llvm-readobj --codeview | FileCheck %s --check-prefix=OBJ +; RUN: llc -enable-shrink-wrap=true -filetype=obj < %s | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ ; C source: ; int doSomething(int*); diff --git a/test/DebugInfo/COFF/inlining-files.ll b/test/DebugInfo/COFF/inlining-files.ll index ce92d20e093..6b50be90ea2 100644 --- a/test/DebugInfo/COFF/inlining-files.ll +++ b/test/DebugInfo/COFF/inlining-files.ll @@ -1,4 +1,4 @@ -; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 < %s -filetype=obj | llvm-readobj --codeview | FileCheck %s --check-prefix=OBJ +; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 < %s -filetype=obj | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ ; This LL file was generated by running 'clang -O1 -g -gcodeview' on the ; volatile int x; diff --git a/test/DebugInfo/COFF/inlining-header.ll b/test/DebugInfo/COFF/inlining-header.ll index de8ea595b7b..3eca5a032f5 100644 --- a/test/DebugInfo/COFF/inlining-header.ll +++ b/test/DebugInfo/COFF/inlining-header.ll @@ -1,5 +1,5 @@ ; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 < %s | FileCheck %s --check-prefix=ASM -; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 < %s -filetype=obj | llvm-readobj --codeview | FileCheck %s --check-prefix=OBJ +; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 < %s -filetype=obj | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ ; This C++ source should run and you should be able to step through the volatile ; modifications to x in windbg. diff --git a/test/DebugInfo/COFF/inlining-levels.ll b/test/DebugInfo/COFF/inlining-levels.ll index c1613db8740..72190d4b2e4 100644 --- a/test/DebugInfo/COFF/inlining-levels.ll +++ b/test/DebugInfo/COFF/inlining-levels.ll @@ -1,4 +1,4 @@ -; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 < %s -filetype=obj | llvm-readobj --codeview | FileCheck %s --check-prefix=OBJ +; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 < %s -filetype=obj | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ ; This LL file was generated by running 'clang -O1 -g -gcodeview' on the ; following code: diff --git a/test/DebugInfo/COFF/inlining-padding.ll b/test/DebugInfo/COFF/inlining-padding.ll index 4437cbef95d..b29e97f235a 100644 --- a/test/DebugInfo/COFF/inlining-padding.ll +++ b/test/DebugInfo/COFF/inlining-padding.ll @@ -1,5 +1,5 @@ -; RUN: llc < %s -filetype=obj -o - | llvm-readobj --codeview --codeview-subsection-bytes | FileCheck %s -; RUN: llc < %s -o - | llvm-mc -filetype=obj --triple=x86_64-windows | llvm-readobj --codeview --codeview-subsection-bytes | FileCheck %s +; RUN: llc < %s -filetype=obj -o - | llvm-readobj --codeview --codeview-subsection-bytes - | FileCheck %s +; RUN: llc < %s -o - | llvm-mc -filetype=obj --triple=x86_64-windows | llvm-readobj --codeview --codeview-subsection-bytes - | FileCheck %s ; Check how we pad out the LF_FUNC_ID records. The 00F3F2F1 bytes in LeafData are ; what's interesting here. diff --git a/test/DebugInfo/COFF/inlining.ll b/test/DebugInfo/COFF/inlining.ll index c1b6e69f2b1..a3c0da76166 100644 --- a/test/DebugInfo/COFF/inlining.ll +++ b/test/DebugInfo/COFF/inlining.ll @@ -1,5 +1,5 @@ ; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 < %s | FileCheck %s --check-prefix=ASM -; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 < %s -filetype=obj | llvm-readobj --codeview | FileCheck %s --check-prefix=OBJ +; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 < %s -filetype=obj | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ ; This LL file was generated by running 'clang -O1 -g -gcodeview' on the ; following code: diff --git a/test/DebugInfo/COFF/lines-difile.ll b/test/DebugInfo/COFF/lines-difile.ll index 56be6b3d08d..74795f164c1 100644 --- a/test/DebugInfo/COFF/lines-difile.ll +++ b/test/DebugInfo/COFF/lines-difile.ll @@ -1,5 +1,5 @@ ; RUN: llc < %s | FileCheck %s --check-prefix=ASM -; RUN: llc < %s -filetype=obj | llvm-readobj --codeview | FileCheck %s --check-prefix=OBJ +; RUN: llc < %s -filetype=obj | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ ; Test what happens when we have two DIFile entries with differing slashes. ; Make sure we only emit one file checksum entry. diff --git a/test/DebugInfo/COFF/long-name.ll b/test/DebugInfo/COFF/long-name.ll index 08be48be821..073bd7909cb 100644 --- a/test/DebugInfo/COFF/long-name.ll +++ b/test/DebugInfo/COFF/long-name.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -filetype=obj | llvm-readobj --codeview | FileCheck %s +; RUN: llc < %s -filetype=obj | llvm-readobj --codeview - | FileCheck %s ; CHECK: {{.*}}Proc{{.*}}Sym { ; CHECK: Kind: S_GPROC32_ID (0x1147) diff --git a/test/DebugInfo/COFF/long-type-name.ll b/test/DebugInfo/COFF/long-type-name.ll index 1488e0891fc..8d89bd92324 100644 --- a/test/DebugInfo/COFF/long-type-name.ll +++ b/test/DebugInfo/COFF/long-type-name.ll @@ -1,5 +1,5 @@ -; RUN: llc %s -o - -filetype=obj | llvm-readobj --codeview | FileCheck %s -; RUN: llc %s -o - | llvm-mc -filetype=obj --triple=x86_64-windows | llvm-readobj --codeview | FileCheck %s +; RUN: llc %s -o - -filetype=obj | llvm-readobj --codeview - | FileCheck %s +; RUN: llc %s -o - | llvm-mc -filetype=obj --triple=x86_64-windows | llvm-readobj --codeview - | FileCheck %s ; CHECK: Struct (0x1000) { ; CHECK: TypeLeafKind: LF_STRUCTURE (0x1505) diff --git a/test/DebugInfo/COFF/multifile.ll b/test/DebugInfo/COFF/multifile.ll index d40f8b78857..5123b1dece9 100644 --- a/test/DebugInfo/COFF/multifile.ll +++ b/test/DebugInfo/COFF/multifile.ll @@ -1,7 +1,7 @@ ; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 -O0 < %s | FileCheck --check-prefix=X86 %s -; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 -o - -O0 < %s | llvm-mc -triple=i686-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols | FileCheck --check-prefix=OBJ32 %s +; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 -o - -O0 < %s | llvm-mc -triple=i686-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols - | FileCheck --check-prefix=OBJ32 %s ; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32 -O0 < %s | FileCheck --check-prefix=X64 %s -; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32 -o - -O0 < %s | llvm-mc -triple=x86_64-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols | FileCheck --check-prefix=OBJ64 %s +; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32 -o - -O0 < %s | llvm-mc -triple=x86_64-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols - | FileCheck --check-prefix=OBJ64 %s ; This LL file was generated by running clang on the following code: ; D:\input.c: diff --git a/test/DebugInfo/COFF/multifunction.ll b/test/DebugInfo/COFF/multifunction.ll index b890e6b0b52..9f99ba05047 100644 --- a/test/DebugInfo/COFF/multifunction.ll +++ b/test/DebugInfo/COFF/multifunction.ll @@ -1,7 +1,7 @@ ; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 -O0 < %s | FileCheck --check-prefix=X86 %s -; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 -o - -O0 < %s | llvm-mc -triple=i686-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols | FileCheck --check-prefix=OBJ32 %s +; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 -o - -O0 < %s | llvm-mc -triple=i686-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols - | FileCheck --check-prefix=OBJ32 %s ; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32 -O0 < %s | FileCheck --check-prefix=X64 %s -; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32 -o - -O0 < %s | llvm-mc -triple=x86_64-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols | FileCheck --check-prefix=OBJ64 %s +; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32 -o - -O0 < %s | llvm-mc -triple=x86_64-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols - | FileCheck --check-prefix=OBJ64 %s ; This LL file was generated by running clang on the following code: ; D:\source.c: diff --git a/test/DebugInfo/COFF/pieces.ll b/test/DebugInfo/COFF/pieces.ll index 4e11dcabb4d..330c70453b5 100644 --- a/test/DebugInfo/COFF/pieces.ll +++ b/test/DebugInfo/COFF/pieces.ll @@ -1,5 +1,5 @@ ; RUN: llc < %s | FileCheck %s --check-prefix=ASM -; RUN: llc < %s -filetype=obj | llvm-readobj --codeview | FileCheck %s --check-prefix=OBJ +; RUN: llc < %s -filetype=obj | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ ; Compile with -O1 as C diff --git a/test/DebugInfo/COFF/simple.ll b/test/DebugInfo/COFF/simple.ll index 6f8afb5bf14..082640182dc 100644 --- a/test/DebugInfo/COFF/simple.ll +++ b/test/DebugInfo/COFF/simple.ll @@ -1,15 +1,15 @@ ; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 -O0 < %s | FileCheck --check-prefix=X86 %s ; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32-itanium -O0 < %s | FileCheck --check-prefix=X86 %s ; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32-gnu -O0 < %s | FileCheck --check-prefix=X86 %s -; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 -o - -O0 < %s | llvm-mc -triple=i686-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols | FileCheck --check-prefix=OBJ32 %s -; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32-itanium -o - -O0 < %s | llvm-mc -triple=i686-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols | FileCheck --check-prefix=OBJ32 %s -; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32-gnu -o - -O0 < %s | llvm-mc -triple=i686-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols | FileCheck --check-prefix=OBJ32 %s +; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 -o - -O0 < %s | llvm-mc -triple=i686-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols - | FileCheck --check-prefix=OBJ32 %s +; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32-itanium -o - -O0 < %s | llvm-mc -triple=i686-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols - | FileCheck --check-prefix=OBJ32 %s +; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32-gnu -o - -O0 < %s | llvm-mc -triple=i686-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols - | FileCheck --check-prefix=OBJ32 %s ; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32 -O0 < %s | FileCheck --check-prefix=X64 %s ; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32-itanium -O0 < %s | FileCheck --check-prefix=X64 %s ; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32-gnu -O0 < %s | FileCheck --check-prefix=X64 %s -; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32 -o - -O0 < %s | llvm-mc -triple=x86_64-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols | FileCheck --check-prefix=OBJ64 %s -; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32-itanium -o - -O0 < %s | llvm-mc -triple=x86_64-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols | FileCheck --check-prefix=OBJ64 %s -; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32-gnu -o - -O0 < %s | llvm-mc -triple=x86_64-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols | FileCheck --check-prefix=OBJ64 %s +; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32 -o - -O0 < %s | llvm-mc -triple=x86_64-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols - | FileCheck --check-prefix=OBJ64 %s +; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32-itanium -o - -O0 < %s | llvm-mc -triple=x86_64-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols - | FileCheck --check-prefix=OBJ64 %s +; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32-gnu -o - -O0 < %s | llvm-mc -triple=x86_64-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview --section-symbols - | FileCheck --check-prefix=OBJ64 %s ; This LL file was generated by running clang on the following code: ; D:\test.c: diff --git a/test/DebugInfo/COFF/swift.ll b/test/DebugInfo/COFF/swift.ll index 4d1ffee2c15..81922cc4a37 100644 --- a/test/DebugInfo/COFF/swift.ll +++ b/test/DebugInfo/COFF/swift.ll @@ -1,5 +1,5 @@ ; RUN: llc < %s | FileCheck %s --check-prefix=ASM -; RUN: llc -filetype=obj < %s | llvm-readobj --codeview | FileCheck %s --check-prefix=OBJ +; RUN: llc -filetype=obj < %s | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ ; ASM: .short 4412 # Record kind: S_COMPILE3 ; ASM-NEXT: .long 83 # Flags and language diff --git a/test/DebugInfo/COFF/types-array-unsized.ll b/test/DebugInfo/COFF/types-array-unsized.ll index 020ae15bf00..8bfb0c08ee3 100644 --- a/test/DebugInfo/COFF/types-array-unsized.ll +++ b/test/DebugInfo/COFF/types-array-unsized.ll @@ -1,5 +1,5 @@ -; RUN: llc -filetype=obj < %s | llvm-readobj --codeview | FileCheck %s -; RUN: llc < %s | llvm-mc -filetype=obj --triple=x86_64-windows | llvm-readobj --codeview | FileCheck %s +; RUN: llc -filetype=obj < %s | llvm-readobj --codeview - | FileCheck %s +; RUN: llc < %s | llvm-mc -filetype=obj --triple=x86_64-windows | llvm-readobj --codeview - | FileCheck %s ; We should emit two array types: one used to describe the static data member, ; and the other used by the S_GDATA32 for the definition. diff --git a/test/DebugInfo/COFF/vframe-csr.ll b/test/DebugInfo/COFF/vframe-csr.ll index 0d39155db40..07092df568e 100644 --- a/test/DebugInfo/COFF/vframe-csr.ll +++ b/test/DebugInfo/COFF/vframe-csr.ll @@ -1,5 +1,5 @@ ; RUN: llc < %s | FileCheck %s --check-prefix=ASM -; RUN: llc -filetype=obj < %s | llvm-readobj --codeview | FileCheck %s --check-prefix=OBJ +; RUN: llc -filetype=obj < %s | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ ; PR38857 diff --git a/test/DebugInfo/COFF/vframe-fpo.ll b/test/DebugInfo/COFF/vframe-fpo.ll index 20b3a437d27..6b77ac579cb 100644 --- a/test/DebugInfo/COFF/vframe-fpo.ll +++ b/test/DebugInfo/COFF/vframe-fpo.ll @@ -1,5 +1,5 @@ ; RUN: llc < %s | FileCheck %s --check-prefix=ASM -; RUN: llc < %s -filetype=obj | llvm-readobj --codeview | FileCheck %s --check-prefix=CODEVIEW +; RUN: llc < %s -filetype=obj | llvm-readobj --codeview - | FileCheck %s --check-prefix=CODEVIEW ; This test checks that for 32-bit x86 we use VFRAME and ; S_DEFRANGE_FRAMEPOINTER_REL with the right offsets. The test has two function diff --git a/test/DebugInfo/Mips/eh_frame.ll b/test/DebugInfo/Mips/eh_frame.ll index a71ae61f3e6..9dcfa9e413b 100644 --- a/test/DebugInfo/Mips/eh_frame.ll +++ b/test/DebugInfo/Mips/eh_frame.ll @@ -1,9 +1,9 @@ ; RUN: llc -mtriple mips-unknown-linux-gnu -mattr=+micromips \ ; RUN: -relocation-model=static -O3 -filetype=obj -o - %s | \ -; RUN: llvm-readelf -r | FileCheck %s --check-prefixes=STATIC +; RUN: llvm-readelf -r - | FileCheck %s --check-prefixes=STATIC ; RUN: llc -mtriple mips-unknown-linux-gnu -mattr=+micromips \ ; RUN: -relocation-model=pic -O3 -filetype=obj -o - %s | \ -; RUN: llvm-readelf -r | FileCheck %s --check-prefixes=PIC +; RUN: llvm-readelf -r - | FileCheck %s --check-prefixes=PIC ; RUN: llc -mtriple mips-unknown-linux-gnu -mattr=+micromips \ ; RUN: -relocation-model=static -O3 -filetype=obj -o - %s | \ ; RUN: llvm-objdump -s -j .gcc_except_table - | FileCheck %s --check-prefix=EXCEPT-TABLE-STATIC diff --git a/test/DebugInfo/RISCV/relax-debug-line.ll b/test/DebugInfo/RISCV/relax-debug-line.ll index 814b253fadf..fa46d5d31ec 100644 --- a/test/DebugInfo/RISCV/relax-debug-line.ll +++ b/test/DebugInfo/RISCV/relax-debug-line.ll @@ -1,5 +1,5 @@ ; RUN: llc -filetype=obj -mtriple=riscv32 -mattr=+relax %s -o - \ -; RUN: | llvm-readobj -r | FileCheck -check-prefix=RELAX %s +; RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELAX %s ; ; RELAX: .rela.debug_line { ; RELAX: R_RISCV_ADD16 diff --git a/test/DebugInfo/X86/xray-split-dwarf-interaction.ll b/test/DebugInfo/X86/xray-split-dwarf-interaction.ll index 14a44143a41..c9202d8eeb7 100644 --- a/test/DebugInfo/X86/xray-split-dwarf-interaction.ll +++ b/test/DebugInfo/X86/xray-split-dwarf-interaction.ll @@ -7,7 +7,7 @@ ; RUN: -function-sections -data-sections \ ; RUN: -relocation-model=pic -filetype=obj \ ; RUN: -generate-type-units -o - %s | \ -; RUN: llvm-readelf --sections | \ +; RUN: llvm-readelf --sections - | \ ; RUN: FileCheck %s --check-prefix=CHECK-ELF ; Created from `clang++ -fxray-instrument -gsplit-dwarf -fdebug-types-section ; -ffunction-sections -fdata-sections -emit-llvm -S input.cc`: diff --git a/test/MC/AArch64/arm64-be-datalayout.s b/test/MC/AArch64/arm64-be-datalayout.s index 67dd6fb1e57..f608046e14e 100644 --- a/test/MC/AArch64/arm64-be-datalayout.s +++ b/test/MC/AArch64/arm64-be-datalayout.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple aarch64_be %s | llvm-readobj --section-data -S | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple aarch64_be %s | llvm-readobj --section-data -S - | FileCheck %s // CHECK: 0000: 00123456 789ABCDE foo: .xword 0x123456789abcde diff --git a/test/MC/AArch64/arm64-elf-reloc-condbr.s b/test/MC/AArch64/arm64-elf-reloc-condbr.s index 3552ec28951..80c94f6df42 100644 --- a/test/MC/AArch64/arm64-elf-reloc-condbr.s +++ b/test/MC/AArch64/arm64-elf-reloc-condbr.s @@ -1,8 +1,8 @@ // RUN: llvm-mc -triple=arm64-none-linux-gnu -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ %s +// RUN: llvm-readobj -r - | FileCheck -check-prefix=OBJ %s // RUN: llvm-mc -target-abi=ilp32 -triple=arm64-none-linux-gnu -filetype=obj \ // RUN: %s -o - | \ -// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ-ILP32 %s +// RUN: llvm-readobj -r - | FileCheck -check-prefix=OBJ-ILP32 %s b.eq somewhere diff --git a/test/MC/AArch64/arm64-leaf-compact-unwind.s b/test/MC/AArch64/arm64-leaf-compact-unwind.s index 258b259a3df..37d6c456b32 100644 --- a/test/MC/AArch64/arm64-leaf-compact-unwind.s +++ b/test/MC/AArch64/arm64-leaf-compact-unwind.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -triple=arm64-apple-ios -filetype=obj < %s | \ -// RUN: llvm-readobj --expand-relocs -S --section-relocations --section-data | \ +// RUN: llvm-readobj --expand-relocs -S --section-relocations --section-data - | \ // RUN: FileCheck %s // // rdar://13070556 diff --git a/test/MC/AArch64/arm64-small-data-fixups.s b/test/MC/AArch64/arm64-small-data-fixups.s index 6debe0b8fb0..43e0d5b7111 100644 --- a/test/MC/AArch64/arm64-small-data-fixups.s +++ b/test/MC/AArch64/arm64-small-data-fixups.s @@ -1,4 +1,4 @@ -; RUN: llvm-mc -triple arm64-apple-darwin -filetype=obj -o - %s | llvm-readobj -r | FileCheck %s +; RUN: llvm-mc -triple arm64-apple-darwin -filetype=obj -o - %s | llvm-readobj -r - | FileCheck %s foo: .long 0 diff --git a/test/MC/AArch64/arm64-tls-relocs.s b/test/MC/AArch64/arm64-tls-relocs.s index 993eb0ebfe9..b8388459260 100644 --- a/test/MC/AArch64/arm64-tls-relocs.s +++ b/test/MC/AArch64/arm64-tls-relocs.s @@ -1,6 +1,6 @@ // RUN: llvm-mc -triple=arm64-none-linux-gnu -show-encoding < %s | FileCheck %s // RUN: llvm-mc -triple=arm64-none-linux-gnu -filetype=obj < %s -o - | \ -// RUN: llvm-readobj -r --symbols | FileCheck --check-prefix=CHECK-ELF %s +// RUN: llvm-readobj -r --symbols - | FileCheck --check-prefix=CHECK-ELF %s //////////////////////////////////////////////////////////////////////////////// // TLS initial-exec forms diff --git a/test/MC/AArch64/coff-align.s b/test/MC/AArch64/coff-align.s index b76bd73a629..6ef69c50c49 100644 --- a/test/MC/AArch64/coff-align.s +++ b/test/MC/AArch64/coff-align.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple aarch64-windows-gnu %s | llvm-readobj -S --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple aarch64-windows-gnu %s | llvm-readobj -S --sd - | FileCheck %s .text .align 5 f0: diff --git a/test/MC/AArch64/coff-function-type-info.ll b/test/MC/AArch64/coff-function-type-info.ll index 2c2c46b0ca3..21446c50ab2 100644 --- a/test/MC/AArch64/coff-function-type-info.ll +++ b/test/MC/AArch64/coff-function-type-info.ll @@ -2,7 +2,7 @@ ; RUN: | FileCheck %s -check-prefix CHECK-ASM ; RUN: llc -mtriple arm64-windows -filetype obj -o - %s \ -; RUN: | llvm-readobj --symbols | FileCheck %s -check-prefix CHECK-OBJECT +; RUN: | llvm-readobj --symbols - | FileCheck %s -check-prefix CHECK-OBJECT define arm_aapcs_vfpcc void @external() { entry: diff --git a/test/MC/AArch64/cold.s b/test/MC/AArch64/cold.s index 812d7725454..16cb90b4958 100644 --- a/test/MC/AArch64/cold.s +++ b/test/MC/AArch64/cold.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -triple aarch64-apple-ios -o - -filetype=obj %s | \ -// RUN: llvm-readobj --symbols | FileCheck %s -check-prefix=READOBJ +// RUN: llvm-readobj --symbols - | FileCheck %s -check-prefix=READOBJ // READOBJ-LABEL: Name: cold_func // READOBJ-NEXT: Type: Section diff --git a/test/MC/AArch64/elf-extern.s b/test/MC/AArch64/elf-extern.s index 5e3b314d570..ca77270a3d0 100644 --- a/test/MC/AArch64/elf-extern.s +++ b/test/MC/AArch64/elf-extern.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc < %s -triple=aarch64-none-linux-gnu -filetype=obj | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc < %s -triple=aarch64-none-linux-gnu -filetype=obj | llvm-readobj -r - | FileCheck %s // External symbols are a different concept to global variables but should still // get relocations and so on when used. diff --git a/test/MC/AArch64/elf-globaladdress.ll b/test/MC/AArch64/elf-globaladdress.ll index d8a0b5b8d5e..37e473b0092 100644 --- a/test/MC/AArch64/elf-globaladdress.ll +++ b/test/MC/AArch64/elf-globaladdress.ll @@ -1,10 +1,10 @@ ;; RUN: llc -mtriple=aarch64-none-linux-gnu -filetype=obj %s -o - | \ -;; RUN: llvm-readobj -h -r | FileCheck -check-prefix=OBJ %s +;; RUN: llvm-readobj -h -r - | FileCheck -check-prefix=OBJ %s ; Also take it on a round-trip through llvm-mc to stretch assembly-parsing's legs: ;; RUN: llc -mtriple=aarch64-none-linux-gnu %s -o - | \ ;; RUN: llvm-mc -triple=arm64-none-linux-gnu -filetype=obj -o - | \ -;; RUN: llvm-readobj -h -r | FileCheck -check-prefix=OBJ %s +;; RUN: llvm-readobj -h -r - | FileCheck -check-prefix=OBJ %s @var8 = global i8 0 @var16 = global i16 0 diff --git a/test/MC/AArch64/elf-reloc-ldrlit.s b/test/MC/AArch64/elf-reloc-ldrlit.s index e55902cdf94..6a23aae4103 100644 --- a/test/MC/AArch64/elf-reloc-ldrlit.s +++ b/test/MC/AArch64/elf-reloc-ldrlit.s @@ -1,8 +1,8 @@ // RUN: llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ %s +// RUN: llvm-readobj -r - | FileCheck -check-prefix=OBJ %s // RUN: llvm-mc -target-abi=ilp32 -triple=aarch64-none-linux-gnu \ // RUN: -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ-ILP32 %s +// RUN: llvm-readobj -r - | FileCheck -check-prefix=OBJ-ILP32 %s ldr x0, some_label ldr w3, some_label diff --git a/test/MC/AArch64/elf-reloc-ldstunsimm.s b/test/MC/AArch64/elf-reloc-ldstunsimm.s index e68937ceddb..f3fe4e88fd0 100644 --- a/test/MC/AArch64/elf-reloc-ldstunsimm.s +++ b/test/MC/AArch64/elf-reloc-ldstunsimm.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -triple=aarch64-none-linux-gnu -mattr=+fp-armv8 -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ %s +// RUN: llvm-readobj -r - | FileCheck -check-prefix=OBJ %s ldrb w0, [sp, #:lo12:some_label] ldrh w0, [sp, #:lo12:some_label] diff --git a/test/MC/AArch64/elf-reloc-movw.s b/test/MC/AArch64/elf-reloc-movw.s index e9755f483e5..7123aa54432 100644 --- a/test/MC/AArch64/elf-reloc-movw.s +++ b/test/MC/AArch64/elf-reloc-movw.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ %s +// RUN: llvm-readobj -r - | FileCheck -check-prefix=OBJ %s movz x0, #:abs_g0:some_label movk x0, #:abs_g0_nc:some_label diff --git a/test/MC/AArch64/elf-reloc-pcreladdressing.s b/test/MC/AArch64/elf-reloc-pcreladdressing.s index 3931d543aad..6064e7fc0e2 100644 --- a/test/MC/AArch64/elf-reloc-pcreladdressing.s +++ b/test/MC/AArch64/elf-reloc-pcreladdressing.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ %s +// RUN: llvm-readobj -r - | FileCheck -check-prefix=OBJ %s adr x2, some_label adrp x5, some_label diff --git a/test/MC/AArch64/elf-reloc-plt32.s b/test/MC/AArch64/elf-reloc-plt32.s index 5e5e1b33e6c..5bde72d5f44 100644 --- a/test/MC/AArch64/elf-reloc-plt32.s +++ b/test/MC/AArch64/elf-reloc-plt32.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -triple=aarch64 -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck %s +// RUN: llvm-readobj -r - | FileCheck %s .section .data this: diff --git a/test/MC/AArch64/elf-reloc-tstb.s b/test/MC/AArch64/elf-reloc-tstb.s index 1070c4d7f3e..5d8a91ec470 100644 --- a/test/MC/AArch64/elf-reloc-tstb.s +++ b/test/MC/AArch64/elf-reloc-tstb.s @@ -1,8 +1,8 @@ // RUN: llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ %s +// RUN: llvm-readobj -r - | FileCheck -check-prefix=OBJ %s // RUN: llvm-mc -target-abi=ilp32 -triple=aarch64-none-linux-gnu \ // RUN: -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ-ILP32 %s +// RUN: llvm-readobj -r - | FileCheck -check-prefix=OBJ-ILP32 %s tbz x6, #45, somewhere tbnz w3, #15, somewhere diff --git a/test/MC/AArch64/elf-reloc-uncondbrimm.s b/test/MC/AArch64/elf-reloc-uncondbrimm.s index 373779d03d1..ac788815b78 100644 --- a/test/MC/AArch64/elf-reloc-uncondbrimm.s +++ b/test/MC/AArch64/elf-reloc-uncondbrimm.s @@ -1,8 +1,8 @@ // RUN: llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ %s +// RUN: llvm-readobj -r - | FileCheck -check-prefix=OBJ %s // RUN: llvm-mc -target-abi=ilp32 -triple=aarch64-none-linux-gnu \ // RUN: -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ-ILP32 %s +// RUN: llvm-readobj -r - | FileCheck -check-prefix=OBJ-ILP32 %s b somewhere bl somewhere diff --git a/test/MC/AArch64/elf_osabi_flags.s b/test/MC/AArch64/elf_osabi_flags.s index 42c56f043f2..0bc022ab5a8 100644 --- a/test/MC/AArch64/elf_osabi_flags.s +++ b/test/MC/AArch64/elf_osabi_flags.s @@ -1,6 +1,6 @@ -# RUN: llvm-mc -filetype=obj -triple aarch64 %s -o -| llvm-readobj -h | FileCheck %s -# RUN: llvm-mc -filetype=obj -triple aarch64-linux-gnu %s -o -| llvm-readobj -h | FileCheck %s +# RUN: llvm-mc -filetype=obj -triple aarch64 %s -o -| llvm-readobj -h - | FileCheck %s +# RUN: llvm-mc -filetype=obj -triple aarch64-linux-gnu %s -o -| llvm-readobj -h - | FileCheck %s # CHECK: OS/ABI: SystemV (0x0) -# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-freebsd %s -o -| llvm-readobj -h | FileCheck --check-prefix=AARCH64-FREEBSD-OSABI %s +# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-freebsd %s -o -| llvm-readobj -h - | FileCheck --check-prefix=AARCH64-FREEBSD-OSABI %s # AARCH64-FREEBSD-OSABI: OS/ABI: FreeBSD (0x9) diff --git a/test/MC/AArch64/jump-table.s b/test/MC/AArch64/jump-table.s index c4b879e6ef0..32dcad95652 100644 --- a/test/MC/AArch64/jump-table.s +++ b/test/MC/AArch64/jump-table.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc < %s -triple=aarch64-none-linux-gnu -filetype=obj | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc < %s -triple=aarch64-none-linux-gnu -filetype=obj | llvm-readobj -r - | FileCheck %s .file "" .text diff --git a/test/MC/AArch64/reloc-directive.s b/test/MC/AArch64/reloc-directive.s index ce0e00e1935..88cb48889d1 100644 --- a/test/MC/AArch64/reloc-directive.s +++ b/test/MC/AArch64/reloc-directive.s @@ -1,6 +1,6 @@ # RUN: llvm-mc -triple=aarch64-linux-musl %s | FileCheck --check-prefix=PRINT %s -# RUN: llvm-mc -filetype=obj -triple=aarch64-linux-musl %s | llvm-readobj -r | FileCheck %s +# RUN: llvm-mc -filetype=obj -triple=aarch64-linux-musl %s | llvm-readobj -r - | FileCheck %s # PRINT: .reloc 8, R_AARCH64_NONE, .data # PRINT: .reloc 4, R_AARCH64_NONE, foo+4 diff --git a/test/MC/AArch64/seh.s b/test/MC/AArch64/seh.s index d4acc4fddb9..eb6a94a3f73 100644 --- a/test/MC/AArch64/seh.s +++ b/test/MC/AArch64/seh.s @@ -1,6 +1,6 @@ // This test checks that the SEH directives emit the correct unwind data. -// RUN: llvm-mc -triple aarch64-pc-win32 -filetype=obj %s | llvm-readobj -S -r | FileCheck %s +// RUN: llvm-mc -triple aarch64-pc-win32 -filetype=obj %s | llvm-readobj -S -r - | FileCheck %s // CHECK: Sections [ // CHECK: Section { diff --git a/test/MC/AArch64/tls-relocs.s b/test/MC/AArch64/tls-relocs.s index 9f0d5e4a783..5194048c5b6 100644 --- a/test/MC/AArch64/tls-relocs.s +++ b/test/MC/AArch64/tls-relocs.s @@ -1,6 +1,6 @@ // RUN: llvm-mc -triple=aarch64-none-linux-gnu -show-encoding < %s | FileCheck %s // RUN: llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj < %s -o - | \ -// RUN: llvm-readobj -r --symbols | FileCheck --check-prefix=CHECK-ELF %s +// RUN: llvm-readobj -r --symbols - | FileCheck --check-prefix=CHECK-ELF %s // TLS local-dynamic forms movz x1, #:dtprel_g2:var diff --git a/test/MC/AMDGPU/elf-lds.s b/test/MC/AMDGPU/elf-lds.s index e03f8a29583..ec1c58e66b2 100644 --- a/test/MC/AMDGPU/elf-lds.s +++ b/test/MC/AMDGPU/elf-lds.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple amdgcn-- -mcpu gfx900 %s -o - | llvm-readobj -t -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple amdgcn-- -mcpu gfx900 %s -o - | llvm-readobj -t -r - | FileCheck %s .text .globl test_kernel diff --git a/test/MC/AMDGPU/hsa-exp.s b/test/MC/AMDGPU/hsa-exp.s index cb7c0be8b02..2324782497c 100644 --- a/test/MC/AMDGPU/hsa-exp.s +++ b/test/MC/AMDGPU/hsa-exp.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -triple amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 -show-encoding %s | FileCheck %s --check-prefix=ASM -// RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 -show-encoding %s | llvm-readobj --symbols -S --sd | FileCheck %s --check-prefix=ELF +// RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 -show-encoding %s | llvm-readobj --symbols -S --sd - | FileCheck %s --check-prefix=ELF // ELF: Section { // ELF: Name: .text diff --git a/test/MC/AMDGPU/hsa-gfx10.s b/test/MC/AMDGPU/hsa-gfx10.s index db868f300f0..707a8be4e80 100644 --- a/test/MC/AMDGPU/hsa-gfx10.s +++ b/test/MC/AMDGPU/hsa-gfx10.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -triple amdgcn--amdhsa -mcpu=gfx1010 -mattr=-WavefrontSize32,+WavefrontSize64,-code-object-v3 -show-encoding %s | FileCheck %s --check-prefix=ASM -// RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=gfx1010 -mattr=-WavefrontSize32,+WavefrontSize64,-code-object-v3 -show-encoding %s | llvm-readobj -symbols -s -sd | FileCheck %s --check-prefix=ELF +// RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=gfx1010 -mattr=-WavefrontSize32,+WavefrontSize64,-code-object-v3 -show-encoding %s | llvm-readobj -symbols -s -sd - | FileCheck %s --check-prefix=ELF // ELF: Section { // ELF: Name: .text diff --git a/test/MC/AMDGPU/hsa-text.s b/test/MC/AMDGPU/hsa-text.s index d4f67d03347..d917a46b078 100644 --- a/test/MC/AMDGPU/hsa-text.s +++ b/test/MC/AMDGPU/hsa-text.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -triple amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 -show-encoding %s | FileCheck %s --check-prefix=ASM -// RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 -show-encoding %s | llvm-readobj -S --sd | FileCheck %s --check-prefix=ELF +// RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 -show-encoding %s | llvm-readobj -S --sd - | FileCheck %s --check-prefix=ELF // For compatibility reasons we treat convert .text sections to .hsatext diff --git a/test/MC/AMDGPU/hsa.s b/test/MC/AMDGPU/hsa.s index 87c09648e51..b031abdd392 100644 --- a/test/MC/AMDGPU/hsa.s +++ b/test/MC/AMDGPU/hsa.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -triple amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 -show-encoding %s | FileCheck %s --check-prefix=ASM -// RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 -show-encoding %s | llvm-readobj --symbols -S --sd | FileCheck %s --check-prefix=ELF +// RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 -show-encoding %s | llvm-readobj --symbols -S --sd - | FileCheck %s --check-prefix=ELF // ELF: Section { // ELF: Name: .text diff --git a/test/MC/AMDGPU/hsa_code_object_isa_args.s b/test/MC/AMDGPU/hsa_code_object_isa_args.s index b84727cf1da..ff6cd022c93 100644 --- a/test/MC/AMDGPU/hsa_code_object_isa_args.s +++ b/test/MC/AMDGPU/hsa_code_object_isa_args.s @@ -1,9 +1,9 @@ // RUN: llvm-mc -triple amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 -show-encoding %s | FileCheck %s --check-prefix=ASM --check-prefix=ASM_700 // RUN: llvm-mc -triple amdgcn--amdhsa -mcpu=gfx803 -mattr=-code-object-v3 -show-encoding %s | FileCheck %s --check-prefix=ASM --check-prefix=ASM_803 // RUN: llvm-mc -triple amdgcn--amdhsa -mcpu=stoney -mattr=-code-object-v3 -show-encoding %s | FileCheck %s --check-prefix=ASM --check-prefix=ASM_810 -// RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 -show-encoding %s | llvm-readobj -S --sd | FileCheck %s --check-prefix=ELF --check-prefix=ELF_700 -// RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=gfx803 -mattr=-code-object-v3 -show-encoding %s | llvm-readobj -S --sd | FileCheck %s --check-prefix=ELF --check-prefix=ELF_803 -// RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=stoney -mattr=-code-object-v3 -show-encoding %s | llvm-readobj -S --sd | FileCheck %s --check-prefix=ELF --check-prefix=ELF_810 +// RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 -show-encoding %s | llvm-readobj -S --sd - | FileCheck %s --check-prefix=ELF --check-prefix=ELF_700 +// RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=gfx803 -mattr=-code-object-v3 -show-encoding %s | llvm-readobj -S --sd - | FileCheck %s --check-prefix=ELF --check-prefix=ELF_803 +// RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=stoney -mattr=-code-object-v3 -show-encoding %s | llvm-readobj -S --sd - | FileCheck %s --check-prefix=ELF --check-prefix=ELF_810 // ELF: SHT_NOTE // ELF: 0000: 04000000 08000000 01000000 414D4400 diff --git a/test/MC/AMDGPU/pal-msgpack.s b/test/MC/AMDGPU/pal-msgpack.s index a5599f3a494..886cc8b0538 100644 --- a/test/MC/AMDGPU/pal-msgpack.s +++ b/test/MC/AMDGPU/pal-msgpack.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -triple amdgcn--amdpal -mcpu=kaveri -show-encoding %s | FileCheck %s --check-prefix=ASM -// RUN: llvm-mc -filetype=obj -triple amdgcn--amdpal -mcpu=kaveri -show-encoding %s | llvm-readobj --symbols -S --sd | FileCheck %s --check-prefix=ELF +// RUN: llvm-mc -filetype=obj -triple amdgcn--amdpal -mcpu=kaveri -show-encoding %s | llvm-readobj --symbols -S --sd - | FileCheck %s --check-prefix=ELF .amdgpu_pal_metadata --- diff --git a/test/MC/AMDGPU/pal.s b/test/MC/AMDGPU/pal.s index 913738727af..9d758d30e6e 100644 --- a/test/MC/AMDGPU/pal.s +++ b/test/MC/AMDGPU/pal.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -triple amdgcn--amdpal -mcpu=kaveri -show-encoding %s | FileCheck %s --check-prefix=ASM -// RUN: llvm-mc -filetype=obj -triple amdgcn--amdpal -mcpu=kaveri -show-encoding %s | llvm-readobj --symbols -S --sd | FileCheck %s --check-prefix=ELF +// RUN: llvm-mc -filetype=obj -triple amdgcn--amdpal -mcpu=kaveri -show-encoding %s | llvm-readobj --symbols -S --sd - | FileCheck %s --check-prefix=ELF .amd_amdgpu_pal_metadata 0x12345678, 0xfedcba98, 0x2468ace0, 0xfdb97531 // ASM: .amd_amdgpu_pal_metadata 0x12345678,0xfedcba98,0x2468ace0,0xfdb97531 diff --git a/test/MC/AMDGPU/reloc.s b/test/MC/AMDGPU/reloc.s index e5d38578832..f5650d809fe 100644 --- a/test/MC/AMDGPU/reloc.s +++ b/test/MC/AMDGPU/reloc.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple amdgcn-- -mcpu=kaveri -show-encoding %s | llvm-readobj -relocations | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple amdgcn-- -mcpu=kaveri -show-encoding %s | llvm-readobj -relocations - | FileCheck %s // CHECK: Relocations [ // CHECK: .rel.text { diff --git a/test/MC/ARM/2010-11-30-reloc-movt.s b/test/MC/ARM/2010-11-30-reloc-movt.s index a83465edc02..d4aefdf35fc 100644 --- a/test/MC/ARM/2010-11-30-reloc-movt.s +++ b/test/MC/ARM/2010-11-30-reloc-movt.s @@ -1,5 +1,5 @@ // RUN: llvm-mc %s -triple=armv7-linux-gnueabi -filetype=obj -o - | \ -// RUN: llvm-readobj -S --sr --sd | FileCheck %s +// RUN: llvm-readobj -S --sr --sd - | FileCheck %s .syntax unified .eabi_attribute 6, 10 diff --git a/test/MC/ARM/arm-elf-symver.s b/test/MC/ARM/arm-elf-symver.s index 83313c103a1..9d7da0c1331 100644 --- a/test/MC/ARM/arm-elf-symver.s +++ b/test/MC/ARM/arm-elf-symver.s @@ -1,5 +1,5 @@ -@ RUN: llvm-mc -filetype=obj -triple arm-none-linux-gnueabi %s -o - | llvm-readobj -r --symbols | FileCheck %s -@ RUN: llvm-mc -filetype=obj -triple thumb-none-linux-gnueabi %s -o - | llvm-readobj -r --symbols | FileCheck %s +@ RUN: llvm-mc -filetype=obj -triple arm-none-linux-gnueabi %s -o - | llvm-readobj -r --symbols - | FileCheck %s +@ RUN: llvm-mc -filetype=obj -triple thumb-none-linux-gnueabi %s -o - | llvm-readobj -r --symbols - | FileCheck %s defined1: defined2: diff --git a/test/MC/ARM/arm-thumb-tail-call.ll b/test/MC/ARM/arm-thumb-tail-call.ll index c166719505d..4839d2b9741 100644 --- a/test/MC/ARM/arm-thumb-tail-call.ll +++ b/test/MC/ARM/arm-thumb-tail-call.ll @@ -1,6 +1,6 @@ ; RUN: llc -O0 < %s -mtriple armv7-linux-gnueabi -o - \ ; RUN: | llvm-mc -triple armv7-linux-gnueabi -filetype=obj -o - \ -; RUN: | llvm-readobj -r | FileCheck %s +; RUN: | llvm-readobj -r - | FileCheck %s target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" target triple = "armv7--linux-gnueabihf" diff --git a/test/MC/ARM/coff-file.s b/test/MC/ARM/coff-file.s index 9caf0d4bcac..51e75515b98 100644 --- a/test/MC/ARM/coff-file.s +++ b/test/MC/ARM/coff-file.s @@ -2,7 +2,7 @@ // RUN: | FileCheck %s // RUN: llvm-mc -triple thumbv7-windows -filetype obj %s -o - \ -// RUN: | llvm-readobj --symbols | FileCheck %s -check-prefix CHECK-SCN +// RUN: | llvm-readobj --symbols - | FileCheck %s -check-prefix CHECK-SCN .file "null-padded.asm" // CHECK: (nx 1) {{0x[0-9]+}} .file diff --git a/test/MC/ARM/coff-function-type-info.ll b/test/MC/ARM/coff-function-type-info.ll index f7a87e72037..07fb8bc0b3b 100644 --- a/test/MC/ARM/coff-function-type-info.ll +++ b/test/MC/ARM/coff-function-type-info.ll @@ -2,7 +2,7 @@ ; RUN: | FileCheck %s -check-prefix CHECK-ASM ; RUN: llc -mtriple thumbv7-windows-itanium -filetype obj -o - %s \ -; RUN: | llvm-readobj --symbols | FileCheck %s -check-prefix CHECK-OBJECT +; RUN: | llvm-readobj --symbols - | FileCheck %s -check-prefix CHECK-OBJECT define arm_aapcs_vfpcc void @external() { entry: diff --git a/test/MC/ARM/cxx-global-constructor.ll b/test/MC/ARM/cxx-global-constructor.ll index 02324338908..6f0f651505b 100644 --- a/test/MC/ARM/cxx-global-constructor.ll +++ b/test/MC/ARM/cxx-global-constructor.ll @@ -1,5 +1,5 @@ ; RUN: llc %s -mtriple=armv7-linux-gnueabi -relocation-model=pic \ -; RUN: -filetype=obj -o - | llvm-readobj -r | FileCheck %s +; RUN: -filetype=obj -o - | llvm-readobj -r - | FileCheck %s @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @f, i8* null }] diff --git a/test/MC/ARM/data-in-code.ll b/test/MC/ARM/data-in-code.ll index 4f368ab3727..dcd3947f7e0 100644 --- a/test/MC/ARM/data-in-code.ll +++ b/test/MC/ARM/data-in-code.ll @@ -1,10 +1,10 @@ ;; RUN: llc -verify-machineinstrs \ ;; RUN: -mtriple=armv7-linux-gnueabi -filetype=obj %s -o - | \ -;; RUN: llvm-readobj --symbols | FileCheck -check-prefix=ARM %s +;; RUN: llvm-readobj --symbols - | FileCheck -check-prefix=ARM %s ;; RUN: llc -verify-machineinstrs \ ;; RUN: -mtriple=thumbv7-linux-gnueabi -filetype=obj %s -o - | \ -;; RUN: llvm-readobj --symbols | FileCheck -check-prefix=TMB %s +;; RUN: llvm-readobj --symbols - | FileCheck -check-prefix=TMB %s ;; Ensure that if a jump table is generated that it has Mapping Symbols ;; marking the data-in-code region. diff --git a/test/MC/ARM/directive-arch-armv2.s b/test/MC/ARM/directive-arch-armv2.s index 8985a0e19ff..f4edc34a365 100644 --- a/test/MC/ARM/directive-arch-armv2.s +++ b/test/MC/ARM/directive-arch-armv2.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv2 diff --git a/test/MC/ARM/directive-arch-armv2a.s b/test/MC/ARM/directive-arch-armv2a.s index 7ee434dde61..f63f1a57cb9 100644 --- a/test/MC/ARM/directive-arch-armv2a.s +++ b/test/MC/ARM/directive-arch-armv2a.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv2a diff --git a/test/MC/ARM/directive-arch-armv3.s b/test/MC/ARM/directive-arch-armv3.s index 6e514b69c08..001b30ad6bf 100644 --- a/test/MC/ARM/directive-arch-armv3.s +++ b/test/MC/ARM/directive-arch-armv3.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv3 diff --git a/test/MC/ARM/directive-arch-armv3m.s b/test/MC/ARM/directive-arch-armv3m.s index 08843c834b7..544445e75c4 100644 --- a/test/MC/ARM/directive-arch-armv3m.s +++ b/test/MC/ARM/directive-arch-armv3m.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv3m diff --git a/test/MC/ARM/directive-arch-armv4.s b/test/MC/ARM/directive-arch-armv4.s index d49d4fd6c75..93374efb99f 100644 --- a/test/MC/ARM/directive-arch-armv4.s +++ b/test/MC/ARM/directive-arch-armv4.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv4 diff --git a/test/MC/ARM/directive-arch-armv4t.s b/test/MC/ARM/directive-arch-armv4t.s index a4eafb1e238..f14235ab766 100644 --- a/test/MC/ARM/directive-arch-armv4t.s +++ b/test/MC/ARM/directive-arch-armv4t.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv4t diff --git a/test/MC/ARM/directive-arch-armv5.s b/test/MC/ARM/directive-arch-armv5.s index 8f94af66d6f..368e88515b9 100644 --- a/test/MC/ARM/directive-arch-armv5.s +++ b/test/MC/ARM/directive-arch-armv5.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv5 diff --git a/test/MC/ARM/directive-arch-armv5t.s b/test/MC/ARM/directive-arch-armv5t.s index 234180ecb58..82c7061323d 100644 --- a/test/MC/ARM/directive-arch-armv5t.s +++ b/test/MC/ARM/directive-arch-armv5t.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv5t diff --git a/test/MC/ARM/directive-arch-armv5te.s b/test/MC/ARM/directive-arch-armv5te.s index 2c4c148a363..af3e38c025c 100644 --- a/test/MC/ARM/directive-arch-armv5te.s +++ b/test/MC/ARM/directive-arch-armv5te.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv5te diff --git a/test/MC/ARM/directive-arch-armv6-m.s b/test/MC/ARM/directive-arch-armv6-m.s index c37b8b1680c..52f5800fb13 100644 --- a/test/MC/ARM/directive-arch-armv6-m.s +++ b/test/MC/ARM/directive-arch-armv6-m.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv6-m diff --git a/test/MC/ARM/directive-arch-armv6.s b/test/MC/ARM/directive-arch-armv6.s index 2c631500bb9..636aa4aa4d3 100644 --- a/test/MC/ARM/directive-arch-armv6.s +++ b/test/MC/ARM/directive-arch-armv6.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv6 diff --git a/test/MC/ARM/directive-arch-armv6k.s b/test/MC/ARM/directive-arch-armv6k.s index ba6adea597e..d6245e5bb90 100644 --- a/test/MC/ARM/directive-arch-armv6k.s +++ b/test/MC/ARM/directive-arch-armv6k.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv6k diff --git a/test/MC/ARM/directive-arch-armv6t2.s b/test/MC/ARM/directive-arch-armv6t2.s index 0be5169b377..6ac895546e3 100644 --- a/test/MC/ARM/directive-arch-armv6t2.s +++ b/test/MC/ARM/directive-arch-armv6t2.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv6t2 diff --git a/test/MC/ARM/directive-arch-armv6z.s b/test/MC/ARM/directive-arch-armv6z.s index efebe951e26..e757e57aab1 100644 --- a/test/MC/ARM/directive-arch-armv6z.s +++ b/test/MC/ARM/directive-arch-armv6z.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv6z diff --git a/test/MC/ARM/directive-arch-armv7-a.s b/test/MC/ARM/directive-arch-armv7-a.s index c3bd86de134..84d55a9e286 100644 --- a/test/MC/ARM/directive-arch-armv7-a.s +++ b/test/MC/ARM/directive-arch-armv7-a.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv7-a diff --git a/test/MC/ARM/directive-arch-armv7-m.s b/test/MC/ARM/directive-arch-armv7-m.s index 96df23a96b2..b5959d53f69 100644 --- a/test/MC/ARM/directive-arch-armv7-m.s +++ b/test/MC/ARM/directive-arch-armv7-m.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv7-m diff --git a/test/MC/ARM/directive-arch-armv7-r.s b/test/MC/ARM/directive-arch-armv7-r.s index b67aee3f2ea..ea58b5d0612 100644 --- a/test/MC/ARM/directive-arch-armv7-r.s +++ b/test/MC/ARM/directive-arch-armv7-r.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv7-r diff --git a/test/MC/ARM/directive-arch-armv7.s b/test/MC/ARM/directive-arch-armv7.s index 1ea2bcf89fb..9485e4b90ab 100644 --- a/test/MC/ARM/directive-arch-armv7.s +++ b/test/MC/ARM/directive-arch-armv7.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv7 diff --git a/test/MC/ARM/directive-arch-armv7a.s b/test/MC/ARM/directive-arch-armv7a.s index e17e170fb05..c3d5e14da6c 100644 --- a/test/MC/ARM/directive-arch-armv7a.s +++ b/test/MC/ARM/directive-arch-armv7a.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv7a diff --git a/test/MC/ARM/directive-arch-armv7e-m.s b/test/MC/ARM/directive-arch-armv7e-m.s index 39f9184fd42..5664737d1d8 100644 --- a/test/MC/ARM/directive-arch-armv7e-m.s +++ b/test/MC/ARM/directive-arch-armv7e-m.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv7e-m diff --git a/test/MC/ARM/directive-arch-armv7em.s b/test/MC/ARM/directive-arch-armv7em.s index 10f9effebcc..1b4f66fceeb 100644 --- a/test/MC/ARM/directive-arch-armv7em.s +++ b/test/MC/ARM/directive-arch-armv7em.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv7em diff --git a/test/MC/ARM/directive-arch-armv7m.s b/test/MC/ARM/directive-arch-armv7m.s index 5b623af34e6..5c0ca48f23f 100644 --- a/test/MC/ARM/directive-arch-armv7m.s +++ b/test/MC/ARM/directive-arch-armv7m.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv7m diff --git a/test/MC/ARM/directive-arch-armv7r.s b/test/MC/ARM/directive-arch-armv7r.s index f4461483b53..a2d8060fbd0 100644 --- a/test/MC/ARM/directive-arch-armv7r.s +++ b/test/MC/ARM/directive-arch-armv7r.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv7r diff --git a/test/MC/ARM/directive-arch-armv8-a.s b/test/MC/ARM/directive-arch-armv8-a.s index fd567c8e4b3..a84bcf3d8f2 100644 --- a/test/MC/ARM/directive-arch-armv8-a.s +++ b/test/MC/ARM/directive-arch-armv8-a.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv8-a diff --git a/test/MC/ARM/directive-arch-armv8.2-a.s b/test/MC/ARM/directive-arch-armv8.2-a.s index 8cd7c2f740a..2684ba7a0e9 100644 --- a/test/MC/ARM/directive-arch-armv8.2-a.s +++ b/test/MC/ARM/directive-arch-armv8.2-a.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv8.2-a diff --git a/test/MC/ARM/directive-arch-armv8a.s b/test/MC/ARM/directive-arch-armv8a.s index e9a5bef89d5..1eddb69a599 100644 --- a/test/MC/ARM/directive-arch-armv8a.s +++ b/test/MC/ARM/directive-arch-armv8a.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch armv8a diff --git a/test/MC/ARM/directive-arch-iwmmxt.s b/test/MC/ARM/directive-arch-iwmmxt.s index 2a9317ddf46..e389b95050d 100644 --- a/test/MC/ARM/directive-arch-iwmmxt.s +++ b/test/MC/ARM/directive-arch-iwmmxt.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch iwmmxt diff --git a/test/MC/ARM/directive-arch-iwmmxt2.s b/test/MC/ARM/directive-arch-iwmmxt2.s index 90b2181ee29..2e1c474bdab 100644 --- a/test/MC/ARM/directive-arch-iwmmxt2.s +++ b/test/MC/ARM/directive-arch-iwmmxt2.s @@ -6,7 +6,7 @@ @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ @ RUN: | FileCheck %s -check-prefix CHECK-ASM @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .arch iwmmxt2 diff --git a/test/MC/ARM/directive-cpu.s b/test/MC/ARM/directive-cpu.s index 8c95d7b3d86..dc99c202c13 100644 --- a/test/MC/ARM/directive-cpu.s +++ b/test/MC/ARM/directive-cpu.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc < %s -triple armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd | FileCheck %s +@ RUN: | llvm-readobj -S --sd - | FileCheck %s @ CHECK: Name: .ARM.attribute @ CHECK: SectionData ( diff --git a/test/MC/ARM/directive-eabi_attribute-overwrite.s b/test/MC/ARM/directive-eabi_attribute-overwrite.s index 194c77e6a75..3a992d3260c 100644 --- a/test/MC/ARM/directive-eabi_attribute-overwrite.s +++ b/test/MC/ARM/directive-eabi_attribute-overwrite.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s -check-prefix CHECK-ATTR +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .thumb diff --git a/test/MC/ARM/directive-eabi_attribute.s b/test/MC/ARM/directive-eabi_attribute.s index 445bc215cfb..de858939c5a 100644 --- a/test/MC/ARM/directive-eabi_attribute.s +++ b/test/MC/ARM/directive-eabi_attribute.s @@ -1,6 +1,6 @@ @ RUN: llvm-mc -triple armv7-elf -filetype asm -o - %s | FileCheck %s @ RUN: llvm-mc < %s -triple armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s --check-prefix=CHECK-OBJ +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s --check-prefix=CHECK-OBJ .syntax unified .thumb diff --git a/test/MC/ARM/directive-even.s b/test/MC/ARM/directive-even.s index e8152e5d20d..2df0a4cc224 100644 --- a/test/MC/ARM/directive-even.s +++ b/test/MC/ARM/directive-even.s @@ -1,4 +1,5 @@ -@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-readobj -S --sd \ +@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s \ +@ RUN: | llvm-readobj -S --sd - \ @ RUN: | FileCheck %s .syntax unified diff --git a/test/MC/ARM/directive-fpu-multiple.s b/test/MC/ARM/directive-fpu-multiple.s index 4f474f0a955..ba407654854 100644 --- a/test/MC/ARM/directive-fpu-multiple.s +++ b/test/MC/ARM/directive-fpu-multiple.s @@ -3,7 +3,8 @@ @ The later .fpu directive should overwrite the earlier one. @ We also check here that all the .fpu directives that we expect to work do work -@ RUN: llvm-mc -triple arm-eabi -filetype obj %s | llvm-readobj --arch-specific \ +@ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ +@ RUN: | llvm-readobj --arch-specific - \ @ RUN: | FileCheck %s -check-prefix CHECK-ATTR .fpu none diff --git a/test/MC/ARM/directive-fpu.s b/test/MC/ARM/directive-fpu.s index f7fea24edcb..ba90f1f5286 100644 --- a/test/MC/ARM/directive-fpu.s +++ b/test/MC/ARM/directive-fpu.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc < %s -triple armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd | FileCheck %s +@ RUN: | llvm-readobj -S --sd - | FileCheck %s @ CHECK: Name: .ARM.attribute @ CHECK: SectionData ( diff --git a/test/MC/ARM/directive-object_arch-2.s b/test/MC/ARM/directive-object_arch-2.s index b536f53e7f3..1fd7bc030dd 100644 --- a/test/MC/ARM/directive-object_arch-2.s +++ b/test/MC/ARM/directive-object_arch-2.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s .syntax unified diff --git a/test/MC/ARM/directive-object_arch.s b/test/MC/ARM/directive-object_arch.s index 74de1734a40..97dbd8d58a7 100644 --- a/test/MC/ARM/directive-object_arch.s +++ b/test/MC/ARM/directive-object_arch.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s \ -@ RUN: | llvm-readobj --arch-specific | FileCheck %s +@ RUN: | llvm-readobj --arch-specific - | FileCheck %s .syntax unified diff --git a/test/MC/ARM/directive-tlsdescseq.s b/test/MC/ARM/directive-tlsdescseq.s index 649366365b7..087bc19b7b6 100644 --- a/test/MC/ARM/directive-tlsdescseq.s +++ b/test/MC/ARM/directive-tlsdescseq.s @@ -1,4 +1,5 @@ -@ RUN: llvm-mc -triple armv7-linux-gnu -filetype obj -o - %s | llvm-readobj -r \ +@ RUN: llvm-mc -triple armv7-linux-gnu -filetype obj -o - %s \ +@ RUN: | llvm-readobj -r - \ @ RUN: | FileCheck %s @ RUN: llvm-mc -triple armv7-linux-gnu -filetype asm -o - %s \ @ RUN: | FileCheck -check-prefix CHECK-ASM %s diff --git a/test/MC/ARM/eh-compact-pr0.s b/test/MC/ARM/eh-compact-pr0.s index ac4aa2c2727..b96b67d3aaf 100644 --- a/test/MC/ARM/eh-compact-pr0.s +++ b/test/MC/ARM/eh-compact-pr0.s @@ -1,9 +1,9 @@ @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd --sr > %t +@ RUN: | llvm-readobj -S --sd --sr - > %t @ RUN: FileCheck %s < %t @ RUN: FileCheck --check-prefixes=RELOC,RELOC-NOAND %s < %t @ RUN: llvm-mc %s -triple=armv7-unknown-linux-androideabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd --sr | FileCheck --check-prefix=RELOC %s +@ RUN: | llvm-readobj -S --sd --sr - | FileCheck --check-prefix=RELOC %s @ Check the compact pr0 model diff --git a/test/MC/ARM/eh-compact-pr1.s b/test/MC/ARM/eh-compact-pr1.s index d404a4f351b..8f3a15c069b 100644 --- a/test/MC/ARM/eh-compact-pr1.s +++ b/test/MC/ARM/eh-compact-pr1.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd --sr | FileCheck %s +@ RUN: | llvm-readobj -S --sd --sr - | FileCheck %s @ Check the compact pr1 model diff --git a/test/MC/ARM/eh-directive-cantunwind.s b/test/MC/ARM/eh-directive-cantunwind.s index 60cbd852f6d..86df4b48c41 100644 --- a/test/MC/ARM/eh-directive-cantunwind.s +++ b/test/MC/ARM/eh-directive-cantunwind.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd --sr | FileCheck %s +@ RUN: | llvm-readobj -S --sd --sr - | FileCheck %s @ Check the .cantunwind directive diff --git a/test/MC/ARM/eh-directive-handlerdata.s b/test/MC/ARM/eh-directive-handlerdata.s index ce87b4b2d14..a5f31d4f84f 100644 --- a/test/MC/ARM/eh-directive-handlerdata.s +++ b/test/MC/ARM/eh-directive-handlerdata.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd --sr > %t +@ RUN: | llvm-readobj -S --sd --sr - > %t @ RUN: FileCheck %s < %t @ RUN: FileCheck --check-prefix=RELOC %s < %t diff --git a/test/MC/ARM/eh-directive-integrated-test.s b/test/MC/ARM/eh-directive-integrated-test.s index d69d43a2625..0560fabce1f 100644 --- a/test/MC/ARM/eh-directive-integrated-test.s +++ b/test/MC/ARM/eh-directive-integrated-test.s @@ -20,7 +20,7 @@ @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd | FileCheck %s +@ RUN: | llvm-readobj -S --sd - | FileCheck %s @------------------------------------------------------------------------------- diff --git a/test/MC/ARM/eh-directive-movsp.s b/test/MC/ARM/eh-directive-movsp.s index bbb9e2cfeb2..d790c447b0b 100644 --- a/test/MC/ARM/eh-directive-movsp.s +++ b/test/MC/ARM/eh-directive-movsp.s @@ -1,4 +1,5 @@ -@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-readobj -S --sd \ +@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s \ +@ RUN: | llvm-readobj -S --sd - \ @ RUN: | FileCheck %s .syntax unified diff --git a/test/MC/ARM/eh-directive-multiple-offsets.s b/test/MC/ARM/eh-directive-multiple-offsets.s index 25c40f94207..252c7313172 100644 --- a/test/MC/ARM/eh-directive-multiple-offsets.s +++ b/test/MC/ARM/eh-directive-multiple-offsets.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd | FileCheck %s +@ RUN: | llvm-readobj -S --sd - | FileCheck %s @ Check for different combination of .setfp, .pad, .save and .vsave. diff --git a/test/MC/ARM/eh-directive-pad.s b/test/MC/ARM/eh-directive-pad.s index ef6c34e8d18..8b400df4b35 100644 --- a/test/MC/ARM/eh-directive-pad.s +++ b/test/MC/ARM/eh-directive-pad.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd | FileCheck %s +@ RUN: | llvm-readobj -S --sd - | FileCheck %s @ Check for different stack pointer offsets. diff --git a/test/MC/ARM/eh-directive-personality.s b/test/MC/ARM/eh-directive-personality.s index 826c10d696a..9123dc2d144 100644 --- a/test/MC/ARM/eh-directive-personality.s +++ b/test/MC/ARM/eh-directive-personality.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd --sr > %t +@ RUN: | llvm-readobj -S --sd --sr - > %t @ RUN: FileCheck %s < %t @ RUN: FileCheck --check-prefix=RELOC %s < %t diff --git a/test/MC/ARM/eh-directive-personalityindex.s b/test/MC/ARM/eh-directive-personalityindex.s index 36c0ac3882f..03b92a6d829 100644 --- a/test/MC/ARM/eh-directive-personalityindex.s +++ b/test/MC/ARM/eh-directive-personalityindex.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc -triple armv7-linux-eabi -filetype obj -o - %s \ -@ RUN: | llvm-readobj -S --sd --sr > %t +@ RUN: | llvm-readobj -S --sd --sr - > %t @ RUN: FileCheck %s < %t @ RUN: FileCheck --check-prefix=RELOC %s < %t diff --git a/test/MC/ARM/eh-directive-save.s b/test/MC/ARM/eh-directive-save.s index 539d73d57a2..7d32ea3f95e 100644 --- a/test/MC/ARM/eh-directive-save.s +++ b/test/MC/ARM/eh-directive-save.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd | FileCheck %s +@ RUN: | llvm-readobj -S --sd - | FileCheck %s @ Check the .save directive diff --git a/test/MC/ARM/eh-directive-section-comdat.s b/test/MC/ARM/eh-directive-section-comdat.s index 10d20f7e0af..c41ec8d33b6 100644 --- a/test/MC/ARM/eh-directive-section-comdat.s +++ b/test/MC/ARM/eh-directive-section-comdat.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd --sr --symbols | FileCheck %s +@ RUN: | llvm-readobj -S --sd --sr --symbols - | FileCheck %s @ Check the .group section for the function in comdat section. diff --git a/test/MC/ARM/eh-directive-section-multiple-func.s b/test/MC/ARM/eh-directive-section-multiple-func.s index 7a281cfb399..61629a7858b 100644 --- a/test/MC/ARM/eh-directive-section-multiple-func.s +++ b/test/MC/ARM/eh-directive-section-multiple-func.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd --sr --symbols > %t +@ RUN: | llvm-readobj -S --sd --sr --symbols - > %t @ RUN: FileCheck %s < %t @ RUN: FileCheck --check-prefix=RELOC %s < %t diff --git a/test/MC/ARM/eh-directive-section.s b/test/MC/ARM/eh-directive-section.s index 57816ce28b6..dfdc2147a2f 100644 --- a/test/MC/ARM/eh-directive-section.s +++ b/test/MC/ARM/eh-directive-section.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd --sr --symbols > %t +@ RUN: | llvm-readobj -S --sd --sr --symbols - > %t @ RUN: FileCheck %s < %t @ RUN: FileCheck --check-prefix=RELOC %s < %t diff --git a/test/MC/ARM/eh-directive-setfp.s b/test/MC/ARM/eh-directive-setfp.s index 0d9d9e60076..c24d5854741 100644 --- a/test/MC/ARM/eh-directive-setfp.s +++ b/test/MC/ARM/eh-directive-setfp.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd | FileCheck %s +@ RUN: | llvm-readobj -S --sd - | FileCheck %s @ Check for .setfp directive. diff --git a/test/MC/ARM/eh-directive-text-section-multiple-func.s b/test/MC/ARM/eh-directive-text-section-multiple-func.s index fe1e6622f07..d148f7b61dc 100644 --- a/test/MC/ARM/eh-directive-text-section-multiple-func.s +++ b/test/MC/ARM/eh-directive-text-section-multiple-func.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd --sr -r --symbols | FileCheck %s +@ RUN: | llvm-readobj -S --sd --sr -r --symbols - | FileCheck %s @ Check whether the section is switched back or not. diff --git a/test/MC/ARM/eh-directive-text-section.s b/test/MC/ARM/eh-directive-text-section.s index b6658166365..e1de4e0dabc 100644 --- a/test/MC/ARM/eh-directive-text-section.s +++ b/test/MC/ARM/eh-directive-text-section.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd --sr | FileCheck %s +@ RUN: | llvm-readobj -S --sd --sr - | FileCheck %s @ Check the .fnstart directive and the .fnend directive. diff --git a/test/MC/ARM/eh-directive-unwind_raw.s b/test/MC/ARM/eh-directive-unwind_raw.s index c617aa37c49..6ec40e94b8f 100644 --- a/test/MC/ARM/eh-directive-unwind_raw.s +++ b/test/MC/ARM/eh-directive-unwind_raw.s @@ -1,4 +1,4 @@ -@ RUN: llvm-mc -triple armv7-linux-eabi -filetype obj -o - %s | llvm-readobj -u \ +@ RUN: llvm-mc -triple armv7-linux-eabi -filetype obj -o - %s | llvm-readobj -u - \ @ RUN: | FileCheck %s .syntax unified diff --git a/test/MC/ARM/eh-directive-vsave.s b/test/MC/ARM/eh-directive-vsave.s index 1b792650866..f4f09f70f40 100644 --- a/test/MC/ARM/eh-directive-vsave.s +++ b/test/MC/ARM/eh-directive-vsave.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd --sr | FileCheck %s +@ RUN: | llvm-readobj -S --sd --sr - | FileCheck %s @ Check the .vsave directive diff --git a/test/MC/ARM/eh-link.s b/test/MC/ARM/eh-link.s index bae17d3e3c8..392c12a4ac4 100644 --- a/test/MC/ARM/eh-link.s +++ b/test/MC/ARM/eh-link.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S | FileCheck %s +@ RUN: | llvm-readobj -S - | FileCheck %s @ Test that the ARM_EXIDX sections point (Link) to the corresponding text @ sections. diff --git a/test/MC/ARM/elf-eflags-eabi.s b/test/MC/ARM/elf-eflags-eabi.s index bc4cc3b9942..97ab35494c1 100644 --- a/test/MC/ARM/elf-eflags-eabi.s +++ b/test/MC/ARM/elf-eflags-eabi.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc %s -triple=armv7-linux-gnueabi -filetype=obj -o - | \ -@ RUN: llvm-readobj -h | FileCheck -check-prefix=OBJ %s +@ RUN: llvm-readobj -h - | FileCheck -check-prefix=OBJ %s .syntax unified .text .globl barf diff --git a/test/MC/ARM/elf-execute-only-section.ll b/test/MC/ARM/elf-execute-only-section.ll index 73b088fa410..fdbcae9544d 100644 --- a/test/MC/ARM/elf-execute-only-section.ll +++ b/test/MC/ARM/elf-execute-only-section.ll @@ -1,9 +1,9 @@ ; RUN: llc < %s -mtriple=thumbv8m.base-eabi -mattr=+execute-only -filetype=obj %s -o - | \ -; RUN: llvm-readelf -S | FileCheck %s +; RUN: llvm-readelf -S - | FileCheck %s ; RUN: llc < %s -mtriple=thumbv8m.main-eabi -mattr=+execute-only -filetype=obj %s -o - | \ -; RUN: llvm-readelf -S | FileCheck %s +; RUN: llvm-readelf -S - | FileCheck %s ; RUN: llc < %s -mtriple=thumbv7m-eabi -mattr=+execute-only -filetype=obj %s -o - | \ -; RUN: llvm-readelf -S | FileCheck %s +; RUN: llvm-readelf -S - | FileCheck %s ; CHECK-NOT: {{.text[ ]+PROGBITS[ ]+[0-9]+ [0-9]+ [0-9]+ [0-9]+ AX[^y]}} ; CHECK: {{.text[ ]+PROGBITS[ ]+[0-9]+ [0-9]+ [0-9]+ [0-9]+ AXy}} diff --git a/test/MC/ARM/elf-reloc-01.s b/test/MC/ARM/elf-reloc-01.s index f3019cdff3c..0e9195ec4bd 100644 --- a/test/MC/ARM/elf-reloc-01.s +++ b/test/MC/ARM/elf-reloc-01.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -triple=armv7-linux-gnueabi \ // RUN: -mcpu=cortex-a8 -mattr=-neon -mattr=+vfp2 \ // RUN: -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ %s +// RUN: llvm-readobj -r - | FileCheck -check-prefix=OBJ %s // Ensure no regression on ARM/gcc compatibility for // emitting explicit symbol relocs for nonexternal symbols diff --git a/test/MC/ARM/elf-reloc-02.s b/test/MC/ARM/elf-reloc-02.s index 24e2bb3b6fd..b8a8e3bd44d 100644 --- a/test/MC/ARM/elf-reloc-02.s +++ b/test/MC/ARM/elf-reloc-02.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -triple=armv7-linux-gnueabi \ // RUN: -mcpu=cortex-a8 -mattr=-neon -mattr=+vfp2 \ // RUN: -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ %s +// RUN: llvm-readobj -r - | FileCheck -check-prefix=OBJ %s // Ensure no regression on ARM/gcc compatibility for // emitting explicit symbol relocs for nonexternal symbols diff --git a/test/MC/ARM/elf-reloc-03.s b/test/MC/ARM/elf-reloc-03.s index e55b1273769..5d3947e8a9b 100644 --- a/test/MC/ARM/elf-reloc-03.s +++ b/test/MC/ARM/elf-reloc-03.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -triple=armv7-linux-gnueabi \ // RUN: -mcpu=cortex-a8 -mattr=-neon -mattr=+vfp2 \ // RUN: -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ %s +// RUN: llvm-readobj -r - | FileCheck -check-prefix=OBJ %s // Ensure no regression on ARM/gcc compatibility for // emitting explicit symbol relocs for nonexternal symbols diff --git a/test/MC/ARM/elf-reloc-condcall.s b/test/MC/ARM/elf-reloc-condcall.s index c4818b89c23..58dc9db2411 100644 --- a/test/MC/ARM/elf-reloc-condcall.s +++ b/test/MC/ARM/elf-reloc-condcall.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -triple=armv7-linux-gnueabi -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ %s +// RUN: llvm-readobj -r - | FileCheck -check-prefix=OBJ %s bleq some_label bl some_label diff --git a/test/MC/ARM/elf-thumbfunc-reloc.s b/test/MC/ARM/elf-thumbfunc-reloc.s index 70aa8c66b96..62e084b48fe 100644 --- a/test/MC/ARM/elf-thumbfunc-reloc.s +++ b/test/MC/ARM/elf-thumbfunc-reloc.s @@ -1,6 +1,6 @@ @@ test st_value bit 0 of thumb function @ RUN: llvm-mc %s -triple=armv4t-freebsd-eabi -filetype=obj -o - | \ -@ RUN: llvm-readobj -r | FileCheck %s +@ RUN: llvm-readobj -r - | FileCheck %s .syntax unified diff --git a/test/MC/ARM/elf-thumbfunc-reloc2.s b/test/MC/ARM/elf-thumbfunc-reloc2.s index cf54b00d48f..f414a6d10a5 100644 --- a/test/MC/ARM/elf-thumbfunc-reloc2.s +++ b/test/MC/ARM/elf-thumbfunc-reloc2.s @@ -1,5 +1,5 @@ // RUN: llvm-mc %s -triple=thumbv7-linux-gnueabi \ -// RUN: -filetype=obj -o - | llvm-readobj -S --sd -r --symbols | \ +// RUN: -filetype=obj -o - | llvm-readobj -S --sd -r --symbols - | \ // RUN: FileCheck %s // We want to test relocatable thumb function call. diff --git a/test/MC/ARM/elf-thumbfunc.s b/test/MC/ARM/elf-thumbfunc.s index 6feee8fbb56..f12b5cb4503 100644 --- a/test/MC/ARM/elf-thumbfunc.s +++ b/test/MC/ARM/elf-thumbfunc.s @@ -1,6 +1,6 @@ @@ test st_value bit 0 of thumb function @ RUN: llvm-mc %s -triple=thumbv7-linux-gnueabi -filetype=obj -o - | \ -@ RUN: llvm-readobj --symbols | FileCheck %s +@ RUN: llvm-readobj --symbols - | FileCheck %s .syntax unified .text .globl foo diff --git a/test/MC/ARM/inst-directive.s b/test/MC/ARM/inst-directive.s index 290bd7d029e..9d6a1e16884 100644 --- a/test/MC/ARM/inst-directive.s +++ b/test/MC/ARM/inst-directive.s @@ -1,8 +1,8 @@ @ RUN: llvm-mc %s -triple=armv7-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-LE +@ RUN: | llvm-readobj -S --sd - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-LE @ RUN: llvm-mc %s -triple=armebv7-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -S --sd | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-BE +@ RUN: | llvm-readobj -S --sd - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-BE .syntax unified diff --git a/test/MC/ARM/mixed-arm-thumb-bl-fixup.ll b/test/MC/ARM/mixed-arm-thumb-bl-fixup.ll index 51a6051e564..d109197e98f 100644 --- a/test/MC/ARM/mixed-arm-thumb-bl-fixup.ll +++ b/test/MC/ARM/mixed-arm-thumb-bl-fixup.ll @@ -1,15 +1,15 @@ ; RUN: llc -O0 < %s -mtriple armv7-linux-gnueabi -o - \ ; RUN: | llvm-mc -triple armv7-linux-gnueabi -filetype=obj -o - \ -; RUN: | llvm-readobj -r | FileCheck --check-prefix LINUX %s +; RUN: | llvm-readobj -r - | FileCheck --check-prefix LINUX %s ; RUN: llc -O0 < %s -mtriple armv7-linux-android -o - \ ; RUN: | llvm-mc -triple armv7-linux-android -filetype=obj -o - \ -; RUN: | llvm-readobj -r | FileCheck --check-prefix LINUX %s +; RUN: | llvm-readobj -r - | FileCheck --check-prefix LINUX %s ; RUN: llc -O0 < %s -mtriple armv7-apple-ios -o - \ ; RUN: | llvm-mc -triple armv7-apple-ios -filetype=obj -o - \ -; RUN: | llvm-readobj -r | FileCheck --check-prefix IOS %s +; RUN: | llvm-readobj -r - | FileCheck --check-prefix IOS %s define void @thumb_caller() #0 { diff --git a/test/MC/ARM/target-expressions.s b/test/MC/ARM/target-expressions.s index c87cd22b2ba..ec431201d6f 100644 --- a/test/MC/ARM/target-expressions.s +++ b/test/MC/ARM/target-expressions.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc -triple armv7-eabi -filetype asm -o - %s | FileCheck %s -@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-readobj -r \ +@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-readobj -r - \ @ RUN: | FileCheck -check-prefix CHECK-RELOCATIONS %s .syntax unified diff --git a/test/MC/ARM/thumb-far-jump.s b/test/MC/ARM/thumb-far-jump.s index 2fd2c567d13..1131d08c9f0 100644 --- a/test/MC/ARM/thumb-far-jump.s +++ b/test/MC/ARM/thumb-far-jump.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc < %s -triple thumbv5-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -r | FileCheck %s +@ RUN: | llvm-readobj -r - | FileCheck %s .syntax unified .text diff --git a/test/MC/ARM/thumb-movwt-reloc.s b/test/MC/ARM/thumb-movwt-reloc.s index c00cf1c1c9e..0ca1d85ed57 100644 --- a/test/MC/ARM/thumb-movwt-reloc.s +++ b/test/MC/ARM/thumb-movwt-reloc.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc -triple thumbv8m.base-eabi -filetype asm -o - %s | FileCheck %s -@ RUN: llvm-mc -triple thumbv8m.base-eabi -filetype obj -o - %s | llvm-readobj -r \ +@ RUN: llvm-mc -triple thumbv8m.base-eabi -filetype obj -o - %s | llvm-readobj -r - \ @ RUN: | FileCheck -check-prefix CHECK-RELOCATIONS %s .syntax unified diff --git a/test/MC/ARM/thumb-st_other.s b/test/MC/ARM/thumb-st_other.s index a9733ba7c02..f3df31a86aa 100644 --- a/test/MC/ARM/thumb-st_other.s +++ b/test/MC/ARM/thumb-st_other.s @@ -4,7 +4,7 @@ @ for st_other should always be 0. @ RUN: llvm-mc < %s -triple thumbv5-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj --symbols | FileCheck %s +@ RUN: | llvm-readobj --symbols - | FileCheck %s .syntax unified .text diff --git a/test/MC/ARM/thumb-types.s b/test/MC/ARM/thumb-types.s index bc915b4954c..7d17017317d 100644 --- a/test/MC/ARM/thumb-types.s +++ b/test/MC/ARM/thumb-types.s @@ -1,4 +1,4 @@ -@ RUN: llvm-mc -triple armv7-elf -filetype obj -o - %s | llvm-readobj --symbols \ +@ RUN: llvm-mc -triple armv7-elf -filetype obj -o - %s | llvm-readobj --symbols - \ @ RUN: | FileCheck %s .syntax unified diff --git a/test/MC/ARM/thumb2-beq-fixup.s b/test/MC/ARM/thumb2-beq-fixup.s index 36728081162..f89e971a9c0 100644 --- a/test/MC/ARM/thumb2-beq-fixup.s +++ b/test/MC/ARM/thumb2-beq-fixup.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc < %s -triple armv7-linux-gnueabi -filetype=obj -o - \ -@ RUN: | llvm-readobj -r | FileCheck %s +@ RUN: | llvm-readobj -r - | FileCheck %s .code 16 .thumb_func diff --git a/test/MC/ARM/thumb_set.s b/test/MC/ARM/thumb_set.s index f3ee0f4a962..1404bfd683f 100644 --- a/test/MC/ARM/thumb_set.s +++ b/test/MC/ARM/thumb_set.s @@ -1,4 +1,4 @@ -@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-readobj --symbols \ +@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-readobj --symbols - \ @ RUN: | FileCheck %s @ RUN: llvm-mc -triple armv7-eabi -filetype asm -o - %s \ diff --git a/test/MC/AsmParser/directive_end-2.s b/test/MC/AsmParser/directive_end-2.s index 55deaa8ea41..b326f8e3fe4 100644 --- a/test/MC/AsmParser/directive_end-2.s +++ b/test/MC/AsmParser/directive_end-2.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -triple i386-unknown-unknown %s -I %p -filetype obj -o - \ -# RUN: | llvm-readobj --symbols | FileCheck %s +# RUN: | llvm-readobj --symbols - | FileCheck %s rock: movl $42, %eax diff --git a/test/MC/AsmParser/directive_end.s b/test/MC/AsmParser/directive_end.s index f94317191b1..d26056c1eb1 100644 --- a/test/MC/AsmParser/directive_end.s +++ b/test/MC/AsmParser/directive_end.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -triple i386-unknown-unknown %s -filetype obj -o - \ -# RUN: | llvm-readobj --symbols | FileCheck %s +# RUN: | llvm-readobj --symbols - | FileCheck %s .end diff --git a/test/MC/AsmParser/section.s b/test/MC/AsmParser/section.s index e46acee0f0a..14bb354ec77 100644 --- a/test/MC/AsmParser/section.s +++ b/test/MC/AsmParser/section.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -triple i386-pc-linux-gnu -filetype=obj -o %t %s -# RUN: llvm-readobj -S --sd < %t | FileCheck %s +# RUN: llvm-readobj -S --sd < %t - | FileCheck %s .section test1 .byte 1 .section test2 diff --git a/test/MC/AsmParser/section_names.s b/test/MC/AsmParser/section_names.s index 8d16c4fb307..97cc8fc0072 100644 --- a/test/MC/AsmParser/section_names.s +++ b/test/MC/AsmParser/section_names.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -triple i386-pc-linux-gnu -filetype=obj -o %t %s -# RUN: llvm-readobj -S < %t | FileCheck %s +# RUN: llvm-readobj -S - < %t | FileCheck %s .section .nobits .byte 1 .section .nobits2 diff --git a/test/MC/COFF/addrsig.s b/test/MC/COFF/addrsig.s index 139f40a3754..7d0f354e7cd 100644 --- a/test/MC/COFF/addrsig.s +++ b/test/MC/COFF/addrsig.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s -o - | llvm-readobj -S --symbols --sd --addrsig | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s -o - | llvm-readobj -S --symbols --sd --addrsig - | FileCheck %s // CHECK: Name: .llvm_addrsig // CHECK-NEXT: VirtualSize: 0x0 diff --git a/test/MC/COFF/alias.s b/test/MC/COFF/alias.s index 0c225275f6b..b6828c65813 100644 --- a/test/MC/COFF/alias.s +++ b/test/MC/COFF/alias.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s -o - \ -// RUN: | llvm-readobj --symbols -r | FileCheck %s +// RUN: | llvm-readobj --symbols -r - | FileCheck %s local1: external_aliased_to_local = local1 diff --git a/test/MC/COFF/align-nops.s b/test/MC/COFF/align-nops.s index e9610397492..d6906d07148 100644 --- a/test/MC/COFF/align-nops.s +++ b/test/MC/COFF/align-nops.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 -mcpu=pentiumpro %s | llvm-readobj -S --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 -mcpu=pentiumpro %s | llvm-readobj -S --sd - | FileCheck %s // Test that we get optimal nops in text .text diff --git a/test/MC/COFF/basic-coff-64.s b/test/MC/COFF/basic-coff-64.s index 5c44b605fe3..085dfafe422 100644 --- a/test/MC/COFF/basic-coff-64.s +++ b/test/MC/COFF/basic-coff-64.s @@ -1,7 +1,7 @@ // This test checks that the COFF object emitter works for the most basic // programs. -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj -h -S --sr --sd --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj -h -S --sr --sd --symbols - | FileCheck %s .def _main; .scl 2; diff --git a/test/MC/COFF/basic-coff.s b/test/MC/COFF/basic-coff.s index 265e3f3ac11..23d74f852db 100644 --- a/test/MC/COFF/basic-coff.s +++ b/test/MC/COFF/basic-coff.s @@ -1,7 +1,7 @@ // This test checks that the COFF object emitter works for the most basic // programs. -// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj -h -S --sr --sd --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj -h -S --sr --sd --symbols - | FileCheck %s .def _main; .scl 2; diff --git a/test/MC/COFF/bss.s b/test/MC/COFF/bss.s index d707703a4c4..ea61144f8a8 100644 --- a/test/MC/COFF/bss.s +++ b/test/MC/COFF/bss.s @@ -1,7 +1,7 @@ // The purpose of this test is to verify that bss sections are emitted correctly. -// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj -S | FileCheck %s -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj -S - | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj -S - | FileCheck %s .bss .globl _g0 diff --git a/test/MC/COFF/comm-align.s b/test/MC/COFF/comm-align.s index 048d92e614f..441bf17769e 100644 --- a/test/MC/COFF/comm-align.s +++ b/test/MC/COFF/comm-align.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -triple i686-windows-gnu -filetype obj -o - %s \ -# RUN: | llvm-readobj --coff-directives --symbols | FileCheck %s +# RUN: | llvm-readobj --coff-directives --symbols - | FileCheck %s # NOTE: this test checks multiple things: # - that -aligncomm is not emitted for 1-byte alignment diff --git a/test/MC/COFF/comm.s b/test/MC/COFF/comm.s index 5ea620646b4..83b5d2e4854 100644 --- a/test/MC/COFF/comm.s +++ b/test/MC/COFF/comm.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj --symbols - | FileCheck %s .lcomm _a,4,4 .comm _b, 4, 2 diff --git a/test/MC/COFF/cross-section-relative.s b/test/MC/COFF/cross-section-relative.s index c448575891d..1d8fb709bdd 100644 --- a/test/MC/COFF/cross-section-relative.s +++ b/test/MC/COFF/cross-section-relative.s @@ -1,5 +1,5 @@ // Verify the .fix data section conveys the right offsets and the right relocations -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s -o - | llvm-readobj -r --expand-relocs -S --section-data | FileCheck %s --check-prefix=READOBJ +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s -o - | llvm-readobj -r --expand-relocs -S --section-data - | FileCheck %s --check-prefix=READOBJ .text .section .rdata,"dr" diff --git a/test/MC/COFF/cv-def-range-gap.s b/test/MC/COFF/cv-def-range-gap.s index 1e3703a02a9..95a73e529ed 100644 --- a/test/MC/COFF/cv-def-range-gap.s +++ b/test/MC/COFF/cv-def-range-gap.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -triple=x86_64-pc-win32 -filetype=obj < %s | llvm-readobj --codeview | FileCheck %s +# RUN: llvm-mc -triple=x86_64-pc-win32 -filetype=obj < %s | llvm-readobj --codeview - | FileCheck %s # This tries to test defrange gap edge cases. diff --git a/test/MC/COFF/cv-def-range.s b/test/MC/COFF/cv-def-range.s index 7ce2e5fb455..97304759a71 100644 --- a/test/MC/COFF/cv-def-range.s +++ b/test/MC/COFF/cv-def-range.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -triple=i686-pc-win32 -filetype=obj < %s | llvm-readobj --codeview --codeview-subsection-bytes | FileCheck %s +# RUN: llvm-mc -triple=i686-pc-win32 -filetype=obj < %s | llvm-readobj --codeview --codeview-subsection-bytes - | FileCheck %s .text .def @feat.00; .scl 3; diff --git a/test/MC/COFF/cv-fpo-csrs.s b/test/MC/COFF/cv-fpo-csrs.s index 1741143ce14..76ab8344e65 100644 --- a/test/MC/COFF/cv-fpo-csrs.s +++ b/test/MC/COFF/cv-fpo-csrs.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -filetype=asm < %s -triple i686-windows-msvc | FileCheck %s --check-prefix=ASM -# RUN: llvm-mc -filetype=obj < %s -triple i686-windows-msvc | llvm-readobj --codeview | FileCheck %s --check-prefix=OBJ +# RUN: llvm-mc -filetype=obj < %s -triple i686-windows-msvc | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ .globl _foo _foo: diff --git a/test/MC/COFF/cv-fpo-realign.s b/test/MC/COFF/cv-fpo-realign.s index df94b133acd..8b72364b6b3 100644 --- a/test/MC/COFF/cv-fpo-realign.s +++ b/test/MC/COFF/cv-fpo-realign.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -triple=i686-windows-msvc -filetype=obj < %s | llvm-readobj --codeview | FileCheck %s +# RUN: llvm-mc -triple=i686-windows-msvc -filetype=obj < %s | llvm-readobj --codeview - | FileCheck %s # Test for .cv_fpo_stackalign. We should generate FPO data that restores CSRs # at each instruction, and in the last FrameData we should use the '@' diff --git a/test/MC/COFF/cv-fpo-setframe.s b/test/MC/COFF/cv-fpo-setframe.s index 217248210ce..10ac9d6de10 100644 --- a/test/MC/COFF/cv-fpo-setframe.s +++ b/test/MC/COFF/cv-fpo-setframe.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -filetype=asm < %s -triple i686-windows-msvc | FileCheck %s --check-prefix=ASM -# RUN: llvm-mc -filetype=obj < %s -triple i686-windows-msvc | llvm-readobj --codeview | FileCheck %s --check-prefix=OBJ +# RUN: llvm-mc -filetype=obj < %s -triple i686-windows-msvc | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ .globl _foo _foo: diff --git a/test/MC/COFF/cv-inline-linetable-infloop.s b/test/MC/COFF/cv-inline-linetable-infloop.s index 3f5f1f53898..3802a0eeda7 100644 --- a/test/MC/COFF/cv-inline-linetable-infloop.s +++ b/test/MC/COFF/cv-inline-linetable-infloop.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -triple=x86_64-pc-win32 -filetype=obj < %s | llvm-readobj --codeview | FileCheck %s +# RUN: llvm-mc -triple=x86_64-pc-win32 -filetype=obj < %s | llvm-readobj --codeview - | FileCheck %s # CHECK: InlineSiteSym { # CHECK: BinaryAnnotations [ diff --git a/test/MC/COFF/cv-inline-linetable-unreachable.s b/test/MC/COFF/cv-inline-linetable-unreachable.s index b76028e0abf..9aaf1f88478 100644 --- a/test/MC/COFF/cv-inline-linetable-unreachable.s +++ b/test/MC/COFF/cv-inline-linetable-unreachable.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -triple=i686-pc-win32 -filetype=obj < %s | llvm-readobj --codeview | FileCheck %s +# RUN: llvm-mc -triple=i686-pc-win32 -filetype=obj < %s | llvm-readobj --codeview - | FileCheck %s .text .def @feat.00; .scl 3; diff --git a/test/MC/COFF/diff.s b/test/MC/COFF/diff.s index 2fb48ccc4ee..90466b59d02 100644 --- a/test/MC/COFF/diff.s +++ b/test/MC/COFF/diff.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple i686-pc-mingw32 %s | llvm-readobj -S --sr --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-mingw32 %s | llvm-readobj -S --sr --sd - | FileCheck %s // COFF resolves differences between labels in the same section, unless that // label is declared with function type. diff --git a/test/MC/COFF/directive-section-characteristics.ll b/test/MC/COFF/directive-section-characteristics.ll index d47103f22cc..5892755626b 100644 --- a/test/MC/COFF/directive-section-characteristics.ll +++ b/test/MC/COFF/directive-section-characteristics.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple i686-windows -filetype obj -o - %s | llvm-readobj --sections \ +; RUN: llc -mtriple i686-windows -filetype obj -o - %s | llvm-readobj --sections - \ ; RUN: | FileCheck %s define dllexport void @function() { diff --git a/test/MC/COFF/early-dce.s b/test/MC/COFF/early-dce.s index d19743ebb36..8398ee930e7 100644 --- a/test/MC/COFF/early-dce.s +++ b/test/MC/COFF/early-dce.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -triple i686-windows -g -filetype obj -o - %s \ -# RUN: | llvm-readobj -S --symbols | FileCheck %s +# RUN: | llvm-readobj -S --symbols - | FileCheck %s .section .rdata diff --git a/test/MC/COFF/eh-frame.s b/test/MC/COFF/eh-frame.s index e51b4c04410..e464099bbf7 100644 --- a/test/MC/COFF/eh-frame.s +++ b/test/MC/COFF/eh-frame.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s -o - | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s -o - | llvm-readobj -S - | FileCheck %s .def _main; .scl 2; diff --git a/test/MC/COFF/feat00.s b/test/MC/COFF/feat00.s index 3a9e69ddac9..5ed340e5b64 100644 --- a/test/MC/COFF/feat00.s +++ b/test/MC/COFF/feat00.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s -o - | llvm-readobj --symbols - | FileCheck %s "@feat.00" = 123 .globl @feat.00 diff --git a/test/MC/COFF/file.s b/test/MC/COFF/file.s index 96a658c073b..3bbd2daa4f9 100644 --- a/test/MC/COFF/file.s +++ b/test/MC/COFF/file.s @@ -7,7 +7,7 @@ // RUN: | FileCheck %s // RUN: llvm-mc -triple i686-windows -filetype obj %s -o - \ -// RUN: | llvm-readobj --symbols | FileCheck %s -check-prefix CHECK-SCN +// RUN: | llvm-readobj --symbols - | FileCheck %s -check-prefix CHECK-SCN .file "null-padded.asm" // CHECK: (nx 1) {{0x[0-9]+}} .file diff --git a/test/MC/COFF/linkonce.s b/test/MC/COFF/linkonce.s index 225a9e836ac..1fe1d6453be 100644 --- a/test/MC/COFF/linkonce.s +++ b/test/MC/COFF/linkonce.s @@ -1,7 +1,7 @@ // Test section manipulation via .linkonce directive. // -// RUN: llvm-mc -triple i386-pc-win32 -filetype=obj %s | llvm-readobj -S --symbols | FileCheck %s -// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj -S --symbols | FileCheck %s +// RUN: llvm-mc -triple i386-pc-win32 -filetype=obj %s | llvm-readobj -S --symbols - | FileCheck %s +// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj -S --symbols - | FileCheck %s .section s1 .linkonce diff --git a/test/MC/COFF/module-asm.ll b/test/MC/COFF/module-asm.ll index 900694e0532..3033b1b4824 100644 --- a/test/MC/COFF/module-asm.ll +++ b/test/MC/COFF/module-asm.ll @@ -1,8 +1,8 @@ ; The purpose of this test is to verify that various module level assembly ; constructs work. -; RUN: llc -filetype=obj -mtriple i686-pc-win32 %s -o - | llvm-readobj -S --sd | FileCheck %s -; RUN: llc -filetype=obj -mtriple x86_64-pc-win32 %s -o - | llvm-readobj -S --sd | FileCheck %s +; RUN: llc -filetype=obj -mtriple i686-pc-win32 %s -o - | llvm-readobj -S --sd - | FileCheck %s +; RUN: llc -filetype=obj -mtriple x86_64-pc-win32 %s -o - | llvm-readobj -S --sd - | FileCheck %s module asm ".text" module asm "_foo:" diff --git a/test/MC/COFF/offset.s b/test/MC/COFF/offset.s index bd5e9309f0a..a7e6da0203a 100644 --- a/test/MC/COFF/offset.s +++ b/test/MC/COFF/offset.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s -o - | llvm-readobj --symbols -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s -o - | llvm-readobj --symbols -r - | FileCheck %s .data .globl test1_foo diff --git a/test/MC/COFF/pr23025.s b/test/MC/COFF/pr23025.s index f0d007543a4..19ce8a01497 100644 --- a/test/MC/COFF/pr23025.s +++ b/test/MC/COFF/pr23025.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-windows-msvc < %s | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-windows-msvc < %s | llvm-readobj -r - | FileCheck %s // CHECK: Relocations [ // CHECK-NEXT: Section {{.*}} .text { diff --git a/test/MC/COFF/pr28462.s b/test/MC/COFF/pr28462.s index 4289d7b2abb..ff0eea31f8a 100644 --- a/test/MC/COFF/pr28462.s +++ b/test/MC/COFF/pr28462.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple i686-pc-windows-msvc < %s | llvm-readobj -S --section-data | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-windows-msvc < %s | llvm-readobj -S --section-data - | FileCheck %s .text .set var, 42 diff --git a/test/MC/COFF/secidx.s b/test/MC/COFF/secidx.s index 736cb8c80a8..588dd261265 100644 --- a/test/MC/COFF/secidx.s +++ b/test/MC/COFF/secidx.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj -S --sr | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj -S --sr - | FileCheck %s // check that we produce the correct relocation for .secidx diff --git a/test/MC/COFF/secrel-variant.s b/test/MC/COFF/secrel-variant.s index 1061bd404ea..0382018d807 100644 --- a/test/MC/COFF/secrel-variant.s +++ b/test/MC/COFF/secrel-variant.s @@ -1,6 +1,6 @@ // COFF section-relative relocations -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj -r - | FileCheck %s .data values: diff --git a/test/MC/COFF/secrel32.s b/test/MC/COFF/secrel32.s index d3d59f750f0..ec67d79d271 100644 --- a/test/MC/COFF/secrel32.s +++ b/test/MC/COFF/secrel32.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj -S --sr | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj -S --sr - | FileCheck %s // check that we produce the correct relocation for .secrel32 diff --git a/test/MC/COFF/section-comdat.s b/test/MC/COFF/section-comdat.s index 1f59539a383..a7803b1f25b 100644 --- a/test/MC/COFF/section-comdat.s +++ b/test/MC/COFF/section-comdat.s @@ -1,5 +1,5 @@ -// RUN: llvm-mc -triple i386-pc-win32 -filetype=obj %s | llvm-readobj -S --symbols | FileCheck %s -// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj -S --symbols | FileCheck %s +// RUN: llvm-mc -triple i386-pc-win32 -filetype=obj %s | llvm-readobj -S --symbols - | FileCheck %s +// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj -S --symbols - | FileCheck %s .section assocSec, "dr", discard, "assocSym" .global assocSym diff --git a/test/MC/COFF/section-name-encoding.s b/test/MC/COFF/section-name-encoding.s index 09dd02000c3..2a5240e7ad0 100644 --- a/test/MC/COFF/section-name-encoding.s +++ b/test/MC/COFF/section-name-encoding.s @@ -5,7 +5,7 @@ // (8, 999999]: base 10 string table index (/9999999) // (999999, 0xFFFFFFFF]: base 64 string table index (//AAAAAA) // -// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj -S - | FileCheck %s // Raw encoding diff --git a/test/MC/COFF/section.s b/test/MC/COFF/section.s index 5116d179f16..05203c883f1 100644 --- a/test/MC/COFF/section.s +++ b/test/MC/COFF/section.s @@ -1,5 +1,5 @@ -// RUN: llvm-mc -triple i386-pc-win32 -filetype=obj %s | llvm-readobj -S | FileCheck %s -// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -triple i386-pc-win32 -filetype=obj %s | llvm-readobj -S - | FileCheck %s +// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj -S - | FileCheck %s .section .foo$bar; .long 1 .section .foo@bar; .long 1 diff --git a/test/MC/COFF/seh-align1.s b/test/MC/COFF/seh-align1.s index 09ee7697c4f..ead6a350246 100644 --- a/test/MC/COFF/seh-align1.s +++ b/test/MC/COFF/seh-align1.s @@ -1,6 +1,6 @@ // This test checks the alignment and padding of the unwind info. -// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj -S --sd --sr -u | FileCheck %s +// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj -S --sd --sr -u - | FileCheck %s // CHECK: Sections [ // CHECK: Section { diff --git a/test/MC/COFF/seh-align2.s b/test/MC/COFF/seh-align2.s index fab1c30d0e5..31b927380f7 100644 --- a/test/MC/COFF/seh-align2.s +++ b/test/MC/COFF/seh-align2.s @@ -1,6 +1,6 @@ // This test checks the alignment and padding of the unwind info. -// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj -S --sd --sr -u | FileCheck %s +// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj -S --sd --sr -u - | FileCheck %s // CHECK: Sections [ // CHECK: Section { diff --git a/test/MC/COFF/seh-align3.s b/test/MC/COFF/seh-align3.s index 7b8331a71d6..cc57fbbd220 100644 --- a/test/MC/COFF/seh-align3.s +++ b/test/MC/COFF/seh-align3.s @@ -1,6 +1,6 @@ // This test checks the alignment and padding of the unwind info. -// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj -S --sd --sr -u | FileCheck %s +// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj -S --sd --sr -u - | FileCheck %s // CHECK: Sections [ // CHECK: Section { diff --git a/test/MC/COFF/seh-linkonce.s b/test/MC/COFF/seh-linkonce.s index 675b5395b72..52feca02038 100644 --- a/test/MC/COFF/seh-linkonce.s +++ b/test/MC/COFF/seh-linkonce.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj --sections --section-symbols | FileCheck %s +// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj --sections --section-symbols - | FileCheck %s .text .def weak_func; diff --git a/test/MC/COFF/seh-section-2.s b/test/MC/COFF/seh-section-2.s index b9105829648..390a20b3e4f 100644 --- a/test/MC/COFF/seh-section-2.s +++ b/test/MC/COFF/seh-section-2.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj --symbols | FileCheck %s +# RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj --symbols - | FileCheck %s # This assembly should make an object with two .text sections, two .xdata # sections, and two .pdata sections. diff --git a/test/MC/COFF/seh-section.s b/test/MC/COFF/seh-section.s index 7d3609d327a..7bdc11e7723 100644 --- a/test/MC/COFF/seh-section.s +++ b/test/MC/COFF/seh-section.s @@ -1,6 +1,6 @@ // This test ensures functions in custom sections get unwind info emitted in a // distinct .xdata section. -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj -S --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj -S --sd - | FileCheck %s // CHECK: Name: .xdata // CHECK-NEXT: VirtualSize diff --git a/test/MC/COFF/seh.s b/test/MC/COFF/seh.s index 11e4c9c362b..65bc79a55fd 100644 --- a/test/MC/COFF/seh.s +++ b/test/MC/COFF/seh.s @@ -1,6 +1,6 @@ // This test checks that the SEH directives emit the correct unwind data. -// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj -S -u -r | FileCheck %s +// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj -S -u -r - | FileCheck %s // CHECK: Sections [ // CHECK: Section { diff --git a/test/MC/COFF/simple-fixups.s b/test/MC/COFF/simple-fixups.s index 77dd47b3059..a6dcadb7fec 100644 --- a/test/MC/COFF/simple-fixups.s +++ b/test/MC/COFF/simple-fixups.s @@ -2,8 +2,8 @@ // references to functions. Failing to do so might cause pointer-to-function // equality to fail if /INCREMENTAL links are used. -// RUN: llvm-mc -filetype=obj -incremental-linker-compatible -triple i686-pc-win32 %s | llvm-readobj -S | FileCheck %s -// RUN: llvm-mc -filetype=obj -incremental-linker-compatible -triple x86_64-pc-win32 %s | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -filetype=obj -incremental-linker-compatible -triple i686-pc-win32 %s | llvm-readobj -S - | FileCheck %s +// RUN: llvm-mc -filetype=obj -incremental-linker-compatible -triple x86_64-pc-win32 %s | llvm-readobj -S - | FileCheck %s .def _foo; .scl 2; diff --git a/test/MC/COFF/symbol-alias.s b/test/MC/COFF/symbol-alias.s index a20651b690f..888da3f7e12 100644 --- a/test/MC/COFF/symbol-alias.s +++ b/test/MC/COFF/symbol-alias.s @@ -2,8 +2,8 @@ // (@foo: alias @bar) generate the correct entries in the symbol table. // They should be identical except for the name. -// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj --symbols | FileCheck %s -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj --symbols - | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj --symbols - | FileCheck %s .def _foo; .scl 2; diff --git a/test/MC/COFF/symbol-fragment-offset-64.s b/test/MC/COFF/symbol-fragment-offset-64.s index 932d3c46a96..634113b40f9 100644 --- a/test/MC/COFF/symbol-fragment-offset-64.s +++ b/test/MC/COFF/symbol-fragment-offset-64.s @@ -1,7 +1,7 @@ // The purpose of this test is to see if the COFF object writer is emitting the // proper relocations for multiple pieces of data in a single data fragment. -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj -h -S --sr --sd --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj -h -S --sr --sd --symbols - | FileCheck %s .def _main; .scl 2; diff --git a/test/MC/COFF/symbol-fragment-offset.s b/test/MC/COFF/symbol-fragment-offset.s index 8066229e1dc..cfca876bb7b 100644 --- a/test/MC/COFF/symbol-fragment-offset.s +++ b/test/MC/COFF/symbol-fragment-offset.s @@ -1,7 +1,7 @@ // The purpose of this test is to see if the COFF object writer is emitting the // proper relocations for multiple pieces of data in a single data fragment. -// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj -h -S --sr --sd --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj -h -S --sr --sd --symbols - | FileCheck %s .def _main; .scl 2; diff --git a/test/MC/COFF/timestamp.s b/test/MC/COFF/timestamp.s index 140225acf7e..b624baa4297 100644 --- a/test/MC/COFF/timestamp.s +++ b/test/MC/COFF/timestamp.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 -incremental-linker-compatible %s -o - | llvm-readobj -h | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 -incremental-linker-compatible %s -o - | llvm-readobj -h - | FileCheck %s // CHECK: ImageFileHeader { // CHECK: TimeDateStamp: diff --git a/test/MC/COFF/tricky-names.ll b/test/MC/COFF/tricky-names.ll index 55ba880eeaf..a320cf6dfce 100644 --- a/test/MC/COFF/tricky-names.ll +++ b/test/MC/COFF/tricky-names.ll @@ -4,8 +4,8 @@ ; Check that we can roundtrip these names through our assembler, ; in both at&t and intel syntax. -; RUN: llc -mtriple=i686-pc-win32 %s -o - | llvm-mc -triple i686-pc-win32 -filetype=obj | llvm-readobj --symbols | FileCheck %s --check-prefix=READOBJ -; RUN: llc -mtriple=i686-pc-win32 -x86-asm-syntax=intel %s -o - | llvm-mc -triple i686-pc-win32 -filetype=obj | llvm-readobj --symbols | FileCheck %s --check-prefix=READOBJ +; RUN: llc -mtriple=i686-pc-win32 %s -o - | llvm-mc -triple i686-pc-win32 -filetype=obj | llvm-readobj --symbols - | FileCheck %s --check-prefix=READOBJ +; RUN: llc -mtriple=i686-pc-win32 -x86-asm-syntax=intel %s -o - | llvm-mc -triple i686-pc-win32 -filetype=obj | llvm-readobj --symbols - | FileCheck %s --check-prefix=READOBJ @"\01??__E_Generic_object@?$_Error_objects@H@std@@YAXXZ" = global i32 0 diff --git a/test/MC/COFF/weak.s b/test/MC/COFF/weak.s index 6eefdd8dcd1..5a0c3a32192 100644 --- a/test/MC/COFF/weak.s +++ b/test/MC/COFF/weak.s @@ -1,8 +1,8 @@ // This tests that default-null weak symbols (a GNU extension) are created // properly via the .weak directive. -// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj --symbols | FileCheck %s -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj --symbols - | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj --symbols - | FileCheck %s .def _main; .scl 2; diff --git a/test/MC/ELF/ARM/clang-section.s b/test/MC/ELF/ARM/clang-section.s index 12cb57ffcc9..d79aa225d71 100644 --- a/test/MC/ELF/ARM/clang-section.s +++ b/test/MC/ELF/ARM/clang-section.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple arm-eabi %s -o - | llvm-readobj -S --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple arm-eabi %s -o - | llvm-readobj -S --symbols - | FileCheck %s // Test that global variables and functions are assigned correct section. .text .syntax unified diff --git a/test/MC/ELF/ARM/execute-only-populated-text-section.s b/test/MC/ELF/ARM/execute-only-populated-text-section.s index 57c80465679..ddf647e1963 100644 --- a/test/MC/ELF/ARM/execute-only-populated-text-section.s +++ b/test/MC/ELF/ARM/execute-only-populated-text-section.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -filetype=obj -triple thumbv7m-arm-linux-gnu %s -o - \ -// RUN: | llvm-readobj -S --symbols | FileCheck %s +// RUN: | llvm-readobj -S --symbols - | FileCheck %s .text bx lr diff --git a/test/MC/ELF/ARM/execute-only-section.s b/test/MC/ELF/ARM/execute-only-section.s index 75b7ab8d304..12020e030cc 100644 --- a/test/MC/ELF/ARM/execute-only-section.s +++ b/test/MC/ELF/ARM/execute-only-section.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -filetype=obj -triple thumbv7m-arm-linux-gnu %s -o - \ -// RUN: | llvm-readobj -S --symbols | FileCheck %s +// RUN: | llvm-readobj -S --symbols - | FileCheck %s .section .text,"axy",%progbits,unique,0 .globl foo diff --git a/test/MC/ELF/ARM/execute-only-text-section-data.s b/test/MC/ELF/ARM/execute-only-text-section-data.s index 4845dc2ce17..c8bd82e7d52 100644 --- a/test/MC/ELF/ARM/execute-only-text-section-data.s +++ b/test/MC/ELF/ARM/execute-only-text-section-data.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -filetype=obj -triple thumbv7m-arm-linux-gnu %s -o - \ -// RUN: | llvm-readobj -S --symbols | FileCheck %s +// RUN: | llvm-readobj -S --symbols - | FileCheck %s .text .ascii "test" diff --git a/test/MC/ELF/abs.s b/test/MC/ELF/abs.s index 259757792aa..6cb28d56d11 100644 --- a/test/MC/ELF/abs.s +++ b/test/MC/ELF/abs.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols - | FileCheck %s // Test that zed will be an ABS symbol diff --git a/test/MC/ELF/addrsig.s b/test/MC/ELF/addrsig.s index 5d16d5b5a36..5e5827440c6 100644 --- a/test/MC/ELF/addrsig.s +++ b/test/MC/ELF/addrsig.s @@ -1,6 +1,6 @@ // RUN: llvm-mc -filetype=asm -triple x86_64-pc-linux-gnu %s -o - | FileCheck --check-prefix=ASM %s -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --symbols --sd --addrsig | FileCheck %s -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -split-dwarf-file %t.dwo -o - | llvm-readobj -S --symbols --sd --addrsig | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --symbols --sd --addrsig - | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -split-dwarf-file %t.dwo -o - | llvm-readobj -S --symbols --sd --addrsig - | FileCheck %s // RUN: llvm-readobj -S %t.dwo | FileCheck --check-prefix=DWO %s // CHECK: Name: .llvm_addrsig diff --git a/test/MC/ELF/alias-reloc.s b/test/MC/ELF/alias-reloc.s index 5c78a3b2f18..aeafe63a7bb 100644 --- a/test/MC/ELF/alias-reloc.s +++ b/test/MC/ELF/alias-reloc.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r --symbols - | FileCheck %s // Test that this produces a R_X86_64_PLT32 with bar. diff --git a/test/MC/ELF/alias-to-local.s b/test/MC/ELF/alias-to-local.s index 4983833b33a..5b6ac058c1e 100644 --- a/test/MC/ELF/alias-to-local.s +++ b/test/MC/ELF/alias-to-local.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu < %s | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu < %s | llvm-readobj -r - | FileCheck %s // CHECK: Relocations [ // CHECK-NEXT: Section {{.*}} .rela.text { diff --git a/test/MC/ELF/alias.s b/test/MC/ELF/alias.s index c125de3467c..0aefc522052 100644 --- a/test/MC/ELF/alias.s +++ b/test/MC/ELF/alias.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols - | FileCheck %s foo: bar = foo diff --git a/test/MC/ELF/align-bss.s b/test/MC/ELF/align-bss.s index 1a9191c34ef..9e9cd7d3aaf 100644 --- a/test/MC/ELF/align-bss.s +++ b/test/MC/ELF/align-bss.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S - | FileCheck %s // Test that the bss section is correctly aligned diff --git a/test/MC/ELF/align-nops.s b/test/MC/ELF/align-nops.s index 08e8660e4e8..41a007111f4 100644 --- a/test/MC/ELF/align-nops.s +++ b/test/MC/ELF/align-nops.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -mcpu=pentiumpro %s -o - | llvm-readobj -S --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -mcpu=pentiumpro %s -o - | llvm-readobj -S --sd - | FileCheck %s // Test that we get optimal nops in text .text diff --git a/test/MC/ELF/align-size.s b/test/MC/ELF/align-size.s index 2f5e74d1192..0e1e9495e65 100644 --- a/test/MC/ELF/align-size.s +++ b/test/MC/ELF/align-size.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S - | FileCheck %s // Test that the alignment does contribute to the size of the section. diff --git a/test/MC/ELF/align-text.s b/test/MC/ELF/align-text.s index 278102e26e3..893f782ceed 100644 --- a/test/MC/ELF/align-text.s +++ b/test/MC/ELF/align-text.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S - | FileCheck %s // Test that the .text directive doesn't cause alignment. diff --git a/test/MC/ELF/align.s b/test/MC/ELF/align.s index 27c97980e9d..d97ccb3ee92 100644 --- a/test/MC/ELF/align.s +++ b/test/MC/ELF/align.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S - | FileCheck %s // Test that the alignment of rodata doesn't force a alignment of the // previous section (.text) diff --git a/test/MC/ELF/basic-elf-32.s b/test/MC/ELF/basic-elf-32.s index f2303e183da..effc363d1c6 100644 --- a/test/MC/ELF/basic-elf-32.s +++ b/test/MC/ELF/basic-elf-32.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj -h -S -r --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj -h -S -r --symbols - | FileCheck %s .text .globl main diff --git a/test/MC/ELF/basic-elf-64.s b/test/MC/ELF/basic-elf-64.s index 1bc8c5ab6a2..219f1471822 100644 --- a/test/MC/ELF/basic-elf-64.s +++ b/test/MC/ELF/basic-elf-64.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -h -S -r --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -h -S -r --symbols - | FileCheck %s .text .globl main diff --git a/test/MC/ELF/call-abs.s b/test/MC/ELF/call-abs.s index 145b9a7da2f..bdb3ba050c0 100644 --- a/test/MC/ELF/call-abs.s +++ b/test/MC/ELF/call-abs.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj -r - | FileCheck %s .text .globl f diff --git a/test/MC/ELF/cfi-adjust-cfa-offset.s b/test/MC/ELF/cfi-adjust-cfa-offset.s index e935dcbefc4..2b41b2f6a4f 100644 --- a/test/MC/ELF/cfi-adjust-cfa-offset.s +++ b/test/MC/ELF/cfi-adjust-cfa-offset.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd - | FileCheck %s f: .cfi_startproc diff --git a/test/MC/ELF/cfi-advance-loc2.s b/test/MC/ELF/cfi-advance-loc2.s index aa5f9ddcbf4..9226200e63a 100644 --- a/test/MC/ELF/cfi-advance-loc2.s +++ b/test/MC/ELF/cfi-advance-loc2.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd - | FileCheck %s // test that this produces a correctly encoded cfi_advance_loc2 diff --git a/test/MC/ELF/cfi-def-cfa-offset.s b/test/MC/ELF/cfi-def-cfa-offset.s index 5b71c64555a..2d788c18a39 100644 --- a/test/MC/ELF/cfi-def-cfa-offset.s +++ b/test/MC/ELF/cfi-def-cfa-offset.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd - | FileCheck %s f: .cfi_startproc diff --git a/test/MC/ELF/cfi-def-cfa-register.s b/test/MC/ELF/cfi-def-cfa-register.s index 220e3cba08f..957b56c35cd 100644 --- a/test/MC/ELF/cfi-def-cfa-register.s +++ b/test/MC/ELF/cfi-def-cfa-register.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd - | FileCheck %s f: .cfi_startproc diff --git a/test/MC/ELF/cfi-def-cfa.s b/test/MC/ELF/cfi-def-cfa.s index 67aa3a65fef..6003327da17 100644 --- a/test/MC/ELF/cfi-def-cfa.s +++ b/test/MC/ELF/cfi-def-cfa.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd - | FileCheck %s f: .cfi_startproc diff --git a/test/MC/ELF/cfi-escape.s b/test/MC/ELF/cfi-escape.s index 620d1538716..92229a7a581 100644 --- a/test/MC/ELF/cfi-escape.s +++ b/test/MC/ELF/cfi-escape.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd - | FileCheck %s f: .cfi_startproc diff --git a/test/MC/ELF/cfi-large-model.s b/test/MC/ELF/cfi-large-model.s index 444f38af029..cee8d14d6b0 100644 --- a/test/MC/ELF/cfi-large-model.s +++ b/test/MC/ELF/cfi-large-model.s @@ -1,9 +1,9 @@ // REQUIRES: powerpc-registered-target // REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -large-code-model %s \ -// RUN: -o - | llvm-readobj -S --sd | FileCheck --check-prefix=CHECK-X86 %s +// RUN: -o - | llvm-readobj -S --sd - | FileCheck --check-prefix=CHECK-X86 %s // RUN: llvm-mc -filetype=obj -triple powerpc64le-linux-gnu -large-code-model %s \ -// RUN: -o - | llvm-readobj -S --sd | FileCheck --check-prefix=CHECK-PPC %s +// RUN: -o - | llvm-readobj -S --sd - | FileCheck --check-prefix=CHECK-PPC %s // CHECK-X86: Section { diff --git a/test/MC/ELF/cfi-offset.s b/test/MC/ELF/cfi-offset.s index be571b4a49b..efb8dbe84df 100644 --- a/test/MC/ELF/cfi-offset.s +++ b/test/MC/ELF/cfi-offset.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd - | FileCheck %s f: .cfi_startproc diff --git a/test/MC/ELF/cfi-register.s b/test/MC/ELF/cfi-register.s index 89400cd9a78..34aaf4a3798 100644 --- a/test/MC/ELF/cfi-register.s +++ b/test/MC/ELF/cfi-register.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd - | FileCheck %s f: .cfi_startproc diff --git a/test/MC/ELF/cfi-rel-offset.s b/test/MC/ELF/cfi-rel-offset.s index 1c877b3e293..649f8e21b97 100644 --- a/test/MC/ELF/cfi-rel-offset.s +++ b/test/MC/ELF/cfi-rel-offset.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd - | FileCheck %s f: .cfi_startproc diff --git a/test/MC/ELF/cfi-rel-offset2.s b/test/MC/ELF/cfi-rel-offset2.s index 34a667c3091..d5909112599 100644 --- a/test/MC/ELF/cfi-rel-offset2.s +++ b/test/MC/ELF/cfi-rel-offset2.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd - | FileCheck %s f: .cfi_startproc diff --git a/test/MC/ELF/cfi-remember.s b/test/MC/ELF/cfi-remember.s index d1629d1a508..ae842edc766 100644 --- a/test/MC/ELF/cfi-remember.s +++ b/test/MC/ELF/cfi-remember.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd - | FileCheck %s f: .cfi_startproc diff --git a/test/MC/ELF/cfi-restore.s b/test/MC/ELF/cfi-restore.s index 79be928e72a..bbf339f7fdd 100644 --- a/test/MC/ELF/cfi-restore.s +++ b/test/MC/ELF/cfi-restore.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd - | FileCheck %s f: .cfi_startproc diff --git a/test/MC/ELF/cfi-same-value.s b/test/MC/ELF/cfi-same-value.s index dc343999944..8e3abc9a040 100644 --- a/test/MC/ELF/cfi-same-value.s +++ b/test/MC/ELF/cfi-same-value.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd - | FileCheck %s f: .cfi_startproc diff --git a/test/MC/ELF/cfi-sections.s b/test/MC/ELF/cfi-sections.s index ea22eb6e1d1..52f01ec9335 100644 --- a/test/MC/ELF/cfi-sections.s +++ b/test/MC/ELF/cfi-sections.s @@ -1,11 +1,11 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -dwarf-version 2 %s -o - | llvm-readobj -S --sd | FileCheck -check-prefix=ELF_64 -check-prefix=ELF_64_DWARF_2 %s -// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu -dwarf-version 2 %s -o - | llvm-readobj -S --sd | FileCheck -check-prefix=ELF_32 -check-prefix=ELF_32_DWARF_2 %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -dwarf-version 2 %s -o - | llvm-readobj -S --sd - | FileCheck -check-prefix=ELF_64 -check-prefix=ELF_64_DWARF_2 %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu -dwarf-version 2 %s -o - | llvm-readobj -S --sd - | FileCheck -check-prefix=ELF_32 -check-prefix=ELF_32_DWARF_2 %s -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -dwarf-version 3 %s -o - | llvm-readobj -S --sd | FileCheck -check-prefix=ELF_64 -check-prefix=ELF_64_DWARF_3 %s -// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu -dwarf-version 3 %s -o - | llvm-readobj -S --sd | FileCheck -check-prefix=ELF_32 -check-prefix=ELF_32_DWARF_3 %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -dwarf-version 3 %s -o - | llvm-readobj -S --sd - | FileCheck -check-prefix=ELF_64 -check-prefix=ELF_64_DWARF_3 %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu -dwarf-version 3 %s -o - | llvm-readobj -S --sd - | FileCheck -check-prefix=ELF_32 -check-prefix=ELF_32_DWARF_3 %s -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -dwarf-version 4 %s -o - | llvm-readobj -S --sd | FileCheck -check-prefix=ELF_64 -check-prefix=ELF_64_DWARF_4 %s -// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu -dwarf-version 4 %s -o - | llvm-readobj -S --sd | FileCheck -check-prefix=ELF_32 -check-prefix=ELF_32_DWARF_4 %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -dwarf-version 4 %s -o - | llvm-readobj -S --sd - | FileCheck -check-prefix=ELF_64 -check-prefix=ELF_64_DWARF_4 %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu -dwarf-version 4 %s -o - | llvm-readobj -S --sd - | FileCheck -check-prefix=ELF_32 -check-prefix=ELF_32_DWARF_4 %s .cfi_sections .debug_frame diff --git a/test/MC/ELF/cfi-signal-frame.s b/test/MC/ELF/cfi-signal-frame.s index 17d3f6afbf0..9844f0b1b7f 100644 --- a/test/MC/ELF/cfi-signal-frame.s +++ b/test/MC/ELF/cfi-signal-frame.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s f: .cfi_startproc diff --git a/test/MC/ELF/cfi-undefined.s b/test/MC/ELF/cfi-undefined.s index dc615bd02bb..ebeb16afbd3 100644 --- a/test/MC/ELF/cfi-undefined.s +++ b/test/MC/ELF/cfi-undefined.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd - | FileCheck %s f: .cfi_startproc diff --git a/test/MC/ELF/cfi-window-save.s b/test/MC/ELF/cfi-window-save.s index 7eb3ae2f98e..879c02a3480 100644 --- a/test/MC/ELF/cfi-window-save.s +++ b/test/MC/ELF/cfi-window-save.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd - | FileCheck %s # Should use SPARC as the target to test this. However, SPARC does not # use MC yet. diff --git a/test/MC/ELF/cfi-zero-addr-delta.s b/test/MC/ELF/cfi-zero-addr-delta.s index 81d16987d58..09411051537 100644 --- a/test/MC/ELF/cfi-zero-addr-delta.s +++ b/test/MC/ELF/cfi-zero-addr-delta.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd - | FileCheck %s // Test that we don't produce a DW_CFA_advance_loc 0 diff --git a/test/MC/ELF/cfi.s b/test/MC/ELF/cfi.s index b11cd8a00b2..8f26eaddbbf 100644 --- a/test/MC/ELF/cfi.s +++ b/test/MC/ELF/cfi.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd - | FileCheck %s f1: .cfi_startproc diff --git a/test/MC/ELF/cgprofile.s b/test/MC/ELF/cgprofile.s index ac2a2d2b111..941bf7731f6 100644 --- a/test/MC/ELF/cgprofile.s +++ b/test/MC/ELF/cgprofile.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --symbols --sd --cg-profile | FileCheck %s +# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --symbols --sd --cg-profile - | FileCheck %s .section .test,"aw",@progbits a: .word b diff --git a/test/MC/ELF/comdat-reloc.s b/test/MC/ELF/comdat-reloc.s index 7eff043bede..e4bc84778ec 100644 --- a/test/MC/ELF/comdat-reloc.s +++ b/test/MC/ELF/comdat-reloc.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s .text .globl hello diff --git a/test/MC/ELF/comdat.s b/test/MC/ELF/comdat.s index 446f52c54b5..e5862fab952 100644 --- a/test/MC/ELF/comdat.s +++ b/test/MC/ELF/comdat.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --symbols --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --symbols --sd - | FileCheck %s // Test that we produce the group sections and that they are before the members diff --git a/test/MC/ELF/common.s b/test/MC/ELF/common.s index b819f1c692e..016c1f8ca6f 100644 --- a/test/MC/ELF/common.s +++ b/test/MC/ELF/common.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols - | FileCheck %s .text diff --git a/test/MC/ELF/common2.s b/test/MC/ELF/common2.s index 54a27b05b23..ad3998b2cf6 100644 --- a/test/MC/ELF/common2.s +++ b/test/MC/ELF/common2.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S - | FileCheck %s // Test local common construction. // Unlike gas, common symbols are created when found, not at the end of .bss. diff --git a/test/MC/ELF/debug-line.s b/test/MC/ELF/debug-line.s index 89f07803f4b..06cb2dcee2d 100644 --- a/test/MC/ELF/debug-line.s +++ b/test/MC/ELF/debug-line.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s // Test that .debug_line is populated. TODO: This test should really be using // llvm-dwarfdump, but it cannot parse this particular object file. The content diff --git a/test/MC/ELF/debug-line2.s b/test/MC/ELF/debug-line2.s index 3c8b73092c5..50fbf4abe6f 100644 --- a/test/MC/ELF/debug-line2.s +++ b/test/MC/ELF/debug-line2.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s // Test that two subsequent .loc directives generate two // distinct line table entries. diff --git a/test/MC/ELF/debug-loc.s b/test/MC/ELF/debug-loc.s index 841c05c2b71..13cafbce66e 100644 --- a/test/MC/ELF/debug-loc.s +++ b/test/MC/ELF/debug-loc.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S - | FileCheck %s // Test that we don't regress on the size of the line info section. We used // to handle negative line diffs incorrectly which manifested as very diff --git a/test/MC/ELF/diff.s b/test/MC/ELF/diff.s index 54365106696..aced5ff6da5 100644 --- a/test/MC/ELF/diff.s +++ b/test/MC/ELF/diff.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r - | FileCheck %s .global zed foo: diff --git a/test/MC/ELF/dot-symbol-assignment.s b/test/MC/ELF/dot-symbol-assignment.s index 6f15100ff61..5b87fe66364 100644 --- a/test/MC/ELF/dot-symbol-assignment.s +++ b/test/MC/ELF/dot-symbol-assignment.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --sections --section-data | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --sections --section-data - | FileCheck %s one: .quad 0xffffffffffffffff diff --git a/test/MC/ELF/empty-dwarf-lines.s b/test/MC/ELF/empty-dwarf-lines.s index e6ce76280aa..d694ea9f26b 100644 --- a/test/MC/ELF/empty-dwarf-lines.s +++ b/test/MC/ELF/empty-dwarf-lines.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S - | FileCheck %s // Test that the dwarf debug_line section contains no line directives. diff --git a/test/MC/ELF/empty.s b/test/MC/ELF/empty.s index bc5c80a2181..1592f0d7d3c 100644 --- a/test/MC/ELF/empty.s +++ b/test/MC/ELF/empty.s @@ -1,6 +1,6 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S | FileCheck %s -// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin14.0.0-elf %s -o - | llvm-readobj -S | FileCheck %s -check-prefix=DARWIN -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32-elf %s -o - | llvm-readobj -S | FileCheck %s -check-prefix=WINDOWS +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S - | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin14.0.0-elf %s -o - | llvm-readobj -S - | FileCheck %s -check-prefix=DARWIN +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32-elf %s -o - | llvm-readobj -S - | FileCheck %s -check-prefix=WINDOWS // Check that we can create ELF files for darwin/windows, even though // it is not the default file format. diff --git a/test/MC/ELF/entsize.ll b/test/MC/ELF/entsize.ll index 36f7ab7688d..b340fdbcebd 100644 --- a/test/MC/ELF/entsize.ll +++ b/test/MC/ELF/entsize.ll @@ -1,4 +1,4 @@ -; RUN: llc -filetype=obj -mtriple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S | FileCheck -check-prefix=64 %s +; RUN: llc -filetype=obj -mtriple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S - | FileCheck -check-prefix=64 %s ; Test that constant mergeable strings have sh_entsize set. diff --git a/test/MC/ELF/entsize.s b/test/MC/ELF/entsize.s index 856fdcb3390..a371c3b8312 100644 --- a/test/MC/ELF/entsize.s +++ b/test/MC/ELF/entsize.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S - | FileCheck %s // Test that mergeable constants have sh_entsize set. diff --git a/test/MC/ELF/file-double.s b/test/MC/ELF/file-double.s index 206712f6a15..6d3fae27b0b 100644 --- a/test/MC/ELF/file-double.s +++ b/test/MC/ELF/file-double.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols - | FileCheck %s // Test that a STT_FILE symbol and a symbol of the same name can coexist. diff --git a/test/MC/ELF/file.s b/test/MC/ELF/file.s index ddb0ed77ff7..90b379772f3 100644 --- a/test/MC/ELF/file.s +++ b/test/MC/ELF/file.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols - | FileCheck %s // Test that the STT_FILE symbol precedes the other local symbols. diff --git a/test/MC/ELF/gen-dwarf.s b/test/MC/ELF/gen-dwarf.s index 2f77c4b73af..dc70bf9bc6b 100644 --- a/test/MC/ELF/gen-dwarf.s +++ b/test/MC/ELF/gen-dwarf.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -g -dwarf-version 2 -triple i686-pc-linux-gnu %s -filetype=obj -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -g -dwarf-version 2 -triple i686-pc-linux-gnu %s -filetype=obj -o - | llvm-readobj -r - | FileCheck %s // RUN: not llvm-mc -g -dwarf-version 1 -triple i686-pc-linux-gnu %s -filetype=asm -o - 2>&1 | FileCheck --check-prefix=DWARF1 %s // RUN: llvm-mc -g -dwarf-version 2 -triple i686-pc-linux-gnu %s -filetype=asm -o - | FileCheck --check-prefix=ASM --check-prefix=DWARF2 %s // RUN: llvm-mc -g -dwarf-version 3 -triple i686-pc-linux-gnu %s -filetype=asm -o - | FileCheck --check-prefix=ASM --check-prefix=DWARF3 %s diff --git a/test/MC/ELF/global-offset.s b/test/MC/ELF/global-offset.s index 3e5d8ac1431..085e60956b4 100644 --- a/test/MC/ELF/global-offset.s +++ b/test/MC/ELF/global-offset.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple i386-pc-linux-gnu %s -o - | llvm-readobj -S --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i386-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s // We test that _GLOBAL_OFFSET_TABLE_ will account for the two bytes at the // start of the addl/leal. diff --git a/test/MC/ELF/got-relaxed-i386.s b/test/MC/ELF/got-relaxed-i386.s index 927066c68f2..465b6fa07f6 100644 --- a/test/MC/ELF/got-relaxed-i386.s +++ b/test/MC/ELF/got-relaxed-i386.s @@ -1,5 +1,5 @@ -// RUN: llvm-mc -filetype=obj -triple i386-pc-linux %s -o - | llvm-readobj -r | FileCheck %s -// RUN: llvm-mc -filetype=obj -relax-relocations=false -triple i386-pc-linux %s -o - | llvm-readobj -r | FileCheck --check-prefix=OLD %s +// RUN: llvm-mc -filetype=obj -triple i386-pc-linux %s -o - | llvm-readobj -r - | FileCheck %s +// RUN: llvm-mc -filetype=obj -relax-relocations=false -triple i386-pc-linux %s -o - | llvm-readobj -r - | FileCheck --check-prefix=OLD %s movl mov@GOT(%ebx), %eax mull mul@GOT(%ebx) diff --git a/test/MC/ELF/got-relaxed-no-relax.s b/test/MC/ELF/got-relaxed-no-relax.s index 69511cd78cd..382639d10c9 100644 --- a/test/MC/ELF/got-relaxed-no-relax.s +++ b/test/MC/ELF/got-relaxed-no-relax.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o - | llvm-readobj -r - | FileCheck %s // these should not produce relaxable relocations diff --git a/test/MC/ELF/got-relaxed-rex.s b/test/MC/ELF/got-relaxed-rex.s index d35afaab3e5..e694d7431ba 100644 --- a/test/MC/ELF/got-relaxed-rex.s +++ b/test/MC/ELF/got-relaxed-rex.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o - | llvm-readobj -r - | FileCheck %s // these should produce R_X86_64_REX_GOTPCRELX diff --git a/test/MC/ELF/got-relaxed.s b/test/MC/ELF/got-relaxed.s index c89e462095d..2ac34a8c213 100644 --- a/test/MC/ELF/got-relaxed.s +++ b/test/MC/ELF/got-relaxed.s @@ -1,5 +1,5 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o - | llvm-readobj -r | FileCheck %s -// RUN: llvm-mc -filetype=obj -relax-relocations=false -triple x86_64-pc-linux %s -o - | llvm-readobj -r | FileCheck --check-prefix=OLD %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o - | llvm-readobj -r - | FileCheck %s +// RUN: llvm-mc -filetype=obj -relax-relocations=false -triple x86_64-pc-linux %s -o - | llvm-readobj -r - | FileCheck --check-prefix=OLD %s // these should produce R_X86_64_GOTPCRELX diff --git a/test/MC/ELF/got.s b/test/MC/ELF/got.s index 73080e9ad69..7d8e4d059b9 100644 --- a/test/MC/ELF/got.s +++ b/test/MC/ELF/got.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r --symbols - | FileCheck %s // Test that this produces the correct relocations R_X86_64_GOT32 and that we, // unlike gas, don't create a _GLOBAL_OFFSET_TABLE_ symbol as a side effect. diff --git a/test/MC/ELF/ident.s b/test/MC/ELF/ident.s index e7df90b9b37..5667aafc551 100644 --- a/test/MC/ELF/ident.s +++ b/test/MC/ELF/ident.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s // CHECK: Section { // CHECK: Name: .comment diff --git a/test/MC/ELF/ifunc-alias.s b/test/MC/ELF/ifunc-alias.s index 1177a9e6ec4..6fd9845548e 100644 --- a/test/MC/ELF/ifunc-alias.s +++ b/test/MC/ELF/ifunc-alias.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readelf -s | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readelf -s - | FileCheck %s .text .type foo_impl,@function diff --git a/test/MC/ELF/ifunc-reloc.s b/test/MC/ELF/ifunc-reloc.s index 101e6b83f84..726fa2a3b75 100644 --- a/test/MC/ELF/ifunc-reloc.s +++ b/test/MC/ELF/ifunc-reloc.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r | FileCheck %s +# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r - | FileCheck %s .global alias .type alias, @function alias: diff --git a/test/MC/ELF/lcomm.s b/test/MC/ELF/lcomm.s index 88c2fae5a06..c270027cda0 100644 --- a/test/MC/ELF/lcomm.s +++ b/test/MC/ELF/lcomm.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-pc-linux-gnu %s -filetype=obj -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -triple i386-pc-linux-gnu %s -filetype=obj -o - | llvm-readobj --symbols - | FileCheck %s .lcomm A, 5 .lcomm B, 32 << 20 diff --git a/test/MC/ELF/leb128.s b/test/MC/ELF/leb128.s index 87cdd33f414..ffde8218413 100644 --- a/test/MC/ELF/leb128.s +++ b/test/MC/ELF/leb128.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s .sleb128 .Lfoo - .Lbar .Lfoo: diff --git a/test/MC/ELF/local-reloc.s b/test/MC/ELF/local-reloc.s index 91c4a40bc3e..5f8a2c816de 100644 --- a/test/MC/ELF/local-reloc.s +++ b/test/MC/ELF/local-reloc.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S -r --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S -r --symbols - | FileCheck %s // Test that relocations with local symbols are represented as relocations // with the section. They should be equivalent, but gas behaves like this. diff --git a/test/MC/ELF/merge.s b/test/MC/ELF/merge.s index e787728ae19..f70ab3b29cf 100644 --- a/test/MC/ELF/merge.s +++ b/test/MC/ELF/merge.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r - | FileCheck %s // Test that relocations with local symbols in a mergeable section are done // with a reference to the symbol if the offset is non zero. diff --git a/test/MC/ELF/n_bytes.s b/test/MC/ELF/n_bytes.s index 7ad1b10bb37..6df6a9fec73 100644 --- a/test/MC/ELF/n_bytes.s +++ b/test/MC/ELF/n_bytes.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s .2byte 42, 1, 2, 3 .4byte 42, 1, 2, 3 diff --git a/test/MC/ELF/no-reloc.s b/test/MC/ELF/no-reloc.s index 78f1b88cebb..b5d62402846 100644 --- a/test/MC/ELF/no-reloc.s +++ b/test/MC/ELF/no-reloc.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r - | FileCheck %s // CHECK: Relocations [ // CHECK-NEXT: ] diff --git a/test/MC/ELF/noexec.s b/test/MC/ELF/noexec.s index bfed7990b66..dbfa45c5f42 100644 --- a/test/MC/ELF/noexec.s +++ b/test/MC/ELF/noexec.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -no-exec-stack -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -no-exec-stack -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S - | FileCheck %s // CHECK: Section { // CHECK: Index: diff --git a/test/MC/ELF/norelocation.s b/test/MC/ELF/norelocation.s index 054fc5f95cb..ac9b961c611 100644 --- a/test/MC/ELF/norelocation.s +++ b/test/MC/ELF/norelocation.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r - | FileCheck %s call bar bar: diff --git a/test/MC/ELF/org.s b/test/MC/ELF/org.s index 665bddcc482..ec6264f823c 100644 --- a/test/MC/ELF/org.s +++ b/test/MC/ELF/org.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S - | FileCheck %s .zero 4 foo: diff --git a/test/MC/ELF/pic-diff.s b/test/MC/ELF/pic-diff.s index a3dd8247f31..a685824bcd7 100644 --- a/test/MC/ELF/pic-diff.s +++ b/test/MC/ELF/pic-diff.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r --symbols - | FileCheck %s // CHECK: Relocations [ // CHECK-NEXT: Section ({{[^ ]+}}) {{[^ ]+}} { diff --git a/test/MC/ELF/plt.s b/test/MC/ELF/plt.s index 604a4bf3a38..3c3cc76aef5 100644 --- a/test/MC/ELF/plt.s +++ b/test/MC/ELF/plt.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r - | FileCheck %s // Test that this produces a R_X86_64_PLT32. diff --git a/test/MC/ELF/pr19430.s b/test/MC/ELF/pr19430.s index 3ba6d729b4b..8ae0d8349e6 100644 --- a/test/MC/ELF/pr19430.s +++ b/test/MC/ELF/pr19430.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-pc-linux-gnu %s -filetype=obj -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -triple x86_64-pc-linux-gnu %s -filetype=obj -o - | llvm-readobj -r - | FileCheck %s // Test that we can use .cfi_startproc without a global symbol. diff --git a/test/MC/ELF/pr19582.s b/test/MC/ELF/pr19582.s index 304cacb2972..551dbd59e21 100644 --- a/test/MC/ELF/pr19582.s +++ b/test/MC/ELF/pr19582.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r - | FileCheck %s a: .section foo diff --git a/test/MC/ELF/pr9292.s b/test/MC/ELF/pr9292.s index f2f91fae23c..9c346fbe94c 100644 --- a/test/MC/ELF/pr9292.s +++ b/test/MC/ELF/pr9292.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols - | FileCheck %s // Test that both foo and bar are undefined. diff --git a/test/MC/ELF/reloc-same-name-section.s b/test/MC/ELF/reloc-same-name-section.s index 57463c65f89..a7f5c3cbfb2 100644 --- a/test/MC/ELF/reloc-same-name-section.s +++ b/test/MC/ELF/reloc-same-name-section.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o - | llvm-readobj -r --expand-relocs | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o - | llvm-readobj -r --expand-relocs - | FileCheck %s // test that we produce one relocation against each section. diff --git a/test/MC/ELF/relocation-386.s b/test/MC/ELF/relocation-386.s index d06cea9be9f..4273750a419 100644 --- a/test/MC/ELF/relocation-386.s +++ b/test/MC/ELF/relocation-386.s @@ -1,5 +1,5 @@ -// RUN: llvm-mc -filetype=obj -triple i386-pc-linux-gnu %s -relax-relocations=false -o - | llvm-readobj -r | FileCheck %s --check-prefix=CHECK --check-prefix=I386 -// RUN: llvm-mc -filetype=obj -triple i386-pc-elfiamcu %s -relax-relocations=false -o - | llvm-readobj -r | FileCheck %s --check-prefix=CHECK --check-prefix=IAMCU +// RUN: llvm-mc -filetype=obj -triple i386-pc-linux-gnu %s -relax-relocations=false -o - | llvm-readobj -r - | FileCheck %s --check-prefix=CHECK --check-prefix=I386 +// RUN: llvm-mc -filetype=obj -triple i386-pc-elfiamcu %s -relax-relocations=false -o - | llvm-readobj -r - | FileCheck %s --check-prefix=CHECK --check-prefix=IAMCU // Test that we produce the correct relocation types and that the relocations // correctly point to the section or the symbol. diff --git a/test/MC/ELF/relocation-pc.s b/test/MC/ELF/relocation-pc.s index 48bc55b2e0d..a74a438002b 100644 --- a/test/MC/ELF/relocation-pc.s +++ b/test/MC/ELF/relocation-pc.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr - | FileCheck %s // Test that we produce the correct relocation. diff --git a/test/MC/ELF/relocation.s b/test/MC/ELF/relocation.s index d3a53567fe0..d55e8acffc1 100644 --- a/test/MC/ELF/relocation.s +++ b/test/MC/ELF/relocation.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr - | FileCheck %s // Test that we produce the correct relocation. diff --git a/test/MC/ELF/rename.s b/test/MC/ELF/rename.s index 1169cd4a5f7..c5351a0be55 100644 --- a/test/MC/ELF/rename.s +++ b/test/MC/ELF/rename.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --symbols - | FileCheck %s // When doing a rename, all the checks for where the relocation should go // should be performed with the original symbol. Only if we decide to relocate diff --git a/test/MC/ELF/section-numeric-flag.s b/test/MC/ELF/section-numeric-flag.s index ebfffbce31c..62d44d49364 100644 --- a/test/MC/ELF/section-numeric-flag.s +++ b/test/MC/ELF/section-numeric-flag.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux-gnu %s -o - \ -// RUN: | llvm-readobj -S --symbols | FileCheck %s +// RUN: | llvm-readobj -S --symbols - | FileCheck %s .section .text, "0x806", %progbits, unique, 0 .section .comment, "0x21" diff --git a/test/MC/ELF/section-numeric-invalid-type.s b/test/MC/ELF/section-numeric-invalid-type.s index 0e721099ff7..fefc364d991 100644 --- a/test/MC/ELF/section-numeric-invalid-type.s +++ b/test/MC/ELF/section-numeric-invalid-type.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux-gnu %s -o - \ -// RUN: | llvm-readobj -S --symbols | FileCheck --check-prefix=OBJ %s +// RUN: | llvm-readobj -S --symbols - | FileCheck --check-prefix=OBJ %s // RUN: not --crash llvm-mc -filetype=asm -triple=x86_64-pc-linux-gnu %s -o - 2>&1 \ // RUN: | FileCheck --check-prefix=ASM %s diff --git a/test/MC/ELF/section-numeric-type.s b/test/MC/ELF/section-numeric-type.s index f8278bc9fb4..062dd6bf2a1 100644 --- a/test/MC/ELF/section-numeric-type.s +++ b/test/MC/ELF/section-numeric-type.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux-gnu %s -o - \ -// RUN: | llvm-readobj -S --symbols | FileCheck --check-prefix=OBJ %s +// RUN: | llvm-readobj -S --symbols - | FileCheck --check-prefix=OBJ %s // RUN: llvm-mc -filetype=asm -triple=x86_64-pc-linux-gnu %s -o - \ // RUN: | FileCheck --check-prefix=ASM %s diff --git a/test/MC/ELF/section-relro.ll b/test/MC/ELF/section-relro.ll index 27fc109dea5..ebc8b18e100 100644 --- a/test/MC/ELF/section-relro.ll +++ b/test/MC/ELF/section-relro.ll @@ -1,6 +1,6 @@ ; Tests that data and relro are correctly placed in sections ; specified by "#pragma clang section" -; RUN: llc -filetype=obj -mtriple x86_64-unknown-linux %s -o - | llvm-readobj -S -t | FileCheck %s +; RUN: llc -filetype=obj -mtriple x86_64-unknown-linux %s -o - | llvm-readobj -S -t - | FileCheck %s target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux" diff --git a/test/MC/ELF/section-sym.s b/test/MC/ELF/section-sym.s index c97de12f07f..e89b669bcb2 100644 --- a/test/MC/ELF/section-sym.s +++ b/test/MC/ELF/section-sym.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --symbols -r --expand-relocs | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --symbols -r --expand-relocs - | FileCheck %s .section foo, "aG", @progbits, f1, comdat .section foo, "G", @progbits, f2, comdat diff --git a/test/MC/ELF/section-sym2.s b/test/MC/ELF/section-sym2.s index e763c81d96e..b404ef79414 100644 --- a/test/MC/ELF/section-sym2.s +++ b/test/MC/ELF/section-sym2.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols -r --expand-relocs | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols -r --expand-relocs - | FileCheck %s // Test that we can forward reference a section. diff --git a/test/MC/ELF/section-unique.s b/test/MC/ELF/section-unique.s index 3566da98f11..3683ba036f0 100644 --- a/test/MC/ELF/section-unique.s +++ b/test/MC/ELF/section-unique.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -triple x86_64-pc-linux-gnu %s -o - | FileCheck %s -// RUN: llvm-mc -triple x86_64-pc-linux-gnu %s -filetype=obj -o - | llvm-readobj --symbols | FileCheck %s --check-prefix=OBJ +// RUN: llvm-mc -triple x86_64-pc-linux-gnu %s -filetype=obj -o - | llvm-readobj --symbols - | FileCheck %s --check-prefix=OBJ .section .text,"ax",@progbits,unique, 4294967293 .globl f diff --git a/test/MC/ELF/section.s b/test/MC/ELF/section.s index f4ed666bfc7..b5c7126c83e 100644 --- a/test/MC/ELF/section.s +++ b/test/MC/ELF/section.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S - | FileCheck %s // RUN: llvm-mc -filetype=asm -triple x86_64-pc-linux-gnu %s -o - | FileCheck %s --check-prefix=ASM // Test that these names are accepted. diff --git a/test/MC/ELF/set.s b/test/MC/ELF/set.s index 5434b9dac66..1c8a06a0678 100644 --- a/test/MC/ELF/set.s +++ b/test/MC/ELF/set.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols - | FileCheck %s // Test that we emit the correct value. diff --git a/test/MC/ELF/size.s b/test/MC/ELF/size.s index cade2208fdb..8d516350f73 100644 --- a/test/MC/ELF/size.s +++ b/test/MC/ELF/size.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux < %s | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux < %s | llvm-readobj --symbols - | FileCheck %s foo: bar = . diff --git a/test/MC/ELF/sleb.s b/test/MC/ELF/sleb.s index 600ce19754f..6396864134e 100644 --- a/test/MC/ELF/sleb.s +++ b/test/MC/ELF/sleb.s @@ -1,7 +1,7 @@ -// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj -S --sd | FileCheck -check-prefix=ELF_32 %s -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd | FileCheck -check-prefix=ELF_64 %s -// RUN: llvm-mc -filetype=obj -triple i386-apple-darwin9 %s -o - | llvm-readobj -S --sd | FileCheck -check-prefix=MACHO_32 %s -// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin9 %s -o - | llvm-readobj -S --sd | FileCheck -check-prefix=MACHO_64 %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck -check-prefix=ELF_32 %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck -check-prefix=ELF_64 %s +// RUN: llvm-mc -filetype=obj -triple i386-apple-darwin9 %s -o - | llvm-readobj -S --sd - | FileCheck -check-prefix=MACHO_32 %s +// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin9 %s -o - | llvm-readobj -S --sd - | FileCheck -check-prefix=MACHO_64 %s .text foo: diff --git a/test/MC/ELF/strtab-suffix-opt.s b/test/MC/ELF/strtab-suffix-opt.s index fb9e895642d..36fdd66489f 100644 --- a/test/MC/ELF/strtab-suffix-opt.s +++ b/test/MC/ELF/strtab-suffix-opt.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj --symbols - | FileCheck %s .text .globl foobar diff --git a/test/MC/ELF/symbol-names.s b/test/MC/ELF/symbol-names.s index c6b26f36688..f605c723d4d 100644 --- a/test/MC/ELF/symbol-names.s +++ b/test/MC/ELF/symbol-names.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i686-pc-linux -filetype=obj %s -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -triple i686-pc-linux -filetype=obj %s -o - | llvm-readobj --symbols - | FileCheck %s // MC allows ?'s in symbol names as an extension. diff --git a/test/MC/ELF/symver-msvc.s b/test/MC/ELF/symver-msvc.s index 6d3573a4d0e..8741053e135 100644 --- a/test/MC/ELF/symver-msvc.s +++ b/test/MC/ELF/symver-msvc.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-windows-elf %s -o - | llvm-readobj -r --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-windows-elf %s -o - | llvm-readobj -r --symbols - | FileCheck %s // Verify that MSVC C++ mangled symbols are not affected by the ELF // GNU-style symbol versioning. The ELF format is used on Windows by diff --git a/test/MC/ELF/symver-pr23914.s b/test/MC/ELF/symver-pr23914.s index 69ec02034d8..7ae3895035c 100644 --- a/test/MC/ELF/symver-pr23914.s +++ b/test/MC/ELF/symver-pr23914.s @@ -1,5 +1,5 @@ // Regression test for PR23914. -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r --symbols - | FileCheck %s defined: .symver defined, aaaaaaaaaaaaaaaaaa@@@AAAAAAAAAAAAA diff --git a/test/MC/ELF/symver.s b/test/MC/ELF/symver.s index a591d5cec7b..33063accd5b 100644 --- a/test/MC/ELF/symver.s +++ b/test/MC/ELF/symver.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r --symbols - | FileCheck %s defined1: defined2: diff --git a/test/MC/ELF/tls-i386.s b/test/MC/ELF/tls-i386.s index 61ddd7d8462..9508227f998 100644 --- a/test/MC/ELF/tls-i386.s +++ b/test/MC/ELF/tls-i386.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple i386-pc-linux-gnu %s -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i386-pc-linux-gnu %s -o - | llvm-readobj --symbols - | FileCheck %s // Test that all symbols are of type STT_TLS. diff --git a/test/MC/ELF/tls.s b/test/MC/ELF/tls.s index 045e552c4b9..560cf138806 100644 --- a/test/MC/ELF/tls.s +++ b/test/MC/ELF/tls.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols - | FileCheck %s // Test that all symbols are of type STT_TLS. diff --git a/test/MC/ELF/type.s b/test/MC/ELF/type.s index b43ec1cd110..dd411a5632f 100644 --- a/test/MC/ELF/type.s +++ b/test/MC/ELF/type.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols - | FileCheck %s // Test that both % and @ are accepted. .global foo diff --git a/test/MC/ELF/uleb-ehtable.s b/test/MC/ELF/uleb-ehtable.s index d54392a2578..ca3f9e97bff 100644 --- a/test/MC/ELF/uleb-ehtable.s +++ b/test/MC/ELF/uleb-ehtable.s @@ -1,7 +1,7 @@ -// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj -S --sd | FileCheck %s -check-prefix=CHECK -check-prefix=ELF -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd | FileCheck %s -check-prefix=CHECK -check-prefix=ELF -// RUN: llvm-mc -filetype=obj -triple i386-apple-darwin9 %s -o - | llvm-readobj -S --sd | FileCheck %s -check-prefix=CHECK -check-prefix=MACHO -// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin9 %s -o - | llvm-readobj -S --sd | FileCheck %s -check-prefix=CHECK -check-prefix=MACHO +// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK -check-prefix=ELF +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK -check-prefix=ELF +// RUN: llvm-mc -filetype=obj -triple i386-apple-darwin9 %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK -check-prefix=MACHO +// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin9 %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK -check-prefix=MACHO // Test that we can assemble a GCC-like EH table that has 16381-16383 bytes of // non-padding data between .ttbaseref and .ttbase. The assembler must insert diff --git a/test/MC/ELF/uleb.s b/test/MC/ELF/uleb.s index e09ae6ca1cf..09479bd9c08 100644 --- a/test/MC/ELF/uleb.s +++ b/test/MC/ELF/uleb.s @@ -1,7 +1,7 @@ -// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj -S --sd | FileCheck -check-prefix=ELF_32 %s -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd | FileCheck -check-prefix=ELF_64 %s -// RUN: llvm-mc -filetype=obj -triple i386-apple-darwin9 %s -o - | llvm-readobj -S --sd | FileCheck -check-prefix=MACHO_32 %s -// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin9 %s -o - | llvm-readobj -S --sd | FileCheck -check-prefix=MACHO_64 %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck -check-prefix=ELF_32 %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck -check-prefix=ELF_64 %s +// RUN: llvm-mc -filetype=obj -triple i386-apple-darwin9 %s -o - | llvm-readobj -S --sd - | FileCheck -check-prefix=MACHO_32 %s +// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin9 %s -o - | llvm-readobj -S --sd - | FileCheck -check-prefix=MACHO_64 %s .text foo: diff --git a/test/MC/ELF/undef.s b/test/MC/ELF/undef.s index 9d99b834ffd..931fa07868e 100644 --- a/test/MC/ELF/undef.s +++ b/test/MC/ELF/undef.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols - | FileCheck %s // Test which symbols should be in the symbol table diff --git a/test/MC/ELF/version.s b/test/MC/ELF/version.s index f138e9ddca5..67526d8b644 100644 --- a/test/MC/ELF/version.s +++ b/test/MC/ELF/version.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple i386-pc-linux-gnu %s -o - | llvm-readobj -S --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i386-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s .version "1234" .version "123" diff --git a/test/MC/ELF/weak-diff.s b/test/MC/ELF/weak-diff.s index 9785a2befb1..9840bede0b4 100644 --- a/test/MC/ELF/weak-diff.s +++ b/test/MC/ELF/weak-diff.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu < %s | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu < %s | llvm-readobj -r - | FileCheck %s // CHECK: Relocations [ // CHECK-NEXT: Section ({{.*}}) .rela.text { diff --git a/test/MC/ELF/weak-relocation.s b/test/MC/ELF/weak-relocation.s index defaf4e6a38..a1f85a9af94 100644 --- a/test/MC/ELF/weak-relocation.s +++ b/test/MC/ELF/weak-relocation.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r - | FileCheck %s // Test that weak symbols always produce relocations diff --git a/test/MC/ELF/weak.s b/test/MC/ELF/weak.s index 7d1d0e2d9a0..d78f5db0f10 100644 --- a/test/MC/ELF/weak.s +++ b/test/MC/ELF/weak.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols - | FileCheck %s // Test that this produces a weak undefined symbol. diff --git a/test/MC/ELF/weakref-plt.s b/test/MC/ELF/weakref-plt.s index 0d2be1aed1a..019d040c1da 100644 --- a/test/MC/ELF/weakref-plt.s +++ b/test/MC/ELF/weakref-plt.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols - | FileCheck %s .weakref bar,foo call bar@PLT diff --git a/test/MC/ELF/weakref-reloc.s b/test/MC/ELF/weakref-reloc.s index f82c29b2fbf..5ed9b5696da 100644 --- a/test/MC/ELF/weakref-reloc.s +++ b/test/MC/ELF/weakref-reloc.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r --symbols - | FileCheck %s // Test that the relocations point to the correct symbols. diff --git a/test/MC/ELF/weakref.s b/test/MC/ELF/weakref.s index bca8ec4f281..b866ffaef74 100644 --- a/test/MC/ELF/weakref.s +++ b/test/MC/ELF/weakref.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj --symbols - | FileCheck %s // This is a long test that checks that the aliases created by weakref are // never in the symbol table and that the only case it causes a symbol to diff --git a/test/MC/ELF/x86_64-reloc-sizetest.s b/test/MC/ELF/x86_64-reloc-sizetest.s index 10c13123e65..2c88ff7aebe 100644 --- a/test/MC/ELF/x86_64-reloc-sizetest.s +++ b/test/MC/ELF/x86_64-reloc-sizetest.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-linux-gnu -filetype=obj %s | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -triple x86_64-linux-gnu -filetype=obj %s | llvm-readobj -r - | FileCheck %s // Tests that relocation value fits in the provided size // Original bug http://llvm.org/bugs/show_bug.cgi?id=10568 diff --git a/test/MC/ELF/zero.s b/test/MC/ELF/zero.s index bbd2b5604f0..8e0d445db35 100644 --- a/test/MC/ELF/zero.s +++ b/test/MC/ELF/zero.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s .zero 4 .zero 1,42 diff --git a/test/MC/Hexagon/basic.ll b/test/MC/Hexagon/basic.ll index 5fba44f3a5f..b9c9597546d 100644 --- a/test/MC/Hexagon/basic.ll +++ b/test/MC/Hexagon/basic.ll @@ -1,5 +1,5 @@ ;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ -;; RUN: | llvm-readobj -h -r | FileCheck -check-prefix=OBJ %s +;; RUN: | llvm-readobj -h -r - | FileCheck -check-prefix=OBJ %s ; OBJ: Format: elf32-hexagon ; OBJ: Arch: hexagon diff --git a/test/MC/Hexagon/elf-flags.s b/test/MC/Hexagon/elf-flags.s index 5f67b37d4ca..d392e7e1db2 100644 --- a/test/MC/Hexagon/elf-flags.s +++ b/test/MC/Hexagon/elf-flags.s @@ -1,7 +1,7 @@ -# RUN: llvm-mc -arch=hexagon -mcpu=hexagonv5 --filetype=obj %s -o - | llvm-readelf --file-headers | FileCheck --check-prefix=CHECK-V5 %s -# RUN: llvm-mc -arch=hexagon -mcpu=hexagonv55 --filetype=obj %s -o - | llvm-readelf --file-headers | FileCheck --check-prefix=CHECK-V55 %s -# RUN: llvm-mc -arch=hexagon -mcpu=hexagonv60 --filetype=obj %s -o - | llvm-readelf --file-headers | FileCheck --check-prefix=CHECK-V60 %s -# RUN: llvm-mc -arch=hexagon -mcpu=hexagonv62 --filetype=obj %s -o - | llvm-readelf --file-headers | FileCheck --check-prefix=CHECK-V62 %s +# RUN: llvm-mc -arch=hexagon -mcpu=hexagonv5 --filetype=obj %s -o - | llvm-readelf --file-headers - | FileCheck --check-prefix=CHECK-V5 %s +# RUN: llvm-mc -arch=hexagon -mcpu=hexagonv55 --filetype=obj %s -o - | llvm-readelf --file-headers - | FileCheck --check-prefix=CHECK-V55 %s +# RUN: llvm-mc -arch=hexagon -mcpu=hexagonv60 --filetype=obj %s -o - | llvm-readelf --file-headers - | FileCheck --check-prefix=CHECK-V60 %s +# RUN: llvm-mc -arch=hexagon -mcpu=hexagonv62 --filetype=obj %s -o - | llvm-readelf --file-headers - | FileCheck --check-prefix=CHECK-V62 %s # CHECK-V5: Flags: 0x4 # CHECK-V55: Flags: 0x5 diff --git a/test/MC/MSP430/reloc.s b/test/MC/MSP430/reloc.s index 61a25f49473..3e3d34fa051 100644 --- a/test/MC/MSP430/reloc.s +++ b/test/MC/MSP430/reloc.s @@ -21,7 +21,7 @@ ; CHECK: jmp foo ; encoding: [A,0b001111AA] ; CHECK: ; fixup A - offset: 0, value: foo, kind: fixup_10_pcrel -; RUN: llvm-mc -filetype=obj -triple msp430 < %s | llvm-readobj -r \ +; RUN: llvm-mc -filetype=obj -triple msp430 < %s | llvm-readobj -r - \ ; RUN: | FileCheck -check-prefix=RELOC %s .short _ctype+3 ; RELOC: R_MSP430_16_BYTE _ctype 0x3 diff --git a/test/MC/MachO/AArch64/classrefs.s b/test/MC/MachO/AArch64/classrefs.s index d92bbb4a57a..fc308e43ba7 100644 --- a/test/MC/MachO/AArch64/classrefs.s +++ b/test/MC/MachO/AArch64/classrefs.s @@ -1,4 +1,4 @@ -; RUN: llvm-mc -triple arm64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs | FileCheck %s +; RUN: llvm-mc -triple arm64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs - | FileCheck %s ; Test that we produce an external relocation with Lbar. We could also produce ; an internal relocation. We just have to be careful to not use another symbol. diff --git a/test/MC/MachO/AArch64/darwin-ARM64-local-label-diff.s b/test/MC/MachO/AArch64/darwin-ARM64-local-label-diff.s index 547f5be43f9..4b855ea0df3 100644 --- a/test/MC/MachO/AArch64/darwin-ARM64-local-label-diff.s +++ b/test/MC/MachO/AArch64/darwin-ARM64-local-label-diff.s @@ -1,4 +1,4 @@ -; RUN: llvm-mc -triple arm64-apple-darwin -filetype=obj -o - < %s | llvm-readobj -S --sd | FileCheck %s +; RUN: llvm-mc -triple arm64-apple-darwin -filetype=obj -o - < %s | llvm-readobj -S --sd - | FileCheck %s ; rdar://13028719 .globl context_save0 diff --git a/test/MC/MachO/AArch64/darwin-ARM64-reloc.s b/test/MC/MachO/AArch64/darwin-ARM64-reloc.s index b4d0b082c8a..a9d988d6301 100644 --- a/test/MC/MachO/AArch64/darwin-ARM64-reloc.s +++ b/test/MC/MachO/AArch64/darwin-ARM64-reloc.s @@ -1,4 +1,4 @@ -; RUN: llvm-mc -n -triple arm64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs | FileCheck %s +; RUN: llvm-mc -n -triple arm64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs - | FileCheck %s .text _fred: diff --git a/test/MC/MachO/AArch64/data-in-code.s b/test/MC/MachO/AArch64/data-in-code.s index cf7d860a622..484199224f0 100644 --- a/test/MC/MachO/AArch64/data-in-code.s +++ b/test/MC/MachO/AArch64/data-in-code.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple arm64-apple-darwin10 -filetype=obj -o - < %s | llvm-readobj --macho-data-in-code | FileCheck %s +// RUN: llvm-mc -triple arm64-apple-darwin10 -filetype=obj -o - < %s | llvm-readobj --macho-data-in-code - | FileCheck %s .text _foo: .data_region diff --git a/test/MC/MachO/AArch64/ld64-workaround.s b/test/MC/MachO/AArch64/ld64-workaround.s index 63f91705599..807580c06db 100644 --- a/test/MC/MachO/AArch64/ld64-workaround.s +++ b/test/MC/MachO/AArch64/ld64-workaround.s @@ -1,4 +1,4 @@ -; RUN: llvm-mc -triple arm64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs | FileCheck %s +; RUN: llvm-mc -triple arm64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs - | FileCheck %s ; Test that we produce an external relocation. This is a known and temporary bug ; in ld64, where it mishandles pointer-sized internal relocations. We should be diff --git a/test/MC/MachO/AArch64/mergeable.s b/test/MC/MachO/AArch64/mergeable.s index 4fed04c9334..8621b25e80d 100644 --- a/test/MC/MachO/AArch64/mergeable.s +++ b/test/MC/MachO/AArch64/mergeable.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple aarch64-apple-darwin14 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs | FileCheck %s +// RUN: llvm-mc -triple aarch64-apple-darwin14 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs - | FileCheck %s // FIXME: the final relocation should be internal, but the linker doesn't // currently handle the it correctly. diff --git a/test/MC/MachO/AArch64/reloc-crash.s b/test/MC/MachO/AArch64/reloc-crash.s index f8ad4c4f751..4a6eb0486c7 100644 --- a/test/MC/MachO/AArch64/reloc-crash.s +++ b/test/MC/MachO/AArch64/reloc-crash.s @@ -1,4 +1,4 @@ -; RUN: llvm-mc -triple arm64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs | FileCheck %s +; RUN: llvm-mc -triple arm64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs - | FileCheck %s ; Test tha we produce an external relocation. There is no apparent need for it, but ; ld64 (241.9) crashes if we don't. diff --git a/test/MC/MachO/AArch64/reloc-crash2.s b/test/MC/MachO/AArch64/reloc-crash2.s index 3aa26281bc0..40bb0347a28 100644 --- a/test/MC/MachO/AArch64/reloc-crash2.s +++ b/test/MC/MachO/AArch64/reloc-crash2.s @@ -1,4 +1,4 @@ -; RUN: llvm-mc -triple arm64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs | FileCheck %s +; RUN: llvm-mc -triple arm64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs - | FileCheck %s ; This is a regression test making sure we don't crash. diff --git a/test/MC/MachO/ARM/build-version-encode.s b/test/MC/MachO/ARM/build-version-encode.s index d68f226cc9c..4bc6665e58a 100644 --- a/test/MC/MachO/ARM/build-version-encode.s +++ b/test/MC/MachO/ARM/build-version-encode.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc %s -triple x86_64-apple-tvos -filetype=obj | llvm-readobj --macho-version-min | FileCheck %s +// RUN: llvm-mc %s -triple x86_64-apple-tvos -filetype=obj | llvm-readobj --macho-version-min - | FileCheck %s .build_version tvos,1,2,3 // CHECK: MinVersion { diff --git a/test/MC/MachO/ARM/darwin-ARM-reloc.s b/test/MC/MachO/ARM/darwin-ARM-reloc.s index f9a8d539f76..290818910eb 100644 --- a/test/MC/MachO/ARM/darwin-ARM-reloc.s +++ b/test/MC/MachO/ARM/darwin-ARM-reloc.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc -n -triple armv7-apple-darwin10 %s -filetype=obj -o %t.obj -@ RUN: llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols < %t.obj > %t.dump +@ RUN: llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols < %t.obj - > %t.dump @ RUN: FileCheck < %t.dump %s .syntax unified diff --git a/test/MC/MachO/ARM/darwin-Thumb-reloc.s b/test/MC/MachO/ARM/darwin-Thumb-reloc.s index 8ee19a39e6d..c387a292ba2 100644 --- a/test/MC/MachO/ARM/darwin-Thumb-reloc.s +++ b/test/MC/MachO/ARM/darwin-Thumb-reloc.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc -n -triple thumbv7-apple-darwin10 %s -filetype=obj -o %t.obj -@ RUN: llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols < %t.obj > %t.dump +@ RUN: llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - < %t.obj > %t.dump @ RUN: FileCheck < %t.dump %s .syntax unified diff --git a/test/MC/MachO/ARM/data-in-code.s b/test/MC/MachO/ARM/data-in-code.s index a7be7e74d49..8ac4b350a3d 100644 --- a/test/MC/MachO/ARM/data-in-code.s +++ b/test/MC/MachO/ARM/data-in-code.s @@ -1,4 +1,4 @@ -@ RUN: llvm-mc -triple armv7-apple-darwin10 -filetype=obj -o - < %s | llvm-readobj --macho-data-in-code | FileCheck %s +@ RUN: llvm-mc -triple armv7-apple-darwin10 -filetype=obj -o - < %s | llvm-readobj --macho-data-in-code - | FileCheck %s .text _foo: .data_region diff --git a/test/MC/MachO/ARM/empty-function-nop.ll b/test/MC/MachO/ARM/empty-function-nop.ll index dc09d165318..bb7cff09731 100644 --- a/test/MC/MachO/ARM/empty-function-nop.ll +++ b/test/MC/MachO/ARM/empty-function-nop.ll @@ -1,7 +1,7 @@ -; RUN: llc < %s -filetype=obj -mtriple=thumbv6-apple-darwin -o - | llvm-readobj -S --sd | FileCheck -check-prefix=CHECK-T1 %s -; RUN: llc < %s -filetype=obj -mtriple=thumbv7-apple-darwin -o - | llvm-readobj -S --sd | FileCheck -check-prefix=CHECK-T2 %s -; RUN: llc < %s -filetype=obj -mtriple=armv6-apple-darwin -o - | llvm-readobj -S --sd | FileCheck -check-prefix=CHECK-ARM %s -; RUN: llc < %s -filetype=obj -mtriple=armv7-apple-darwin -o - | llvm-readobj -S --sd | FileCheck -check-prefix=CHECK-ARMV7 %s +; RUN: llc < %s -filetype=obj -mtriple=thumbv6-apple-darwin -o - | llvm-readobj -S --sd - | FileCheck -check-prefix=CHECK-T1 %s +; RUN: llc < %s -filetype=obj -mtriple=thumbv7-apple-darwin -o - | llvm-readobj -S --sd - | FileCheck -check-prefix=CHECK-T2 %s +; RUN: llc < %s -filetype=obj -mtriple=armv6-apple-darwin -o - | llvm-readobj -S --sd - | FileCheck -check-prefix=CHECK-ARM %s +; RUN: llc < %s -filetype=obj -mtriple=armv7-apple-darwin -o - | llvm-readobj -S --sd - | FileCheck -check-prefix=CHECK-ARMV7 %s ; Empty functions need a NOP in them for MachO to prevent DWARF FDEs from ; getting all mucked up. See lib/CodeGen/AsmPrinter/AsmPrinter.cpp for diff --git a/test/MC/MachO/ARM/ios-version-min-load-command.s b/test/MC/MachO/ARM/ios-version-min-load-command.s index 0fa29da0b4c..e7435c6dc19 100644 --- a/test/MC/MachO/ARM/ios-version-min-load-command.s +++ b/test/MC/MachO/ARM/ios-version-min-load-command.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple armv7-apple-ios %s -filetype=obj -o - | llvm-readobj --macho-version-min | FileCheck %s +// RUN: llvm-mc -triple armv7-apple-ios %s -filetype=obj -o - | llvm-readobj --macho-version-min - | FileCheck %s // Test the formation of the version-min load command in the MachO. // use a nonsense but well formed version. diff --git a/test/MC/MachO/ARM/long-call-branch-island-relocation.s b/test/MC/MachO/ARM/long-call-branch-island-relocation.s index e781c6d5618..db6ed200956 100644 --- a/test/MC/MachO/ARM/long-call-branch-island-relocation.s +++ b/test/MC/MachO/ARM/long-call-branch-island-relocation.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc -n -triple armv7-apple-darwin10 %s -filetype=obj -o %t.o -@ RUN: llvm-readobj -r --expand-relocs < %t.o | FileCheck %s +@ RUN: llvm-readobj -r --expand-relocs - < %t.o | FileCheck %s @ rdar://12359919 diff --git a/test/MC/MachO/ARM/no-subsections-reloc.s b/test/MC/MachO/ARM/no-subsections-reloc.s index 68b9b3865a2..31c1d37a66e 100644 --- a/test/MC/MachO/ARM/no-subsections-reloc.s +++ b/test/MC/MachO/ARM/no-subsections-reloc.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc -n -triple thumbv7-apple-darwin10 %s -filetype=obj -o %t.obj -@ RUN: llvm-readobj -S --sd < %t.obj > %t.dump +@ RUN: llvm-readobj -S --sd - < %t.obj > %t.dump @ RUN: FileCheck < %t.dump %s @ When not using subsections-via-symbols, references to non-local symbols diff --git a/test/MC/MachO/ARM/nop-armv4-padding.s b/test/MC/MachO/ARM/nop-armv4-padding.s index d63e506791e..58db406ea5c 100644 --- a/test/MC/MachO/ARM/nop-armv4-padding.s +++ b/test/MC/MachO/ARM/nop-armv4-padding.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc -triple armv4-apple-darwin %s -filetype=obj -o %t.obj -@ RUN: llvm-readobj -S --sd < %t.obj > %t.dump +@ RUN: llvm-readobj -S --sd - < %t.obj > %t.dump @ RUN: FileCheck %s < %t.dump x: diff --git a/test/MC/MachO/ARM/nop-armv6t2-padding.s b/test/MC/MachO/ARM/nop-armv6t2-padding.s index 2b15ca0f54a..4cb5abb2a40 100644 --- a/test/MC/MachO/ARM/nop-armv6t2-padding.s +++ b/test/MC/MachO/ARM/nop-armv6t2-padding.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc -triple armv6t2-apple-darwin %s -filetype=obj -o %t.obj -@ RUN: llvm-readobj -S --sd < %t.obj > %t.dump +@ RUN: llvm-readobj -S --sd - < %t.obj > %t.dump @ RUN: FileCheck %s < %t.dump x: diff --git a/test/MC/MachO/ARM/nop-thumb-padding.s b/test/MC/MachO/ARM/nop-thumb-padding.s index ac041e110fa..36b76828022 100644 --- a/test/MC/MachO/ARM/nop-thumb-padding.s +++ b/test/MC/MachO/ARM/nop-thumb-padding.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc -triple armv6-apple-darwin %s -filetype=obj -o %t.obj -@ RUN: llvm-readobj -S --sd < %t.obj > %t.dump +@ RUN: llvm-readobj -S --sd - < %t.obj > %t.dump @ RUN: FileCheck %s < %t.dump .thumb_func x diff --git a/test/MC/MachO/ARM/nop-thumb2-padding.s b/test/MC/MachO/ARM/nop-thumb2-padding.s index e032c8a7de0..b6daac7ed5c 100644 --- a/test/MC/MachO/ARM/nop-thumb2-padding.s +++ b/test/MC/MachO/ARM/nop-thumb2-padding.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc -triple armv7-apple-darwin %s -filetype=obj -o %t.obj -@ RUN: llvm-readobj -S --sd < %t.obj > %t.dump +@ RUN: llvm-readobj -S --sd - < %t.obj > %t.dump @ RUN: FileCheck %s < %t.dump .thumb_func x diff --git a/test/MC/MachO/ARM/relax-thumb-ldr-literal.s b/test/MC/MachO/ARM/relax-thumb-ldr-literal.s index 2ce65de7aab..e360477c7a3 100644 --- a/test/MC/MachO/ARM/relax-thumb-ldr-literal.s +++ b/test/MC/MachO/ARM/relax-thumb-ldr-literal.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc -n -triple thumbv7-apple-darwin10 %s -filetype=obj -o %t.obj -@ RUN: llvm-readobj -S --sd < %t.obj > %t.dump +@ RUN: llvm-readobj -S --sd - < %t.obj > %t.dump @ RUN: FileCheck < %t.dump %s .syntax unified diff --git a/test/MC/MachO/ARM/relax-thumb2-branches.s b/test/MC/MachO/ARM/relax-thumb2-branches.s index 7563f4f62ff..29a3e79b0dc 100644 --- a/test/MC/MachO/ARM/relax-thumb2-branches.s +++ b/test/MC/MachO/ARM/relax-thumb2-branches.s @@ -1,4 +1,4 @@ -@ RUN: llvm-mc -triple=thumbv7-apple-darwin -show-encoding %s -filetype=obj -o - | llvm-readobj -S --sd | FileCheck %s +@ RUN: llvm-mc -triple=thumbv7-apple-darwin -show-encoding %s -filetype=obj -o - | llvm-readobj -S --sd - | FileCheck %s ble Lfoo @ wide encoding diff --git a/test/MC/MachO/ARM/static-movt-relocs.s b/test/MC/MachO/ARM/static-movt-relocs.s index d94be2f4f6c..47a093c5202 100644 --- a/test/MC/MachO/ARM/static-movt-relocs.s +++ b/test/MC/MachO/ARM/static-movt-relocs.s @@ -1,4 +1,4 @@ -@ RUN: llvm-mc -mcpu=cortex-a8 -triple thumbv7-apple-darwin10 -filetype=obj -o - < %s | llvm-readobj -r --expand-relocs | FileCheck %s +@ RUN: llvm-mc -mcpu=cortex-a8 -triple thumbv7-apple-darwin10 -filetype=obj -o - < %s | llvm-readobj -r --expand-relocs - | FileCheck %s .thumb .thumb_func foo foo: diff --git a/test/MC/MachO/ARM/thumb-bl-jbits.s b/test/MC/MachO/ARM/thumb-bl-jbits.s index b5296b70c82..ef803118750 100644 --- a/test/MC/MachO/ARM/thumb-bl-jbits.s +++ b/test/MC/MachO/ARM/thumb-bl-jbits.s @@ -1,4 +1,4 @@ -@ RUN: llvm-mc -triple=thumbv7-apple-darwin -filetype=obj -o - < %s | llvm-readobj -S --sd | FileCheck %s +@ RUN: llvm-mc -triple=thumbv7-apple-darwin -filetype=obj -o - < %s | llvm-readobj -S --sd - | FileCheck %s .thumb .thumb_func t t: nop diff --git a/test/MC/MachO/ARM/thumb2-function-relative-load.s b/test/MC/MachO/ARM/thumb2-function-relative-load.s index bdc4aa9c47d..0f6466ab6e2 100644 --- a/test/MC/MachO/ARM/thumb2-function-relative-load.s +++ b/test/MC/MachO/ARM/thumb2-function-relative-load.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc -n -triple thumbv7-apple-darwin10 %s -filetype=obj -o %t.obj -@ RUN: llvm-readobj -S --sd < %t.obj > %t.dump +@ RUN: llvm-readobj -S --sd - < %t.obj > %t.dump @ RUN: FileCheck < %t.dump %s .syntax unified .text diff --git a/test/MC/MachO/ARM/thumb2-movt-fixup.s b/test/MC/MachO/ARM/thumb2-movt-fixup.s index c946e5c6ea7..3f785938a79 100644 --- a/test/MC/MachO/ARM/thumb2-movt-fixup.s +++ b/test/MC/MachO/ARM/thumb2-movt-fixup.s @@ -1,4 +1,4 @@ -@ RUN: llvm-mc -mcpu=cortex-a8 -triple thumbv7-apple-darwin10 -filetype=obj -o - < %s | llvm-readobj -r --expand-relocs | FileCheck %s +@ RUN: llvm-mc -mcpu=cortex-a8 -triple thumbv7-apple-darwin10 -filetype=obj -o - < %s | llvm-readobj -r --expand-relocs - | FileCheck %s _fred: movt r3, :upper16:(_wilma-(LPC0_0+4)) diff --git a/test/MC/MachO/ARM/thumb2-movw-fixup.s b/test/MC/MachO/ARM/thumb2-movw-fixup.s index 3191a90852b..18182d1affb 100644 --- a/test/MC/MachO/ARM/thumb2-movw-fixup.s +++ b/test/MC/MachO/ARM/thumb2-movw-fixup.s @@ -1,4 +1,4 @@ -@ RUN: llvm-mc -mcpu=cortex-a8 -triple thumbv7-apple-darwin10 -filetype=obj -o - < %s | llvm-readobj -r --expand-relocs | FileCheck %s +@ RUN: llvm-mc -mcpu=cortex-a8 -triple thumbv7-apple-darwin10 -filetype=obj -o - < %s | llvm-readobj -r --expand-relocs - | FileCheck %s @ rdar://10038370 diff --git a/test/MC/MachO/ARM/tvos-version-min-load-command.s b/test/MC/MachO/ARM/tvos-version-min-load-command.s index 3c9b237d695..d0bd4dd6b79 100644 --- a/test/MC/MachO/ARM/tvos-version-min-load-command.s +++ b/test/MC/MachO/ARM/tvos-version-min-load-command.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple armv7-apple-tvos %s -filetype=obj -o - | llvm-readobj --macho-version-min | FileCheck %s +// RUN: llvm-mc -triple armv7-apple-tvos %s -filetype=obj -o - | llvm-readobj --macho-version-min - | FileCheck %s // Test the formation of the version-min load command in the MachO. diff --git a/test/MC/MachO/ARM/watchos-version-min-load-command.s b/test/MC/MachO/ARM/watchos-version-min-load-command.s index 3df38fb6a17..e383ae3da0a 100644 --- a/test/MC/MachO/ARM/watchos-version-min-load-command.s +++ b/test/MC/MachO/ARM/watchos-version-min-load-command.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple armv7k-apple-watchos %s -filetype=obj -o - | llvm-readobj --macho-version-min | FileCheck %s +// RUN: llvm-mc -triple armv7k-apple-watchos %s -filetype=obj -o - | llvm-readobj --macho-version-min - | FileCheck %s // Test the formation of the version-min load command in the MachO. diff --git a/test/MC/MachO/absolute.s b/test/MC/MachO/absolute.s index 7d560d13712..7da39bdf14b 100644 --- a/test/MC/MachO/absolute.s +++ b/test/MC/MachO/absolute.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s _bar: nop diff --git a/test/MC/MachO/absolutize.s b/test/MC/MachO/absolutize.s index 1a776d787e3..7a2eee903df 100644 --- a/test/MC/MachO/absolutize.s +++ b/test/MC/MachO/absolutize.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s _text_a: xorl %eax,%eax diff --git a/test/MC/MachO/alias.s b/test/MC/MachO/alias.s index aec04c63b68..f53fe3507d0 100644 --- a/test/MC/MachO/alias.s +++ b/test/MC/MachO/alias.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-macosx10.12.0 %s -filetype=obj | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-macosx10.12.0 %s -filetype=obj | llvm-readobj -r - | FileCheck %s l_a: l_b = l_a diff --git a/test/MC/MachO/altentry.s b/test/MC/MachO/altentry.s index d2964a1fc19..8e42cf473be 100644 --- a/test/MC/MachO/altentry.s +++ b/test/MC/MachO/altentry.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin -filetype=obj %s -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin -filetype=obj %s -o - | llvm-readobj --symbols - | FileCheck %s // CHECK: Symbol { // CHECK: Name: _foo diff --git a/test/MC/MachO/bss.s b/test/MC/MachO/bss.s index 426ae163165..f0b03242d93 100644 --- a/test/MC/MachO/bss.s +++ b/test/MC/MachO/bss.s @@ -1,7 +1,7 @@ // The purpose of this test is to verify that bss sections are emitted correctly. -// RUN: llvm-mc -filetype=obj -triple i686-apple-darwin9 %s | llvm-readobj -S | FileCheck %s -// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin9 %s | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-apple-darwin9 %s | llvm-readobj -S - | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin9 %s | llvm-readobj -S - | FileCheck %s .bss .globl _g0 diff --git a/test/MC/MachO/build-version-with-sdk-version.s b/test/MC/MachO/build-version-with-sdk-version.s index e96c2d520e1..49bdd79f8a0 100644 --- a/test/MC/MachO/build-version-with-sdk-version.s +++ b/test/MC/MachO/build-version-with-sdk-version.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-macos %s -filetype=obj -o - | llvm-readobj --macho-version-min | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-macos %s -filetype=obj -o - | llvm-readobj --macho-version-min - | FileCheck %s // Test the formation of the sdk_version component of the version load // command in the MachO. diff --git a/test/MC/MachO/coal-sections-x86_64.s b/test/MC/MachO/coal-sections-x86_64.s index f91373e0793..20d93dfe6b2 100644 --- a/test/MC/MachO/coal-sections-x86_64.s +++ b/test/MC/MachO/coal-sections-x86_64.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin -filetype=obj %s -o - 2>%t.err | llvm-readobj --sections | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin -filetype=obj %s -o - 2>%t.err | llvm-readobj --sections - | FileCheck %s // RUN: FileCheck --check-prefix=WARNING < %t.err %s // CHECK: Section { diff --git a/test/MC/MachO/comm-1.s b/test/MC/MachO/comm-1.s index f7c325c13ab..c8904be7e8a 100644 --- a/test/MC/MachO/comm-1.s +++ b/test/MC/MachO/comm-1.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s .comm sym_comm_B, 2 .comm sym_comm_A, 4 diff --git a/test/MC/MachO/darwin-complex-difference.s b/test/MC/MachO/darwin-complex-difference.s index ae483eff85c..6bfb880c874 100644 --- a/test/MC/MachO/darwin-complex-difference.s +++ b/test/MC/MachO/darwin-complex-difference.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o %t.o -// RUN: llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols < %t.o > %t.dump +// RUN: llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols < %t.o - > %t.dump // RUN: FileCheck < %t.dump %s _a: diff --git a/test/MC/MachO/darwin-x86_64-diff-reloc-assign-2.s b/test/MC/MachO/darwin-x86_64-diff-reloc-assign-2.s index e3fa1335a0c..b01857ed8c3 100644 --- a/test/MC/MachO/darwin-x86_64-diff-reloc-assign-2.s +++ b/test/MC/MachO/darwin-x86_64-diff-reloc-assign-2.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs - | FileCheck %s .data L_var1: diff --git a/test/MC/MachO/darwin-x86_64-diff-reloc-assign.s b/test/MC/MachO/darwin-x86_64-diff-reloc-assign.s index 7a7919786d4..ae0360fc83a 100644 --- a/test/MC/MachO/darwin-x86_64-diff-reloc-assign.s +++ b/test/MC/MachO/darwin-x86_64-diff-reloc-assign.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r - | FileCheck %s // Test case for rdar://10743265 diff --git a/test/MC/MachO/darwin-x86_64-diff-relocs.s b/test/MC/MachO/darwin-x86_64-diff-relocs.s index c5e022671dc..8e58565729e 100644 --- a/test/MC/MachO/darwin-x86_64-diff-relocs.s +++ b/test/MC/MachO/darwin-x86_64-diff-relocs.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s .text diff --git a/test/MC/MachO/darwin-x86_64-nobase-relocs.s b/test/MC/MachO/darwin-x86_64-nobase-relocs.s index b974cc673ee..537aa944f16 100644 --- a/test/MC/MachO/darwin-x86_64-nobase-relocs.s +++ b/test/MC/MachO/darwin-x86_64-nobase-relocs.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -n -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --macho-segment | FileCheck %s +// RUN: llvm-mc -n -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --macho-segment - | FileCheck %s // Test case for rdar://10062261 diff --git a/test/MC/MachO/darwin-x86_64-reloc-offsets.s b/test/MC/MachO/darwin-x86_64-reloc-offsets.s index fc73ec633c2..e4e48de86bb 100644 --- a/test/MC/MachO/darwin-x86_64-reloc-offsets.s +++ b/test/MC/MachO/darwin-x86_64-reloc-offsets.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s .data diff --git a/test/MC/MachO/darwin-x86_64-reloc.s b/test/MC/MachO/darwin-x86_64-reloc.s index 32e079879ea..2843b4f39cb 100644 --- a/test/MC/MachO/darwin-x86_64-reloc.s +++ b/test/MC/MachO/darwin-x86_64-reloc.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -n -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs | FileCheck %s +// RUN: llvm-mc -n -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs - | FileCheck %s // These examples are taken from . diff --git a/test/MC/MachO/data.s b/test/MC/MachO/data.s index 299e55e88e9..0a02ad20979 100644 --- a/test/MC/MachO/data.s +++ b/test/MC/MachO/data.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --macho-segment | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --macho-segment - | FileCheck %s .data .ascii "hello" diff --git a/test/MC/MachO/debug_frame.s b/test/MC/MachO/debug_frame.s index b6601f78885..cc3df008dbb 100644 --- a/test/MC/MachO/debug_frame.s +++ b/test/MC/MachO/debug_frame.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin %s -filetype=obj -o - | llvm-readobj -S --sd -r | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin %s -filetype=obj -o - | llvm-readobj -S --sd -r - | FileCheck %s // Make sure MC can handle file level .cfi_startproc and .cfi_endproc that creates // an empty frame. diff --git a/test/MC/MachO/diff-with-two-sections.s b/test/MC/MachO/diff-with-two-sections.s index 6302ede13e1..87a8ad960e4 100644 --- a/test/MC/MachO/diff-with-two-sections.s +++ b/test/MC/MachO/diff-with-two-sections.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --macho-segment --macho-version-min | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --macho-segment --macho-version-min - | FileCheck %s .section __TEXT,__text,regular,pure_instructions Leh_func_begin0: diff --git a/test/MC/MachO/direction_labels.s b/test/MC/MachO/direction_labels.s index 0dac4f7377e..a5f3af9f27f 100644 --- a/test/MC/MachO/direction_labels.s +++ b/test/MC/MachO/direction_labels.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s direction_labels: 10: nop diff --git a/test/MC/MachO/eh-frame-reloc.s b/test/MC/MachO/eh-frame-reloc.s index c39ce8479cc..9da4fb7d157 100644 --- a/test/MC/MachO/eh-frame-reloc.s +++ b/test/MC/MachO/eh-frame-reloc.s @@ -1,10 +1,10 @@ -// RUN: llvm-mc < %s -triple=x86_64-apple-macosx10.7 -filetype=obj | llvm-readobj -r | FileCheck %s -// RUN: llvm-mc < %s -triple=x86_64-apple-macosx10.6 -filetype=obj | llvm-readobj -r | FileCheck %s -// RUN: llvm-mc < %s -triple=x86_64-apple-ios7.0.0 -filetype=obj | llvm-readobj -r | FileCheck %s -// RUN: llvm-mc < %s -triple=x86_64-apple-macosx10.5 -filetype=obj | llvm-readobj -r | FileCheck %s -// RUN: llvm-mc < %s -triple=i686-apple-macosx10.6 -filetype=obj | llvm-readobj -r | FileCheck %s -// RUN: llvm-mc < %s -triple=i686-apple-macosx10.5 -filetype=obj | llvm-readobj -r | FileCheck %s -// RUN: llvm-mc < %s -triple=i686-apple-macosx10.4 -filetype=obj | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc < %s -triple=x86_64-apple-macosx10.7 -filetype=obj | llvm-readobj -r - | FileCheck %s +// RUN: llvm-mc < %s -triple=x86_64-apple-macosx10.6 -filetype=obj | llvm-readobj -r - | FileCheck %s +// RUN: llvm-mc < %s -triple=x86_64-apple-ios7.0.0 -filetype=obj | llvm-readobj -r - | FileCheck %s +// RUN: llvm-mc < %s -triple=x86_64-apple-macosx10.5 -filetype=obj | llvm-readobj -r - | FileCheck %s +// RUN: llvm-mc < %s -triple=i686-apple-macosx10.6 -filetype=obj | llvm-readobj -r - | FileCheck %s +// RUN: llvm-mc < %s -triple=i686-apple-macosx10.5 -filetype=obj | llvm-readobj -r - | FileCheck %s +// RUN: llvm-mc < %s -triple=i686-apple-macosx10.4 -filetype=obj | llvm-readobj -r - | FileCheck %s .globl _bar .align 4, 0x90 diff --git a/test/MC/MachO/file.s b/test/MC/MachO/file.s index 0076fa56470..cda04b3ba89 100644 --- a/test/MC/MachO/file.s +++ b/test/MC/MachO/file.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -S --section-data | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -S --section-data - | FileCheck %s // This number-less file directive is ignored on MachO. .file "bar/baz.s" diff --git a/test/MC/MachO/i386-large-relocations.s b/test/MC/MachO/i386-large-relocations.s index e8805d37e4a..04566d9a70b 100644 --- a/test/MC/MachO/i386-large-relocations.s +++ b/test/MC/MachO/i386-large-relocations.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r - | FileCheck %s .space 0x1ed280 .section __DATA,__const diff --git a/test/MC/MachO/indirect-symbols.s b/test/MC/MachO/indirect-symbols.s index d5221fb2514..28f60401c4a 100644 --- a/test/MC/MachO/indirect-symbols.s +++ b/test/MC/MachO/indirect-symbols.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s _b: _c = 0 diff --git a/test/MC/MachO/jcc.s b/test/MC/MachO/jcc.s index 9e7936dfec2..c5b80d25d2b 100644 --- a/test/MC/MachO/jcc.s +++ b/test/MC/MachO/jcc.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --macho-segment | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --macho-segment - | FileCheck %s ja 1f 1: nop diff --git a/test/MC/MachO/lcomm-attributes.s b/test/MC/MachO/lcomm-attributes.s index c3d2d60764e..c553fa5c3da 100644 --- a/test/MC/MachO/lcomm-attributes.s +++ b/test/MC/MachO/lcomm-attributes.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s // Note, this test intentionally mismatches Darwin 'as', which loses the // following global marker. diff --git a/test/MC/MachO/linker-option-2.s b/test/MC/MachO/linker-option-2.s index 8f9a8ffbb09..477b44bbdc5 100644 --- a/test/MC/MachO/linker-option-2.s +++ b/test/MC/MachO/linker-option-2.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -n -triple x86_64-apple-darwin10 %s -filetype=obj | llvm-readobj --macho-linker-options | FileCheck %s +// RUN: llvm-mc -n -triple x86_64-apple-darwin10 %s -filetype=obj | llvm-readobj --macho-linker-options - | FileCheck %s .linker_option "a" .linker_option "a", "b" diff --git a/test/MC/MachO/linker-options.ll b/test/MC/MachO/linker-options.ll index 86c1d8e90b5..0f678cd3ad1 100644 --- a/test/MC/MachO/linker-options.ll +++ b/test/MC/MachO/linker-options.ll @@ -4,7 +4,7 @@ ; CHECK-ASM: .linker_option "-lz" ; CHECK-ASM-NEXT: .linker_option "-framework", "Cocoa" -; RUN: llc -O0 -mtriple=x86_64-apple-darwin -filetype=obj -o - %s | llvm-readobj --macho-linker-options > %t +; RUN: llc -O0 -mtriple=x86_64-apple-darwin -filetype=obj -o - %s | llvm-readobj --macho-linker-options - > %t ; RUN: FileCheck --check-prefix=CHECK-OBJ < %t %s ; CHECK-OBJ: Linker Options { diff --git a/test/MC/MachO/loc.s b/test/MC/MachO/loc.s index 143142027ad..10dfc5d55d7 100644 --- a/test/MC/MachO/loc.s +++ b/test/MC/MachO/loc.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r -S --sd | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r -S --sd - | FileCheck %s .file 2 "foo" .file 1 "bar" .loc 2 64 0 diff --git a/test/MC/MachO/osx-version-min-load-command-with-sdk.s b/test/MC/MachO/osx-version-min-load-command-with-sdk.s index d2ad463d1d6..358b4694dca 100644 --- a/test/MC/MachO/osx-version-min-load-command-with-sdk.s +++ b/test/MC/MachO/osx-version-min-load-command-with-sdk.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-macos %s -filetype=obj -o - | llvm-readobj --macho-version-min | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-macos %s -filetype=obj -o - | llvm-readobj --macho-version-min - | FileCheck %s // Test the formation of the sdk_version component of the version load // command in the MachO. diff --git a/test/MC/MachO/osx-version-min-load-command.s b/test/MC/MachO/osx-version-min-load-command.s index 2218d556bce..23886a84da7 100644 --- a/test/MC/MachO/osx-version-min-load-command.s +++ b/test/MC/MachO/osx-version-min-load-command.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-readobj --macho-version-min | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-readobj --macho-version-min - | FileCheck %s // Test the formation of the version-min load command in the MachO. // use a nonsense but well formed version. diff --git a/test/MC/MachO/pcrel-to-other-section.s b/test/MC/MachO/pcrel-to-other-section.s index e4f77c8ce32..e2325ce8a69 100644 --- a/test/MC/MachO/pcrel-to-other-section.s +++ b/test/MC/MachO/pcrel-to-other-section.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s nop .section __TEXT,__StaticInit,regular,pure_instructions diff --git a/test/MC/MachO/relax-jumps.s b/test/MC/MachO/relax-jumps.s index 104fd8c8498..6d4eedd03e5 100644 --- a/test/MC/MachO/relax-jumps.s +++ b/test/MC/MachO/relax-jumps.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -S --sd | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -S --sd - | FileCheck %s // FIXME: This is a horrible way of checking the output, we need an llvm-mc // based 'otool'. Use: diff --git a/test/MC/MachO/relax-recompute-align.s b/test/MC/MachO/relax-recompute-align.s index 30a5d82331a..bfb17b71274 100644 --- a/test/MC/MachO/relax-recompute-align.s +++ b/test/MC/MachO/relax-recompute-align.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -S - | FileCheck %s // FIXME: This is a horrible way of checking the output, we need an llvm-mc // based 'otool'. diff --git a/test/MC/MachO/reloc-diff.s b/test/MC/MachO/reloc-diff.s index f9d58d97e52..8b2e7606b35 100644 --- a/test/MC/MachO/reloc-diff.s +++ b/test/MC/MachO/reloc-diff.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r - | FileCheck %s _local_def: .globl _external_def diff --git a/test/MC/MachO/reloc-pcrel-offset.s b/test/MC/MachO/reloc-pcrel-offset.s index 281d785c860..5711069167c 100644 --- a/test/MC/MachO/reloc-pcrel-offset.s +++ b/test/MC/MachO/reloc-pcrel-offset.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -n -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r -S --sd | FileCheck %s +// RUN: llvm-mc -n -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r -S --sd - | FileCheck %s .data .long 0 diff --git a/test/MC/MachO/reloc-pcrel.s b/test/MC/MachO/reloc-pcrel.s index 88f8828e687..40688264e39 100644 --- a/test/MC/MachO/reloc-pcrel.s +++ b/test/MC/MachO/reloc-pcrel.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r - | FileCheck %s xorl %eax,%eax diff --git a/test/MC/MachO/reloc.s b/test/MC/MachO/reloc.s index bab5d63d27f..02863c9c39f 100644 --- a/test/MC/MachO/reloc.s +++ b/test/MC/MachO/reloc.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs - | FileCheck %s .data .long undef diff --git a/test/MC/MachO/section-align-1.s b/test/MC/MachO/section-align-1.s index fa697af58b5..c8ab216868a 100644 --- a/test/MC/MachO/section-align-1.s +++ b/test/MC/MachO/section-align-1.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --symbols --file-headers -S --macho-indirect-symbols --macho-dysymtab --macho-segment | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --symbols --file-headers -S --macho-indirect-symbols --macho-dysymtab --macho-segment - | FileCheck %s name: .byte 0 diff --git a/test/MC/MachO/section-align-2.s b/test/MC/MachO/section-align-2.s index 39215e20d57..a32d77e556b 100644 --- a/test/MC/MachO/section-align-2.s +++ b/test/MC/MachO/section-align-2.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s .byte 0 diff --git a/test/MC/MachO/section-flags.s b/test/MC/MachO/section-flags.s index 34fb60e9e7f..8d35d32386c 100644 --- a/test/MC/MachO/section-flags.s +++ b/test/MC/MachO/section-flags.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -S --sd | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -S --sd - | FileCheck %s .text diff --git a/test/MC/MachO/string-table.s b/test/MC/MachO/string-table.s index e43ff03d311..e875b2e30ec 100644 --- a/test/MC/MachO/string-table.s +++ b/test/MC/MachO/string-table.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s movl $a, b diff --git a/test/MC/MachO/symbol-diff.s b/test/MC/MachO/symbol-diff.s index 395e223b583..fc8292c90af 100644 --- a/test/MC/MachO/symbol-diff.s +++ b/test/MC/MachO/symbol-diff.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s _g: LFB2: .section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support diff --git a/test/MC/MachO/symbol-flags.s b/test/MC/MachO/symbol-flags.s index 991ea5628c4..698d152e99a 100644 --- a/test/MC/MachO/symbol-flags.s +++ b/test/MC/MachO/symbol-flags.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s .reference sym_ref_A .reference sym_ref_def_A diff --git a/test/MC/MachO/symbol-indirect.s b/test/MC/MachO/symbol-indirect.s index 286e29283ab..3f1ecaae62e 100644 --- a/test/MC/MachO/symbol-indirect.s +++ b/test/MC/MachO/symbol-indirect.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s // FIXME: We are missing a lot of diagnostics on this kind of stuff which the // assembler has. diff --git a/test/MC/MachO/symbols-1.s b/test/MC/MachO/symbols-1.s index 496ef3d17f6..ec2ff7cda34 100644 --- a/test/MC/MachO/symbols-1.s +++ b/test/MC/MachO/symbols-1.s @@ -1,5 +1,5 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck -check-prefix CHECK-X86_32 %s -// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck -check-prefix CHECK-X86_64 %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck -check-prefix CHECK-X86_32 %s +// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck -check-prefix CHECK-X86_64 %s sym_local_B: .globl sym_globl_def_B diff --git a/test/MC/MachO/tbss.s b/test/MC/MachO/tbss.s index 37a089f4627..4df851ab09e 100644 --- a/test/MC/MachO/tbss.s +++ b/test/MC/MachO/tbss.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s .tbss _a$tlv$init, 4 .tbss _b$tlv$init, 4, 3 diff --git a/test/MC/MachO/tdata.s b/test/MC/MachO/tdata.s index e3d35a7443a..a9689ec0474 100644 --- a/test/MC/MachO/tdata.s +++ b/test/MC/MachO/tdata.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s .tdata _a$tlv$init: .long 4 diff --git a/test/MC/MachO/temp-labels.s b/test/MC/MachO/temp-labels.s index 8be5919bf02..97b32d8dfdf 100644 --- a/test/MC/MachO/temp-labels.s +++ b/test/MC/MachO/temp-labels.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -save-temp-labels -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -save-temp-labels -o - | llvm-readobj --symbols - | FileCheck %s _f0: .long 0 diff --git a/test/MC/MachO/thread_init_func.s b/test/MC/MachO/thread_init_func.s index 58d3fac8018..166d57702d2 100644 --- a/test/MC/MachO/thread_init_func.s +++ b/test/MC/MachO/thread_init_func.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --macho-segment | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --macho-segment - | FileCheck %s .thread_init_func .quad 0 diff --git a/test/MC/MachO/tls.s b/test/MC/MachO/tls.s index 671184a8406..d2fab68632a 100644 --- a/test/MC/MachO/tls.s +++ b/test/MC/MachO/tls.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s .section __TEXT,__text,regular,pure_instructions .section __DATA,__thread_data,thread_local_regular diff --git a/test/MC/MachO/tlv-bss.ll b/test/MC/MachO/tlv-bss.ll index 7840367276a..58587766d46 100644 --- a/test/MC/MachO/tlv-bss.ll +++ b/test/MC/MachO/tlv-bss.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -mtriple=x86_64-apple-darwin12 -filetype=obj -o - %s | llvm-readobj -S | FileCheck %s +; RUN: llc -O0 -mtriple=x86_64-apple-darwin12 -filetype=obj -o - %s | llvm-readobj -S - | FileCheck %s ; Test that we emit weak_odr thread_locals correctly into the thread_bss section ; PR15972 diff --git a/test/MC/MachO/tlv-reloc.s b/test/MC/MachO/tlv-reloc.s index a429fdd2376..ee8192dc754 100644 --- a/test/MC/MachO/tlv-reloc.s +++ b/test/MC/MachO/tlv-reloc.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s .tdata _a$tlv$init: diff --git a/test/MC/MachO/tlv.s b/test/MC/MachO/tlv.s index 774436bd319..70a9d43190d 100644 --- a/test/MC/MachO/tlv.s +++ b/test/MC/MachO/tlv.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s .tlv .globl _a diff --git a/test/MC/MachO/values.s b/test/MC/MachO/values.s index 5a406acfde0..b6f71be31e6 100644 --- a/test/MC/MachO/values.s +++ b/test/MC/MachO/values.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s .long 0 text_def_int: diff --git a/test/MC/MachO/variable-exprs.s b/test/MC/MachO/variable-exprs.s index b4b57811529..6babb97f60f 100644 --- a/test/MC/MachO/variable-exprs.s +++ b/test/MC/MachO/variable-exprs.s @@ -1,9 +1,9 @@ // RUN: llvm-mc -triple i386-apple-darwin10 %s -filetype=obj -o %t.o -// RUN: llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols < %t.o > %t.dump +// RUN: llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols < %t.o - > %t.dump // RUN: FileCheck --check-prefix=CHECK-I386 < %t.dump %s // RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o %t.o -// RUN: llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols < %t.o > %t.dump +// RUN: llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols < %t.o - > %t.dump // RUN: FileCheck --check-prefix=CHECK-X86_64 < %t.dump %s .data diff --git a/test/MC/MachO/weakdef.s b/test/MC/MachO/weakdef.s index 497aad84428..200be41cd4c 100644 --- a/test/MC/MachO/weakdef.s +++ b/test/MC/MachO/weakdef.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s .section __DATA,__datacoal_nt,coalesced .section __TEXT,__const_coal,coalesced diff --git a/test/MC/MachO/x86-data-in-code.s b/test/MC/MachO/x86-data-in-code.s index e7b2406e5d0..346dae2955d 100644 --- a/test/MC/MachO/x86-data-in-code.s +++ b/test/MC/MachO/x86-data-in-code.s @@ -1,5 +1,5 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin10 -filetype=obj -o - < %s | llvm-readobj --macho-data-in-code | FileCheck %s -// RUN: llvm-mc -triple i686-apple-darwin10 -filetype=obj -o - < %s | llvm-readobj --macho-data-in-code | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin10 -filetype=obj -o - < %s | llvm-readobj --macho-data-in-code - | FileCheck %s +// RUN: llvm-mc -triple i686-apple-darwin10 -filetype=obj -o - < %s | llvm-readobj --macho-data-in-code - | FileCheck %s .text _foo: diff --git a/test/MC/MachO/x86_32-optimal_nop.s b/test/MC/MachO/x86_32-optimal_nop.s index 23286a50615..bb784b9da99 100644 --- a/test/MC/MachO/x86_32-optimal_nop.s +++ b/test/MC/MachO/x86_32-optimal_nop.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 -mcpu=pentiumpro %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 -mcpu=pentiumpro %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s # 1 byte nop test .align 4, 0 # start with 16 byte alignment filled with zeros diff --git a/test/MC/MachO/x86_32-scattered-reloc-fallback.s b/test/MC/MachO/x86_32-scattered-reloc-fallback.s index 909daa2bd27..c9e25f675a4 100644 --- a/test/MC/MachO/x86_32-scattered-reloc-fallback.s +++ b/test/MC/MachO/x86_32-scattered-reloc-fallback.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -S --sd | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -S --sd - | FileCheck %s // rdar://15526046 diff --git a/test/MC/MachO/x86_32-sections.s b/test/MC/MachO/x86_32-sections.s index 13b8ed3ca94..a81fa0dcd17 100644 --- a/test/MC/MachO/x86_32-sections.s +++ b/test/MC/MachO/x86_32-sections.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd --macho-segment | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd --macho-segment - | FileCheck %s .text .section __TEXT,__text,regular,pure_instructions diff --git a/test/MC/MachO/x86_32-symbols.s b/test/MC/MachO/x86_32-symbols.s index 35bc90491a0..66931fff30a 100644 --- a/test/MC/MachO/x86_32-symbols.s +++ b/test/MC/MachO/x86_32-symbols.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s .text L0: diff --git a/test/MC/MachO/x86_64-mergeable.s b/test/MC/MachO/x86_64-mergeable.s index b7933f92c0c..2c6be44eb35 100644 --- a/test/MC/MachO/x86_64-mergeable.s +++ b/test/MC/MachO/x86_64-mergeable.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin14 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin14 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs - | FileCheck %s // Test that we "S + K" produce a relocation with a symbol, but just S produces // a relocation with the section. diff --git a/test/MC/MachO/x86_64-reloc-arithmetic.s b/test/MC/MachO/x86_64-reloc-arithmetic.s index cbcb77d4194..0e3d2712e48 100644 --- a/test/MC/MachO/x86_64-reloc-arithmetic.s +++ b/test/MC/MachO/x86_64-reloc-arithmetic.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --symbols | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --symbols - | FileCheck %s // rdar://9906375 .org 0x100 diff --git a/test/MC/MachO/x86_64-sections.s b/test/MC/MachO/x86_64-sections.s index 450ba3cd887..86b65072a90 100644 --- a/test/MC/MachO/x86_64-sections.s +++ b/test/MC/MachO/x86_64-sections.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --macho-segment | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --macho-segment - | FileCheck %s .text .section __TEXT,__text,regular,pure_instructions diff --git a/test/MC/MachO/x86_64-symbols.s b/test/MC/MachO/x86_64-symbols.s index e781eeb272c..789def09b27 100644 --- a/test/MC/MachO/x86_64-symbols.s +++ b/test/MC/MachO/x86_64-symbols.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj --symbols - | FileCheck %s .text L0: diff --git a/test/MC/MachO/zero-space.s b/test/MC/MachO/zero-space.s index e809aa70f7f..753bd7851bf 100644 --- a/test/MC/MachO/zero-space.s +++ b/test/MC/MachO/zero-space.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s .const .p2align 6 diff --git a/test/MC/MachO/zerofill-1.s b/test/MC/MachO/zerofill-1.s index 5ca6b24ee1e..499364b909c 100644 --- a/test/MC/MachO/zerofill-1.s +++ b/test/MC/MachO/zerofill-1.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s .text .byte 0 // Align to 2**3 bytes, not 2**1 diff --git a/test/MC/MachO/zerofill-2.s b/test/MC/MachO/zerofill-2.s index 97bde10fa43..3ac56a9af54 100644 --- a/test/MC/MachO/zerofill-2.s +++ b/test/MC/MachO/zerofill-2.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s .byte 0 diff --git a/test/MC/MachO/zerofill-3.s b/test/MC/MachO/zerofill-3.s index c8fb80f5290..f894592aa04 100644 --- a/test/MC/MachO/zerofill-3.s +++ b/test/MC/MachO/zerofill-3.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s // FIXME: We don't get the order right currently, the assembler first // orders the symbols, then assigns addresses. :( diff --git a/test/MC/MachO/zerofill-4.s b/test/MC/MachO/zerofill-4.s index a095e9a57b6..5724fa5745c 100644 --- a/test/MC/MachO/zerofill-4.s +++ b/test/MC/MachO/zerofill-4.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --symbols - | FileCheck %s .zerofill __DATA,__bss,_fill0,1,0 .zerofill __DATA,__bss,_a,4,2 diff --git a/test/MC/MachO/zerofill-5.s b/test/MC/MachO/zerofill-5.s index 2eb494a038b..b25629171db 100644 --- a/test/MC/MachO/zerofill-5.s +++ b/test/MC/MachO/zerofill-5.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s .text .align 3 diff --git a/test/MC/MachO/zerofill-sect-align.s b/test/MC/MachO/zerofill-sect-align.s index c595bdc785d..d681b2fe07e 100644 --- a/test/MC/MachO/zerofill-sect-align.s +++ b/test/MC/MachO/zerofill-sect-align.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --symbols - | FileCheck %s // // Check that the section itself is aligned. diff --git a/test/MC/Mips/cfi-advance-loc.s b/test/MC/Mips/cfi-advance-loc.s index 407ad3faffe..9c4d3c516c4 100644 --- a/test/MC/Mips/cfi-advance-loc.s +++ b/test/MC/Mips/cfi-advance-loc.s @@ -1,5 +1,5 @@ -// RUN: llvm-mc -filetype=obj -triple mipsel-pc-Linux-gnu %s -o - | llvm-readobj -S --sd | FileCheck %s -check-prefix=CHECK-LE -// RUN: llvm-mc -filetype=obj -triple mips-pc-linux-gnu %s -o - | llvm-readobj -S --sd | FileCheck %s -check-prefix=CHECK-BE +// RUN: llvm-mc -filetype=obj -triple mipsel-pc-Linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK-LE +// RUN: llvm-mc -filetype=obj -triple mips-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK-BE // test that this produces a correctly encoded cfi_advance_loc for both endians. diff --git a/test/MC/Mips/directive-ent.s b/test/MC/Mips/directive-ent.s index 4271c046c0e..c5166882c6d 100644 --- a/test/MC/Mips/directive-ent.s +++ b/test/MC/Mips/directive-ent.s @@ -4,14 +4,14 @@ # RUN: llvm-mc -mcpu=mips32 -triple mips-unknown-unknown %s | \ # RUN: FileCheck -check-prefix=ASM %s # RUN: llvm-mc -filetype=obj -mcpu=mips32 -triple mips-unknown-unknown %s | \ -# RUN: llvm-readobj --symbols | \ +# RUN: llvm-readobj --symbols - | \ # RUN: FileCheck -check-prefixes=OBJ,OBJ-32 %s # # RUN: llvm-mc -mcpu=mips32 -mattr=micromips -triple mips-unknown-unknown %s | \ # RUN: FileCheck -check-prefix=ASM %s # RUN: llvm-mc -filetype=obj -mcpu=mips32 -mattr=micromips \ # RUN: -triple mips-unknown-unknown %s | \ -# RUN: llvm-readobj --symbols | \ +# RUN: llvm-readobj --symbols - | \ # RUN: FileCheck -check-prefixes=OBJ,OBJ-MM %s # .ent a diff --git a/test/MC/Mips/elf-N32.s b/test/MC/Mips/elf-N32.s index 853973152b3..df5df392fcc 100644 --- a/test/MC/Mips/elf-N32.s +++ b/test/MC/Mips/elf-N32.s @@ -1,11 +1,11 @@ // Check generation of N32 ABI relocations. // RUN: llvm-mc -filetype=obj -triple=mips64-linux-gnu -mcpu=mips3 \ -// RUN: -target-abi=n32 %s -o - | llvm-readobj -r | FileCheck %s +// RUN: -target-abi=n32 %s -o - | llvm-readobj -r - | FileCheck %s // RUN: llvm-mc -filetype=obj -triple=mips64-linux-gnuabin32 -mcpu=mips3 \ -// RUN: %s -o - | llvm-readobj -r | FileCheck %s +// RUN: %s -o - | llvm-readobj -r - | FileCheck %s // RUN: llvm-mc -filetype=obj -triple=mipsn32 -mcpu=mips3 \ -// RUN: %s -o - | llvm-readobj -r | FileCheck %s +// RUN: %s -o - | llvm-readobj -r - | FileCheck %s // CHECK: Relocations [ // CHECK-NEXT: Section (3) .rela.text { diff --git a/test/MC/Mips/elf-N64.s b/test/MC/Mips/elf-N64.s index 6be46ddd8a9..c1d9bd061c2 100644 --- a/test/MC/Mips/elf-N64.s +++ b/test/MC/Mips/elf-N64.s @@ -1,5 +1,5 @@ -// RUN: llvm-mc -filetype=obj -triple=mips64el-pc-linux -mcpu=mips64 %s -o - | llvm-readobj -r | FileCheck %s -// RUN: llvm-mc -filetype=obj -triple=mips64-pc-linux -mcpu=mips64 %s -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple=mips64el-pc-linux -mcpu=mips64 %s -o - | llvm-readobj -r - | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple=mips64-pc-linux -mcpu=mips64 %s -o - | llvm-readobj -r - | FileCheck %s // Check for N64 relocation production. // Check that the appropriate relocations were created. diff --git a/test/MC/Mips/elf-debug-section.s b/test/MC/Mips/elf-debug-section.s index 8e936f7bac5..237fef12703 100644 --- a/test/MC/Mips/elf-debug-section.s +++ b/test/MC/Mips/elf-debug-section.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -filetype=obj -triple=mips-linux-gnu -g %s -o - \ -# RUN: | llvm-readobj -S | FileCheck %s +# RUN: | llvm-readobj -S - | FileCheck %s # CHECK: Section { # CHECK: Name: .debug_line diff --git a/test/MC/Mips/elf-gprel-32-64.s b/test/MC/Mips/elf-gprel-32-64.s index b590c97b278..b16f587ccce 100644 --- a/test/MC/Mips/elf-gprel-32-64.s +++ b/test/MC/Mips/elf-gprel-32-64.s @@ -1,8 +1,8 @@ // RUN: llvm-mc -filetype=obj -triple=mips64el-pc-linux -mcpu=mips64 %s -o - \ -// RUN: | llvm-readobj -r \ +// RUN: | llvm-readobj -r - \ // RUN: | FileCheck %s // RUN: llvm-mc -filetype=obj -triple=mips64-pc-linux -mcpu=mips64 %s -o - \ -// RUN: | llvm-readobj -r \ +// RUN: | llvm-readobj -r - \ // RUN: | FileCheck %s // Check that the appropriate relocations were created. diff --git a/test/MC/Mips/elf-relsym.s b/test/MC/Mips/elf-relsym.s index e0b384ca527..b8c2f89e82e 100644 --- a/test/MC/Mips/elf-relsym.s +++ b/test/MC/Mips/elf-relsym.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux %s -o - | llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux %s -o - | llvm-readobj --symbols - | FileCheck %s // Check that the appropriate symbols were created. diff --git a/test/MC/Mips/elf-tls.s b/test/MC/Mips/elf-tls.s index 23a52e1ef05..43730974bee 100644 --- a/test/MC/Mips/elf-tls.s +++ b/test/MC/Mips/elf-tls.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux %s -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux %s -o - | llvm-readobj -r - | FileCheck %s // Check that the appropriate relocations were created. diff --git a/test/MC/Mips/elf_basic.s b/test/MC/Mips/elf_basic.s index 4739247f67f..be6e24823c6 100644 --- a/test/MC/Mips/elf_basic.s +++ b/test/MC/Mips/elf_basic.s @@ -1,11 +1,11 @@ // 32 bit big endian -// RUN: llvm-mc -filetype=obj -triple mips-unknown-linux %s -o - | llvm-readobj -h | FileCheck -check-prefix=CHECK-BE32 %s +// RUN: llvm-mc -filetype=obj -triple mips-unknown-linux %s -o - | llvm-readobj -h - | FileCheck -check-prefix=CHECK-BE32 %s // 32 bit little endian -// RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux %s -o - | llvm-readobj -h | FileCheck -check-prefix=CHECK-LE32 %s +// RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux %s -o - | llvm-readobj -h - | FileCheck -check-prefix=CHECK-LE32 %s // 64 bit big endian -// RUN: llvm-mc -filetype=obj -arch=mips64 -triple mips64-unknown-linux %s -o - | llvm-readobj -h | FileCheck -check-prefix=CHECK-BE64 %s +// RUN: llvm-mc -filetype=obj -arch=mips64 -triple mips64-unknown-linux %s -o - | llvm-readobj -h - | FileCheck -check-prefix=CHECK-BE64 %s // 64 bit little endian -// RUN: llvm-mc -filetype=obj -arch=mips64el -triple mips64el-unknown-linux %s -o - | llvm-readobj -h | FileCheck -check-prefix=CHECK-LE64 %s +// RUN: llvm-mc -filetype=obj -arch=mips64el -triple mips64el-unknown-linux %s -o - | llvm-readobj -h - | FileCheck -check-prefix=CHECK-LE64 %s // Check that we produce 32 bit with each endian. diff --git a/test/MC/Mips/elf_eflags.s b/test/MC/Mips/elf_eflags.s index 161f18562a8..fced1cfe76f 100644 --- a/test/MC/Mips/elf_eflags.s +++ b/test/MC/Mips/elf_eflags.s @@ -1,205 +1,205 @@ # These *MUST* match the output of 'gcc -c' compiled with the same triple and # corresponding options (-mcpu=mips32 -> -mips32 for example). -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r6 -target-abi n64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64R6 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r6 -target-abi n64 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64R6 %s # MIPSEL-MIPS64R6: Flags [ (0xA0000404) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r6 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64R6-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r6 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64R6-NAN2008 %s # MIPSEL-MIPS64R6-NAN2008: Flags [ (0xA0000404) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r2 -target-abi n64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64R2 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r3 -target-abi n64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64R2 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r5 -target-abi n64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64R2 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r2 -target-abi n64 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64R2 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r3 -target-abi n64 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64R2 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r5 -target-abi n64 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64R2 %s # MIPSEL-MIPS64R2: Flags [ (0x80000004) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r2 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64R2-NAN2008 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r3 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64R2-NAN2008 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r5 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64R2-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r2 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64R2-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r3 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64R2-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r5 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64R2-NAN2008 %s # MIPSEL-MIPS64R2-NAN2008: Flags [ (0x80000404) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64 -target-abi n64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64 -target-abi n64 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64 %s # MIPSEL-MIPS64: Flags [ (0x60000004) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64-NAN2008 %s # MIPSEL-MIPS64-NAN2008: Flags [ (0x60000404) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r6 -target-abi n64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64R6-PIC %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r6 -target-abi n64 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64R6-PIC %s # MIPSEL-MIPS64R6-PIC: Flags [ (0xA0000406) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r6 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64R6-NAN2008-PIC %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r6 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64R6-NAN2008-PIC %s # MIPSEL-MIPS64R6-NAN2008-PIC: Flags [ (0xA0000406) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r2 -target-abi n64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64R2-PIC %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r3 -target-abi n64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64R2-PIC %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r5 -target-abi n64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64R2-PIC %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r2 -target-abi n64 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64R2-PIC %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r3 -target-abi n64 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64R2-PIC %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r5 -target-abi n64 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64R2-PIC %s # MIPSEL-MIPS64R2-PIC: Flags [ (0x80000006) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r2 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64R2-NAN2008-PIC %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r3 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64R2-NAN2008-PIC %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r5 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64R2-NAN2008-PIC %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r2 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64R2-NAN2008-PIC %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r3 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64R2-NAN2008-PIC %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64r5 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64R2-NAN2008-PIC %s # MIPSEL-MIPS64R2-NAN2008-PIC: Flags [ (0x80000406) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64 -target-abi n64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64-PIC %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64 -target-abi n64 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64-PIC %s # MIPSEL-MIPS64-PIC: Flags [ (0x60000006) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64-NAN2008-PIC %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=mips64 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS64-NAN2008-PIC %s # MIPSEL-MIPS64-NAN2008-PIC: Flags [ (0x60000406) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r6 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS32R6 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r6 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS32R6 %s # MIPSEL-MIPS32R6: Flags [ (0x90001404) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r6 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS32R6-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r6 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS32R6-NAN2008 %s # MIPSEL-MIPS32R6-NAN2008: Flags [ (0x90001404) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r2 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS32R2 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r3 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS32R2 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r5 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS32R2 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r2 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS32R2 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r3 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS32R2 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r5 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS32R2 %s # MIPSEL-MIPS32R2: Flags [ (0x70001004) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r2 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS32R2-NAN2008 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r3 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS32R2-NAN2008 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r5 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS32R2-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r2 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS32R2-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r3 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS32R2-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r5 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS32R2-NAN2008 %s # MIPSEL-MIPS32R2-NAN2008: Flags [ (0x70001404) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS32 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS32 %s # MIPSEL-MIPS32: Flags [ (0x50001004) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS32-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS32-NAN2008 %s # MIPSEL-MIPS32-NAN2008: Flags [ (0x50001404) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r2 -target-abi n32 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2-N32 %s -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -target-abi n32 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2-N32 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r2 -target-abi n32 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64R2-N32 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -target-abi n32 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64R2-N32 %s # MIPS64EL-MIPS64R2-N32: Flags [ (0x80000024) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -target-abi n32 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2-N32-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -target-abi n32 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64R2-N32-NAN2008 %s # MIPS64EL-MIPS64R2-N32-NAN2008: Flags [ (0x80000424) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 -target-abi n32 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64-N32 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 -target-abi n32 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64-N32 %s # MIPS64EL-MIPS64-N32: Flags [ (0x60000024) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 -target-abi n32 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64-N32-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 -target-abi n32 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64-N32-NAN2008 %s # MIPS64EL-MIPS64-N32-NAN2008: Flags [ (0x60000424) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -target-abi n64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2-N64 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -target-abi n64 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64R2-N64 %s # MIPS64EL-MIPS64R2-N64: Flags [ (0x80000004) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2-N64-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64R2-N64-NAN2008 %s # MIPS64EL-MIPS64R2-N64-NAN2008: Flags [ (0x80000404) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 %s -target-abi n64 -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64-N64 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 %s -target-abi n64 -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64-N64 %s # MIPS64EL-MIPS64-N64: Flags [ (0x60000004) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 %s -target-abi n64 -mattr=+nan2008 -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64-N64-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 %s -target-abi n64 -mattr=+nan2008 -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64-N64-NAN2008 %s # MIPS64EL-MIPS64-N64-NAN2008: Flags [ (0x60000404) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -position-independent -mcpu=mips64r2 -target-abi n64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2-N64-PIC %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -position-independent -mcpu=mips64r2 -target-abi n64 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64R2-N64-PIC %s # MIPS64EL-MIPS64R2-N64-PIC: Flags [ (0x80000006) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -position-independent -mcpu=mips64r2 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2-N64-NAN2008-PIC %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -position-independent -mcpu=mips64r2 -target-abi n64 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64R2-N64-NAN2008-PIC %s # MIPS64EL-MIPS64R2-N64-NAN2008-PIC: Flags [ (0x80000406) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -position-independent -mcpu=mips64 %s -target-abi n64 -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64-N64-PIC %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -position-independent -mcpu=mips64 %s -target-abi n64 -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64-N64-PIC %s # MIPS64EL-MIPS64-N64-PIC: Flags [ (0x60000006) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -position-independent -mcpu=mips64 %s -target-abi n64 -mattr=+nan2008 -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64-N64-NAN2008-PIC %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -position-independent -mcpu=mips64 %s -target-abi n64 -mattr=+nan2008 -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64-N64-NAN2008-PIC %s # MIPS64EL-MIPS64-N64-NAN2008-PIC: Flags [ (0x60000406) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -target-abi o32 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2-O32 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -target-abi o32 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64R2-O32 %s # MIPS64EL-MIPS64R2-O32: Flags [ (0x80001104) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -target-abi o32 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2-O32-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -target-abi o32 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64R2-O32-NAN2008 %s # MIPS64EL-MIPS64R2-O32-NAN2008: Flags [ (0x80001504) -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips5 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS5 %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips5 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS5 %s # MIPS5: Flags [ (0x40000004) -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips5 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS5-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips5 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS5-NAN2008 %s # MIPS5-NAN2008: Flags [ (0x40000404) -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips4 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS4 %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips4 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS4 %s # MIPS4: Flags [ (0x30000004) -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips4 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS4-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips4 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS4-NAN2008 %s # MIPS4-NAN2008: Flags [ (0x30000404) -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips3 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS3 %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips3 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS3 %s # MIPS3: Flags [ (0x20000004) -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips3 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS3-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips3 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS3-NAN2008 %s # MIPS3-NAN2008: Flags [ (0x20000404) -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -position-independent -mcpu=mips5 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS5-PIC %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -position-independent -mcpu=mips5 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS5-PIC %s # MIPS5-PIC: Flags [ (0x40000006) -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -position-independent -mcpu=mips5 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS5-NAN2008-PIC %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -position-independent -mcpu=mips5 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS5-NAN2008-PIC %s # MIPS5-NAN2008-PIC: Flags [ (0x40000406) -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -position-independent -mcpu=mips4 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS4-PIC %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -position-independent -mcpu=mips4 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS4-PIC %s # MIPS4-PIC: Flags [ (0x30000006) -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -position-independent -mcpu=mips4 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS4-NAN2008-PIC %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -position-independent -mcpu=mips4 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS4-NAN2008-PIC %s # MIPS4-NAN2008-PIC: Flags [ (0x30000406) -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -position-independent -mcpu=mips3 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS3-PIC %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -position-independent -mcpu=mips3 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS3-PIC %s # MIPS3-PIC: Flags [ (0x20000006) -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -position-independent -mcpu=mips3 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS3-NAN2008-PIC %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -position-independent -mcpu=mips3 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS3-NAN2008-PIC %s # MIPS3-NAN2008-PIC: Flags [ (0x20000406) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips2 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS2 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips2 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS2 %s # MIPSEL-MIPS2: Flags [ (0x10001004) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips2 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS2-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips2 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-MIPS2-NAN2008 %s # MIPSEL-MIPS2-NAN2008: Flags [ (0x10001404) -# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips1 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS1 %s +# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips1 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS1 %s # MIPS1: Flags [ (0x1004) -# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips1 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS1-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips1 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS1-NAN2008 %s # MIPS1-NAN2008: Flags [ (0x1404) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 %s -target-abi o32 -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64-O32 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 %s -target-abi o32 -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64-O32 %s # MIPS64EL-MIPS64-O32: Flags [ (0x60001104) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 %s -target-abi o32 -mattr=+nan2008 -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64-O32-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 %s -target-abi o32 -mattr=+nan2008 -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64-O32-NAN2008 %s # MIPS64EL-MIPS64-O32-NAN2008: Flags [ (0x60001504) # Default ABI for MIPS64 is N64 as opposed to GCC/GAS (N32) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64R2 %s # MIPS64EL-MIPS64R2: Flags [ (0x80000004) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64R2-NAN2008 %s # MIPS64EL-MIPS64R2-NAN2008: Flags [ (0x80000404) # Default ABI for MIPS64 is N64 as opposed to GCC/GAS (N32) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64 %s # MIPS64EL-MIPS64: Flags [ (0x60000004) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64-NAN2008 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64-NAN2008 %s # MIPS64EL-MIPS64-NAN2008: Flags [ (0x60000404) # Default ABI for MIPS64 is N64 as opposed to GCC/GAS (N32) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -position-independent -mcpu=mips64r2 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2-PIC %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -position-independent -mcpu=mips64r2 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64R2-PIC %s # MIPS64EL-MIPS64R2-PIC: Flags [ (0x80000006) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -position-independent -mcpu=mips64r2 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2-NAN2008-PIC %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -position-independent -mcpu=mips64r2 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64R2-NAN2008-PIC %s # MIPS64EL-MIPS64R2-NAN2008-PIC: Flags [ (0x80000406) # Default ABI for MIPS64 is N64 as opposed to GCC/GAS (N32) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -position-independent -mcpu=mips64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64-PIC %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -position-independent -mcpu=mips64 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64-PIC %s # MIPS64EL-MIPS64-PIC: Flags [ (0x60000006) -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -position-independent -mcpu=mips64 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64-NAN2008-PIC %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -position-independent -mcpu=mips64 -mattr=+nan2008 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPS64EL-MIPS64-NAN2008-PIC %s # MIPS64EL-MIPS64-NAN2008-PIC: Flags [ (0x60000406) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=octeon -target-abi n64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-OCTEON %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=octeon -target-abi n64 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-OCTEON %s # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux \ # RUN: -mcpu=octeon+ -target-abi n64 %s -o - \ -# RUN: | llvm-readobj -h | FileCheck --check-prefix=MIPSEL-OCTEON %s +# RUN: | llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-OCTEON %s # MIPSEL-OCTEON: Flags [ (0x808B0004) -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=octeon -target-abi n64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-OCTEON-PIC %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -position-independent -mcpu=octeon -target-abi n64 %s -o -| llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-OCTEON-PIC %s # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux \ # RUN: -position-independent -mcpu=octeon+ -target-abi n64 %s -o - \ -# RUN: | llvm-readobj -h | FileCheck --check-prefix=MIPSEL-OCTEON-PIC %s +# RUN: | llvm-readobj -h - | FileCheck --check-prefix=MIPSEL-OCTEON-PIC %s # MIPSEL-OCTEON-PIC: Flags [ (0x808B0006) diff --git a/test/MC/Mips/elf_eflags_abicalls.s b/test/MC/Mips/elf_eflags_abicalls.s index 9e9c013fb3f..b8b8d6962fa 100644 --- a/test/MC/Mips/elf_eflags_abicalls.s +++ b/test/MC/Mips/elf_eflags_abicalls.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o -| llvm-readobj -h | FileCheck %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o -| llvm-readobj -h - | FileCheck %s # This *MUST* match the output of 'gcc -c' compiled with the same triple. # CHECK: Flags [ (0x50001006) diff --git a/test/MC/Mips/elf_eflags_micromips.s b/test/MC/Mips/elf_eflags_micromips.s index 623f5a73291..9a9f9f783f3 100644 --- a/test/MC/Mips/elf_eflags_micromips.s +++ b/test/MC/Mips/elf_eflags_micromips.s @@ -1,8 +1,8 @@ # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 \ -# RUN: -mattr=+micromips < /dev/null -o -| llvm-readobj -h | FileCheck \ +# RUN: -mattr=+micromips < /dev/null -o -| llvm-readobj -h - | FileCheck \ # RUN: -check-prefix=NO-MM %s # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o - \ -# RUN: | llvm-readobj -h | FileCheck %s +# RUN: | llvm-readobj -h - | FileCheck %s # This *MUST* match the output of 'gcc -c' compiled with the same triple. # CHECK: Flags [ (0x52001004) diff --git a/test/MC/Mips/elf_eflags_micromips2.s b/test/MC/Mips/elf_eflags_micromips2.s index d44cf7f37a7..06ad9a73dd6 100644 --- a/test/MC/Mips/elf_eflags_micromips2.s +++ b/test/MC/Mips/elf_eflags_micromips2.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o - \ -# RUN: | llvm-readobj -h | FileCheck %s +# RUN: | llvm-readobj -h - | FileCheck %s # This *MUST* match the output of 'gcc -c' compiled with the same triple. # The microMIPS flag is not set if no microMIPS code was emitted. diff --git a/test/MC/Mips/elf_eflags_mips16.s b/test/MC/Mips/elf_eflags_mips16.s index 5143d36df25..6582a61ee98 100644 --- a/test/MC/Mips/elf_eflags_mips16.s +++ b/test/MC/Mips/elf_eflags_mips16.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o -| llvm-readobj -h | FileCheck %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o -| llvm-readobj -h - | FileCheck %s # This *MUST* match the output of 'gcc -c' compiled with the same triple. # CHECK: Flags [ (0x54001004) diff --git a/test/MC/Mips/elf_eflags_nan2008.s b/test/MC/Mips/elf_eflags_nan2008.s index f6903429c0d..2dbe1b3b273 100644 --- a/test/MC/Mips/elf_eflags_nan2008.s +++ b/test/MC/Mips/elf_eflags_nan2008.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o - | \ -# RUN: llvm-readobj -h | \ +# RUN: llvm-readobj -h - | \ # RUN: FileCheck %s -check-prefix=CHECK-OBJ # RUN: llvm-mc -triple mipsel-unknown-linux -mcpu=mips32 %s -o -| \ # RUN: FileCheck %s -check-prefix=CHECK-ASM diff --git a/test/MC/Mips/elf_eflags_nanlegacy.s b/test/MC/Mips/elf_eflags_nanlegacy.s index 0fa07879d37..4d93448647d 100644 --- a/test/MC/Mips/elf_eflags_nanlegacy.s +++ b/test/MC/Mips/elf_eflags_nanlegacy.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o - | \ -# RUN: llvm-readobj -h | \ +# RUN: llvm-readobj -h - | \ # RUN: FileCheck %s -check-prefix=CHECK-OBJ # RUN: llvm-mc -triple mipsel-unknown-linux -mcpu=mips32 %s -o -| \ # RUN: FileCheck %s -check-prefix=CHECK-ASM diff --git a/test/MC/Mips/elf_eflags_noreorder.s b/test/MC/Mips/elf_eflags_noreorder.s index fe46b41ae2f..1fd9fd9f8d2 100644 --- a/test/MC/Mips/elf_eflags_noreorder.s +++ b/test/MC/Mips/elf_eflags_noreorder.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o -| llvm-readobj -h | FileCheck %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o -| llvm-readobj -h - | FileCheck %s # This *MUST* match the output of 'gcc -c' compiled with the same triple. # CHECK: Flags [ (0x50001005) diff --git a/test/MC/Mips/elf_eflags_pic0.s b/test/MC/Mips/elf_eflags_pic0.s index 04115fad1a0..1d403c7c2a1 100644 --- a/test/MC/Mips/elf_eflags_pic0.s +++ b/test/MC/Mips/elf_eflags_pic0.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o -| llvm-readobj -h | FileCheck %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o -| llvm-readobj -h - | FileCheck %s # This *MUST* match the output of 'gcc -c' compiled with the same triple. # CHECK: Flags [ (0x50001004) diff --git a/test/MC/Mips/elf_eflags_pic2.s b/test/MC/Mips/elf_eflags_pic2.s index 692c478d0bc..278308e866b 100644 --- a/test/MC/Mips/elf_eflags_pic2.s +++ b/test/MC/Mips/elf_eflags_pic2.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o -| llvm-readobj -h | FileCheck %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o -| llvm-readobj -h - | FileCheck %s # This *MUST* match the output of 'gcc -c' compiled with the same triple. # CHECK: Flags [ (0x50001006) diff --git a/test/MC/Mips/elf_header.s b/test/MC/Mips/elf_header.s index 14136f3112e..eb6252061c4 100644 --- a/test/MC/Mips/elf_header.s +++ b/test/MC/Mips/elf_header.s @@ -1,94 +1,94 @@ # Default ABI for MIPS32 is O32. -# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips1 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS1 %s -# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips2 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS2 %s -# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips3 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS3,32BITMODE %s -# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips4 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS4,32BITMODE %s -# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips5 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS5,32BITMODE %s -# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS32R1 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R1 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R1 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r2 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R2 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r3 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R3 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r5 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R5 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r2 -mattr=+nan2008 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN2008,MIPS32R2 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r3 -mattr=+nan2008 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN2008,MIPS32R3 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r5 -mattr=+nan2008 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN2008,MIPS32R5 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r6 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN2008,MIPS32R6 %s +# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips1 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS1 %s +# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips2 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS2 %s +# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips3 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS3,32BITMODE %s +# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips4 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS4,32BITMODE %s +# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips5 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS5,32BITMODE %s +# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS32R1 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R1 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R1 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r2 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R2 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r3 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R3 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r5 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R5 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r2 -mattr=+nan2008 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN2008,MIPS32R2 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r3 -mattr=+nan2008 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN2008,MIPS32R3 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r5 -mattr=+nan2008 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN2008,MIPS32R5 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r6 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN2008,MIPS32R6 %s # Selected ABI O32 takes precedence over target triple. -# FIXME: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips1 -target-abi=o32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS1 %s -# FIXME: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips2 -target-abi=o32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS2 %s -# FIXME: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips3 -target-abi=o32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS3,32BITMODE %s -# FIXME: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips4 -target-abi=o32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS4,32BITMODE %s -# FIXME: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips5 -target-abi=o32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS5,32BITMODE %s -# FIXME: llvm-mc -filetype=obj -triple mips64-unknown-linux -target-abi=o32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS32R1 %s -# FIXME: llvm-mc -filetype=obj -triple mips64el-unknown-linux -target-abi=o32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R1 %s -# FIXME: llvm-mc -filetype=obj -triple mips64el-unknown-linux -target-abi=o32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R1 %s -# FIXME: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips32r2 -target-abi=o32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R2 %s -# FIXME: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips32r3 -target-abi=o32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R3 %s -# FIXME: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips32r5 -target-abi=o32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R5 %s -# FIXME: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips32r2 -target-abi=o32 -mattr=+nan2008 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN2008,MIPS32R2 %s -# FIXME: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips32r3 -target-abi=o32 -mattr=+nan2008 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN2008,MIPS32R3 %s -# FIXME: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips32r5 -target-abi=o32 -mattr=+nan2008 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN2008,MIPS32R5 %s -# FIXME: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips32r6 -target-abi=o32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN2008,MIPS32R6 %s +# FIXME: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips1 -target-abi=o32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS1 %s +# FIXME: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips2 -target-abi=o32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS2 %s +# FIXME: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips3 -target-abi=o32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS3,32BITMODE %s +# FIXME: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips4 -target-abi=o32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS4,32BITMODE %s +# FIXME: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips5 -target-abi=o32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS5,32BITMODE %s +# FIXME: llvm-mc -filetype=obj -triple mips64-unknown-linux -target-abi=o32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,O32,NAN1985,MIPS32R1 %s +# FIXME: llvm-mc -filetype=obj -triple mips64el-unknown-linux -target-abi=o32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R1 %s +# FIXME: llvm-mc -filetype=obj -triple mips64el-unknown-linux -target-abi=o32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R1 %s +# FIXME: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips32r2 -target-abi=o32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R2 %s +# FIXME: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips32r3 -target-abi=o32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R3 %s +# FIXME: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips32r5 -target-abi=o32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN1985,MIPS32R5 %s +# FIXME: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips32r2 -target-abi=o32 -mattr=+nan2008 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN2008,MIPS32R2 %s +# FIXME: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips32r3 -target-abi=o32 -mattr=+nan2008 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN2008,MIPS32R3 %s +# FIXME: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips32r5 -target-abi=o32 -mattr=+nan2008 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN2008,MIPS32R5 %s +# FIXME: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips32r6 -target-abi=o32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,O32,NAN2008,MIPS32R6 %s # Default ABI for MIPS64 is N64 as opposed to GCC/GAS (N32). -# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips3 -target-abi=n32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,N32,NAN1985,MIPS3 %s -# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips4 -target-abi=n32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,N32,NAN1985,MIPS4 %s -# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips5 -target-abi=n32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,N32,NAN1985,MIPS5 %s -# FIXME: llvm-mc -filetype=obj -triple mips-unknown-linux -target-abi=n32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,N32,NAN1985,MIPS64R1 %s -# FIXME: llvm-mc -filetype=obj -triple mipsel-unknown-linux -target-abi=n32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN1985,MIPS64R1 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r2 -target-abi=n32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN1985,MIPS64R2 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r3 -target-abi=n32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN1985,MIPS64R3 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r5 -target-abi=n32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN1985,MIPS64R5 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r2 -target-abi=n32 -mattr=+nan2008 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN2008,MIPS64R2 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r3 -target-abi=n32 -mattr=+nan2008 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN2008,MIPS64R3 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r5 -target-abi=n32 -mattr=+nan2008 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN2008,MIPS64R5 %s -# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r6 -target-abi=n32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN2008,MIPS64R6 %s -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips3 -target-abi=n32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,N32,NAN1985,MIPS3 %s -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips4 -target-abi=n32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,N32,NAN1985,MIPS4 %s -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips5 -target-abi=n32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,N32,NAN1985,MIPS5 %s -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -target-abi=n32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,BE,N32,NAN1985,MIPS64R1 %s -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -target-abi=n32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN1985,MIPS64R1 %s -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -target-abi=n32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN1985,MIPS64R2 %s -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r3 -target-abi=n32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN1985,MIPS64R3 %s -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r5 -target-abi=n32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN1985,MIPS64R5 %s -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -target-abi=n32 -mattr=+nan2008 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN2008,MIPS64R2 %s -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r3 -target-abi=n32 -mattr=+nan2008 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN2008,MIPS64R3 %s -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r5 -target-abi=n32 -mattr=+nan2008 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN2008,MIPS64R5 %s -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r6 -target-abi=n32 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN2008,MIPS64R6 %s +# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips3 -target-abi=n32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,N32,NAN1985,MIPS3 %s +# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips4 -target-abi=n32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,N32,NAN1985,MIPS4 %s +# RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips5 -target-abi=n32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,N32,NAN1985,MIPS5 %s +# FIXME: llvm-mc -filetype=obj -triple mips-unknown-linux -target-abi=n32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,N32,NAN1985,MIPS64R1 %s +# FIXME: llvm-mc -filetype=obj -triple mipsel-unknown-linux -target-abi=n32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN1985,MIPS64R1 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r2 -target-abi=n32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN1985,MIPS64R2 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r3 -target-abi=n32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN1985,MIPS64R3 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r5 -target-abi=n32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN1985,MIPS64R5 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r2 -target-abi=n32 -mattr=+nan2008 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN2008,MIPS64R2 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r3 -target-abi=n32 -mattr=+nan2008 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN2008,MIPS64R3 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r5 -target-abi=n32 -mattr=+nan2008 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN2008,MIPS64R5 %s +# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r6 -target-abi=n32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN2008,MIPS64R6 %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips3 -target-abi=n32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,N32,NAN1985,MIPS3 %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips4 -target-abi=n32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,N32,NAN1985,MIPS4 %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips5 -target-abi=n32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,N32,NAN1985,MIPS5 %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -target-abi=n32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,BE,N32,NAN1985,MIPS64R1 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -target-abi=n32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN1985,MIPS64R1 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -target-abi=n32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN1985,MIPS64R2 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r3 -target-abi=n32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN1985,MIPS64R3 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r5 -target-abi=n32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN1985,MIPS64R5 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -target-abi=n32 -mattr=+nan2008 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN2008,MIPS64R2 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r3 -target-abi=n32 -mattr=+nan2008 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN2008,MIPS64R3 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r5 -target-abi=n32 -mattr=+nan2008 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN2008,MIPS64R5 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r6 -target-abi=n32 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF32,LE,N32,NAN2008,MIPS64R6 %s # Default ABI for MIPS64 is N64 as opposed to GCC/GAS (N32). -# FIXME: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips3 -target-abi=n64 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,BE,N64,NAN1985,MIPS3 %s -# FIXME: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips4 -target-abi=n64 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,BE,N64,NAN1985,MIPS4 %s -# FIXME: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips5 -target-abi=n64 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,BE,N64,NAN1985,MIPS5 %s -# FIXME: llvm-mc -filetype=obj -triple mips-unknown-linux -target-abi=n64 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,BE,N64,NAN1985,MIPS64R1 %s -# FIXME: llvm-mc -filetype=obj -triple mipsel-unknown-linux -target-abi=n64 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN1985,MIPS64R1 %s -# FIXME: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r2 -target-abi=n64 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN1985,MIPS64R2 %s -# FIXME: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r3 -target-abi=n64 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN1985,MIPS64R3 %s -# FIXME: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r5 -target-abi=n64 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN1985,MIPS64R5 %s -# FIXME: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r2 -target-abi=n64 -mattr=+nan2008 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN2008,MIPS64R2 %s -# FIXME: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r3 -target-abi=n64 -mattr=+nan2008 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN2008,MIPS64R3 %s -# FIXME: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r5 -target-abi=n64 -mattr=+nan2008 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN2008,MIPS64R5 %s -# FIXME: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r6 -target-abi=n64 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN2008,MIPS64R6 %s -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips3 -target-abi=n64 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,BE,N64,NAN1985,MIPS3 %s -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips4 -target-abi=n64 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,BE,N64,NAN1985,MIPS4 %s -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips5 -target-abi=n64 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,BE,N64,NAN1985,MIPS5 %s +# FIXME: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips3 -target-abi=n64 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,BE,N64,NAN1985,MIPS3 %s +# FIXME: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips4 -target-abi=n64 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,BE,N64,NAN1985,MIPS4 %s +# FIXME: llvm-mc -filetype=obj -triple mips-unknown-linux -mcpu=mips5 -target-abi=n64 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,BE,N64,NAN1985,MIPS5 %s +# FIXME: llvm-mc -filetype=obj -triple mips-unknown-linux -target-abi=n64 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,BE,N64,NAN1985,MIPS64R1 %s +# FIXME: llvm-mc -filetype=obj -triple mipsel-unknown-linux -target-abi=n64 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN1985,MIPS64R1 %s +# FIXME: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r2 -target-abi=n64 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN1985,MIPS64R2 %s +# FIXME: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r3 -target-abi=n64 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN1985,MIPS64R3 %s +# FIXME: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r5 -target-abi=n64 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN1985,MIPS64R5 %s +# FIXME: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r2 -target-abi=n64 -mattr=+nan2008 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN2008,MIPS64R2 %s +# FIXME: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r3 -target-abi=n64 -mattr=+nan2008 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN2008,MIPS64R3 %s +# FIXME: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r5 -target-abi=n64 -mattr=+nan2008 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN2008,MIPS64R5 %s +# FIXME: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r6 -target-abi=n64 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN2008,MIPS64R6 %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips3 -target-abi=n64 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,BE,N64,NAN1985,MIPS3 %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips4 -target-abi=n64 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,BE,N64,NAN1985,MIPS4 %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips5 -target-abi=n64 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,BE,N64,NAN1985,MIPS5 %s -# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,BE,N64,NAN1985,MIPS64R1 %s -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN1985,MIPS64R1 %s -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN1985,MIPS64R2 %s -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r3 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN1985,MIPS64R3 %s -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r5 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN1985,MIPS64R5 %s -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -mattr=+nan2008 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN2008,MIPS64R2 %s -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r3 -mattr=+nan2008 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN2008,MIPS64R3 %s -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r5 -mattr=+nan2008 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN2008,MIPS64R5 %s -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r6 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN2008,MIPS64R6 %s +# RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,BE,N64,NAN1985,MIPS64R1 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN1985,MIPS64R1 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN1985,MIPS64R2 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r3 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN1985,MIPS64R3 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r5 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN1985,MIPS64R5 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -mattr=+nan2008 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN2008,MIPS64R2 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r3 -mattr=+nan2008 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN2008,MIPS64R3 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r5 -mattr=+nan2008 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN2008,MIPS64R5 %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r6 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN2008,MIPS64R6 %s -# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=octeon -target-abi=n64 %s -o - | llvm-readobj -h | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN1985,OCTEON %s +# RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=octeon -target-abi=n64 %s -o - | llvm-readobj -h - | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN1985,OCTEON %s # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux \ # RUN: -mcpu=octeon+ -target-abi=n64 %s -o - \ -# RUN: | llvm-readobj -h \ +# RUN: | llvm-readobj -h - \ # RUN: | FileCheck --check-prefixes=ALL,ELF64,LE,N64,NAN1985,OCTEON %s # ALL: ElfHeader { diff --git a/test/MC/Mips/elf_reginfo.s b/test/MC/Mips/elf_reginfo.s index ea6e39601ef..5aef6b234ab 100644 --- a/test/MC/Mips/elf_reginfo.s +++ b/test/MC/Mips/elf_reginfo.s @@ -2,9 +2,9 @@ # corresponding options (-mabi=64 -> -mattr=+n64 for example). # RUN: llvm-mc -filetype=obj -triple=mips64el-linux -target-abi n64 %s -o - \ -# RUN: | llvm-readobj -S | FileCheck --check-prefix=CHECK_64 %s +# RUN: | llvm-readobj -S - | FileCheck --check-prefix=CHECK_64 %s # RUN: llvm-mc -filetype=obj -triple=mipsel %s -target-abi n32 -o - \ -# RUN: | llvm-readobj -S | FileCheck --check-prefix=CHECK_32 %s +# RUN: | llvm-readobj -S - | FileCheck --check-prefix=CHECK_32 %s # Check for register information sections. # diff --git a/test/MC/Mips/elf_st_other.s b/test/MC/Mips/elf_st_other.s index 8c78bb45db6..6be849343b8 100644 --- a/test/MC/Mips/elf_st_other.s +++ b/test/MC/Mips/elf_st_other.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux %s -o -| llvm-readobj --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux %s -o -| llvm-readobj --symbols - | FileCheck %s .globl f1 diff --git a/test/MC/Mips/end-directive.s b/test/MC/Mips/end-directive.s index a357b35b7be..6545acb1613 100644 --- a/test/MC/Mips/end-directive.s +++ b/test/MC/Mips/end-directive.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -arch=mips -mcpu=mips32 -filetype=obj %s -o - | \ -# RUN: llvm-readobj --symbols | FileCheck %s +# RUN: llvm-readobj --symbols - | FileCheck %s # Check that the assembler doesn't choke on .align between a symbol and the # .end directive. diff --git a/test/MC/Mips/higher-highest-addressing.s b/test/MC/Mips/higher-highest-addressing.s index 4eb27d4c0d3..56fd01b5e9a 100644 --- a/test/MC/Mips/higher-highest-addressing.s +++ b/test/MC/Mips/higher-highest-addressing.s @@ -2,7 +2,7 @@ # RUN: | llvm-objdump -d - | FileCheck %s # RUN: llvm-mc -filetype=obj -triple=mips64el-unknown-linux -mcpu=mips64r2 %s \ -# RUN: | llvm-readobj -r | FileCheck %s -check-prefix=CHECK-REL +# RUN: | llvm-readobj -r - | FileCheck %s -check-prefix=CHECK-REL # Test that R_MIPS_HIGHER and R_MIPS_HIGHEST relocations are created. By using diff --git a/test/MC/Mips/hilo-addressing.s b/test/MC/Mips/hilo-addressing.s index 960f5b705d5..cff2d8a6e68 100644 --- a/test/MC/Mips/hilo-addressing.s +++ b/test/MC/Mips/hilo-addressing.s @@ -5,7 +5,7 @@ # RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-INSTR # RUN: llvm-mc -filetype=obj -triple=mipsel-unknown-linux %s \ -# RUN: | llvm-readobj -r | FileCheck %s -check-prefix=CHECK-REL +# RUN: | llvm-readobj -r - | FileCheck %s -check-prefix=CHECK-REL # Check that 1 is added to the high 16 bits if bit 15 of the low part is 1. diff --git a/test/MC/Mips/micromips-alias.s b/test/MC/Mips/micromips-alias.s index 9b0dcf50f03..0a6a586f7ce 100644 --- a/test/MC/Mips/micromips-alias.s +++ b/test/MC/Mips/micromips-alias.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o - \ -# RUN: | llvm-readobj --symbols | FileCheck %s +# RUN: | llvm-readobj --symbols - | FileCheck %s # Symbol bar must be marked as micromips. # CHECK: Name: bar diff --git a/test/MC/Mips/micromips-ase-directive.s b/test/MC/Mips/micromips-ase-directive.s index fef40ecc3ee..9b2e1d42565 100644 --- a/test/MC/Mips/micromips-ase-directive.s +++ b/test/MC/Mips/micromips-ase-directive.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -triple=mips-unknown-linux -filetype=obj %s -o - | \ -# RUN: llvm-readobj -A | \ +# RUN: llvm-readobj -A - | \ # RUN: FileCheck --check-prefix=ASE-MICROMIPS %s .set micromips diff --git a/test/MC/Mips/micromips-branch-fixup.s b/test/MC/Mips/micromips-branch-fixup.s index 3ad625fa4c1..5a0f39123f0 100644 --- a/test/MC/Mips/micromips-branch-fixup.s +++ b/test/MC/Mips/micromips-branch-fixup.s @@ -1,7 +1,7 @@ # RUN: llvm-mc %s -triple=mipsel-unknown-linux -show-encoding \ # RUN: -mattr=micromips | FileCheck %s -check-prefix=CHECK-FIXUP # RUN: llvm-mc %s -filetype=obj -triple=mipsel-unknown-linux \ -# RUN: -mattr=micromips | llvm-readobj -r \ +# RUN: -mattr=micromips | llvm-readobj -r - \ # RUN: | FileCheck %s -check-prefix=CHECK-ELF #------------------------------------------------------------------------------ # Check that the assembler can handle the documented syntax diff --git a/test/MC/Mips/micromips-func-addr.s b/test/MC/Mips/micromips-func-addr.s index 0cd49352f30..4a0e3fdbe43 100644 --- a/test/MC/Mips/micromips-func-addr.s +++ b/test/MC/Mips/micromips-func-addr.s @@ -1,5 +1,5 @@ # RUN: llvm-mc %s -filetype=obj -triple=mipsel-unknown-linux \ -# RUN: -mattr=micromips | llvm-readobj -r \ +# RUN: -mattr=micromips | llvm-readobj -r - \ # RUN: | FileCheck %s # CHECK: Relocations [ # CHECK: 0x0 R_MIPS_32 bar 0x0 diff --git a/test/MC/Mips/micromips-jump26.s b/test/MC/Mips/micromips-jump26.s index 936a9984ab0..678a103c58a 100644 --- a/test/MC/Mips/micromips-jump26.s +++ b/test/MC/Mips/micromips-jump26.s @@ -1,7 +1,7 @@ # RUN: llvm-mc %s -triple=mipsel-unknown-linux -show-encoding \ # RUN: -mattr=micromips | FileCheck %s -check-prefix=CHECK-FIXUP # RUN: llvm-mc %s -filetype=obj -triple=mipsel-unknown-linux \ -# RUN: -mattr=micromips | llvm-readobj -r \ +# RUN: -mattr=micromips | llvm-readobj -r - \ # RUN: | FileCheck %s -check-prefix=CHECK-ELF #------------------------------------------------------------------------------ # Check that the assembler can handle the documented syntax diff --git a/test/MC/Mips/micromips-label-test-sections.s b/test/MC/Mips/micromips-label-test-sections.s index 092b211de8e..561b783b150 100644 --- a/test/MC/Mips/micromips-label-test-sections.s +++ b/test/MC/Mips/micromips-label-test-sections.s @@ -1,5 +1,5 @@ # RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 \ -# RUN: -mattr=+micromips -filetype=obj -o - | llvm-readobj --symbols | FileCheck %s +# RUN: -mattr=+micromips -filetype=obj -o - | llvm-readobj --symbols - | FileCheck %s .text .set micromips f: diff --git a/test/MC/Mips/micromips-label-test.s b/test/MC/Mips/micromips-label-test.s index 1a8bbdf1ec1..80336d107d7 100644 --- a/test/MC/Mips/micromips-label-test.s +++ b/test/MC/Mips/micromips-label-test.s @@ -1,5 +1,5 @@ # RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 \ -# RUN: -mattr=+micromips -filetype=obj -o - | llvm-readobj --symbols | FileCheck %s +# RUN: -mattr=+micromips -filetype=obj -o - | llvm-readobj --symbols - | FileCheck %s .text .set nomicromips f: diff --git a/test/MC/Mips/micromips-relocations.s b/test/MC/Mips/micromips-relocations.s index a8734a06ca8..4f3afe9887c 100644 --- a/test/MC/Mips/micromips-relocations.s +++ b/test/MC/Mips/micromips-relocations.s @@ -1,7 +1,7 @@ # RUN: llvm-mc %s -triple=mipsel-unknown-linux -show-encoding \ # RUN: -mattr=micromips | FileCheck %s -check-prefix=CHECK-FIXUP # RUN: llvm-mc %s -filetype=obj -triple=mipsel-unknown-linux \ -# RUN: -mattr=micromips | llvm-readobj -r \ +# RUN: -mattr=micromips | llvm-readobj -r - \ # RUN: | FileCheck %s -check-prefix=CHECK-ELF #------------------------------------------------------------------------------ # Check that the assembler can handle the documented syntax diff --git a/test/MC/Mips/micromips-tailr.s b/test/MC/Mips/micromips-tailr.s index a11ac61eac2..1e4c888cfd2 100644 --- a/test/MC/Mips/micromips-tailr.s +++ b/test/MC/Mips/micromips-tailr.s @@ -1,7 +1,7 @@ # RUN: llvm-mc %s -triple=mipsel-unknown-linux -show-encoding \ # RUN: -mattr=micromips | FileCheck %s -check-prefix=CHECK-FIXUP # RUN: llvm-mc %s -filetype=obj -triple=mipsel-unknown-linux \ -# RUN: -mattr=micromips | llvm-readobj -r \ +# RUN: -mattr=micromips | llvm-readobj -r - \ # RUN: | FileCheck %s -check-prefix=CHECK-ELF #------------------------------------------------------------------------------ # Check that the assembler can handle the documented syntax diff --git a/test/MC/Mips/micromips32r6/relocations.s b/test/MC/Mips/micromips32r6/relocations.s index 615b445a0fa..f5e1748d6c5 100644 --- a/test/MC/Mips/micromips32r6/relocations.s +++ b/test/MC/Mips/micromips32r6/relocations.s @@ -1,7 +1,7 @@ # RUN: llvm-mc %s -triple=mips-unknown-linux -show-encoding -mcpu=mips32r6 \ # RUN: -mattr=micromips | FileCheck %s -check-prefix=CHECK-FIXUP # RUN: llvm-mc %s -filetype=obj -triple=mips-unknown-linux -mcpu=mips32r6 \ -# RUN: -mattr=micromips | llvm-readobj -r | FileCheck %s -check-prefix=CHECK-ELF +# RUN: -mattr=micromips | llvm-readobj -r - | FileCheck %s -check-prefix=CHECK-ELF #------------------------------------------------------------------------------ # Check that the assembler can handle the documented syntax for fixups. #------------------------------------------------------------------------------ diff --git a/test/MC/Mips/mips-pdr.s b/test/MC/Mips/mips-pdr.s index 267800ebcd5..8769f904e1d 100644 --- a/test/MC/Mips/mips-pdr.s +++ b/test/MC/Mips/mips-pdr.s @@ -2,7 +2,7 @@ # RUN: FileCheck %s -check-prefix=ASMOUT # RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -filetype=obj -o - | \ -# RUN: llvm-readobj -S --section-data -r | \ +# RUN: llvm-readobj -S --section-data -r - | \ # RUN: FileCheck %s -check-prefix=OBJOUT # ASMOUT: .text diff --git a/test/MC/Mips/mips-rdata.s b/test/MC/Mips/mips-rdata.s index d2d8aa8c14a..0ed9301d549 100644 --- a/test/MC/Mips/mips-rdata.s +++ b/test/MC/Mips/mips-rdata.s @@ -1,7 +1,7 @@ # Check that .rdata sections have proper name, flags, and section types. # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o - \ -# RUN: | llvm-readobj -S | FileCheck %s +# RUN: | llvm-readobj -S - | FileCheck %s .rdata .word 0 diff --git a/test/MC/Mips/mips-reginfo-fp32.s b/test/MC/Mips/mips-reginfo-fp32.s index 6b7d94aa57a..f37ad7c96b5 100644 --- a/test/MC/Mips/mips-reginfo-fp32.s +++ b/test/MC/Mips/mips-reginfo-fp32.s @@ -1,5 +1,5 @@ # RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -filetype=obj -o - | \ -# RUN: llvm-readobj -S --section-data | \ +# RUN: llvm-readobj -S --section-data - | \ # RUN: FileCheck %s # CHECK: Section { diff --git a/test/MC/Mips/mips-reginfo-fp64.s b/test/MC/Mips/mips-reginfo-fp64.s index 157801d3cec..b7dee963082 100644 --- a/test/MC/Mips/mips-reginfo-fp64.s +++ b/test/MC/Mips/mips-reginfo-fp64.s @@ -1,13 +1,13 @@ # RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa,+fp64 -filetype=obj -o - | \ -# RUN: llvm-readobj -S --section-data | \ +# RUN: llvm-readobj -S --section-data - | \ # RUN: FileCheck %s -check-prefix=ELF32 # RUN: llvm-mc %s -arch=mips64 -mcpu=mips64r2 -mattr=+msa,+fp64 -target-abi n32 -filetype=obj -o - | \ -# RUN: llvm-readobj -S --section-data | \ +# RUN: llvm-readobj -S --section-data - | \ # RUN: FileCheck %s -check-prefix=ELF32 # RUN: llvm-mc %s -arch=mips64 -mcpu=mips64r2 -mattr=+msa,+fp64 -target-abi n64 -filetype=obj -o - | \ -# RUN: llvm-readobj -S --section-data | \ +# RUN: llvm-readobj -S --section-data - | \ # RUN: FileCheck %s -check-prefix=ELF64 # ELF32: Section { diff --git a/test/MC/Mips/mips32r6/relocations.s b/test/MC/Mips/mips32r6/relocations.s index 8095fb156ec..68553fdf017 100644 --- a/test/MC/Mips/mips32r6/relocations.s +++ b/test/MC/Mips/mips32r6/relocations.s @@ -1,7 +1,7 @@ # RUN: llvm-mc %s -triple=mips-unknown-linux -show-encoding -mcpu=mips32r6 \ # RUN: | FileCheck %s -check-prefix=CHECK-FIXUP # RUN: llvm-mc %s -filetype=obj -triple=mips-unknown-linux -mcpu=mips32r6 \ -# RUN: | llvm-readobj -r | FileCheck %s -check-prefix=CHECK-ELF +# RUN: | llvm-readobj -r - | FileCheck %s -check-prefix=CHECK-ELF #------------------------------------------------------------------------------ # Check that the assembler can handle the documented syntax for fixups. #------------------------------------------------------------------------------ diff --git a/test/MC/Mips/mips64eb-fixups.s b/test/MC/Mips/mips64eb-fixups.s index 2de804d26e1..f5fadb1c38e 100644 --- a/test/MC/Mips/mips64eb-fixups.s +++ b/test/MC/Mips/mips64eb-fixups.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -filetype=obj -triple mips64eb-unknown-freebsd %s -o - | llvm-readobj -S --sd | FileCheck %s +# RUN: llvm-mc -filetype=obj -triple mips64eb-unknown-freebsd %s -o - | llvm-readobj -S --sd - | FileCheck %s .section .fixups,"",@progbits .byte 0xff diff --git a/test/MC/Mips/mips64r6/relocations.s b/test/MC/Mips/mips64r6/relocations.s index 5e70f44b96e..8353ec019a3 100644 --- a/test/MC/Mips/mips64r6/relocations.s +++ b/test/MC/Mips/mips64r6/relocations.s @@ -1,7 +1,7 @@ # RUN: llvm-mc %s -triple=mips64-unknown-linux -show-encoding -mcpu=mips64r6 \ # RUN: | FileCheck %s -check-prefix=CHECK-FIXUP # RUN: llvm-mc %s -filetype=obj -triple=mips64-unknown-linux -mcpu=mips64r6 \ -# RUN: | llvm-readobj -r | FileCheck %s -check-prefix=CHECK-ELF +# RUN: | llvm-readobj -r - | FileCheck %s -check-prefix=CHECK-ELF #------------------------------------------------------------------------------ # Check that the assembler can handle the documented syntax for fixups. #------------------------------------------------------------------------------ diff --git a/test/MC/Mips/mt/abiflag.s b/test/MC/Mips/mt/abiflag.s index d067c55587c..9f8592635be 100644 --- a/test/MC/Mips/mt/abiflag.s +++ b/test/MC/Mips/mt/abiflag.s @@ -1,5 +1,5 @@ # RUN: llvm-mc < %s -arch=mips -mcpu=mips32r2 -mattr=+mt -filetype=obj -o - \ -# RUN: | llvm-readobj -A | FileCheck %s +# RUN: | llvm-readobj -A - | FileCheck %s # Test that the usage of the MT ASE is recorded in .MIPS.abiflags diff --git a/test/MC/Mips/mt/module-directive.s b/test/MC/Mips/mt/module-directive.s index 1bbe9114754..0b743089008 100644 --- a/test/MC/Mips/mt/module-directive.s +++ b/test/MC/Mips/mt/module-directive.s @@ -1,5 +1,5 @@ # RUN: llvm-mc < %s -arch=mips -mcpu=mips32r2 -filetype=obj -o - | \ -# RUN: llvm-readobj -A | FileCheck --check-prefix=CHECK-OBJ %s +# RUN: llvm-readobj -A - | FileCheck --check-prefix=CHECK-OBJ %s # RUN: llvm-mc < %s -arch=mips -mcpu=mips32r2 -filetype=asm -o - | \ # RUN: FileCheck --check-prefix=CHECK-ASM %s diff --git a/test/MC/Mips/mt/set-directive.s b/test/MC/Mips/mt/set-directive.s index 5d18486059d..3593c2ddde5 100644 --- a/test/MC/Mips/mt/set-directive.s +++ b/test/MC/Mips/mt/set-directive.s @@ -1,5 +1,5 @@ # RUN: llvm-mc < %s -arch=mips -mcpu=mips32r2 -filetype=obj -o - | \ -# RUN: llvm-readobj -A | FileCheck %s --check-prefix=CHECK-OBJ +# RUN: llvm-readobj -A - | FileCheck %s --check-prefix=CHECK-OBJ # RUN: llvm-mc < %s -arch=mips -mcpu=mips32r2 -filetype=asm -o - | \ # RUN: FileCheck %s --check-prefix=CHECK-ASM diff --git a/test/MC/Mips/r-mips-got-disp.s b/test/MC/Mips/r-mips-got-disp.s index b75cac59217..1565b0858a4 100644 --- a/test/MC/Mips/r-mips-got-disp.s +++ b/test/MC/Mips/r-mips-got-disp.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple=mips64el-pc-linux -filetype=obj -mcpu=mips64r2 < %s -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -triple=mips64el-pc-linux -filetype=obj -mcpu=mips64r2 < %s -o - | llvm-readobj -r - | FileCheck %s // Check that the R_MIPS_GOT_DISP relocations were created. diff --git a/test/MC/Mips/reloc-directive-label-offset.s b/test/MC/Mips/reloc-directive-label-offset.s index 05ee4dee0f3..8df9e6ad745 100644 --- a/test/MC/Mips/reloc-directive-label-offset.s +++ b/test/MC/Mips/reloc-directive-label-offset.s @@ -5,11 +5,11 @@ # RUN: llvm-mc -triple mips64-unknown-linux %s -show-encoding -target-abi=n64 \ # RUN: | FileCheck --check-prefixes=ASM,ASM-64 %s # RUN: llvm-mc -triple mips-unknown-linux %s -show-encoding -target-abi=o32 \ -# RUN: -filetype=obj | llvm-readobj -r | FileCheck -check-prefix=OBJ-O32 %s +# RUN: -filetype=obj | llvm-readobj -r - | FileCheck -check-prefix=OBJ-O32 %s # RUN: llvm-mc -triple mips64-unknown-linux %s -show-encoding -target-abi=n32 \ -# RUN: -filetype=obj | llvm-readobj -r | FileCheck -check-prefix=OBJ-N32 %s +# RUN: -filetype=obj | llvm-readobj -r - | FileCheck -check-prefix=OBJ-N32 %s # RUN: llvm-mc -triple mips64-unknown-linux %s -show-encoding -target-abi=n64 \ -# RUN: -filetype=obj | llvm-readobj -r | FileCheck -check-prefix=OBJ-N64 %s +# RUN: -filetype=obj | llvm-readobj -r - | FileCheck -check-prefix=OBJ-N64 %s .text foo: # ASM-LABEL: foo: diff --git a/test/MC/Mips/reloc-directive.s b/test/MC/Mips/reloc-directive.s index b7498105681..b00ab8e1cfa 100644 --- a/test/MC/Mips/reloc-directive.s +++ b/test/MC/Mips/reloc-directive.s @@ -5,13 +5,13 @@ # RUN: llvm-mc -triple mips64-unknown-linux < %s -show-encoding -target-abi=n64 \ # RUN: | FileCheck -check-prefix=ASM %s # RUN: llvm-mc -triple mips-unknown-linux < %s -show-encoding -target-abi=o32 \ -# RUN: -filetype=obj | llvm-readobj --sections --section-data -r | \ +# RUN: -filetype=obj | llvm-readobj --sections --section-data -r - | \ # RUN: FileCheck -check-prefix=OBJ-O32 %s # RUN: llvm-mc -triple mips64-unknown-linux < %s -show-encoding -target-abi=n32 \ -# RUN: -filetype=obj | llvm-readobj --sections --section-data -r | \ +# RUN: -filetype=obj | llvm-readobj --sections --section-data -r - | \ # RUN: FileCheck -check-prefix=OBJ-N32 %s # RUN: llvm-mc -triple mips64-unknown-linux < %s -show-encoding -target-abi=n64 \ -# RUN: -filetype=obj | llvm-readobj --sections --section-data -r | \ +# RUN: -filetype=obj | llvm-readobj --sections --section-data -r - | \ # RUN: FileCheck -check-prefix=OBJ-N64 %s .text foo: diff --git a/test/MC/Mips/relocation-n64.s b/test/MC/Mips/relocation-n64.s index 297b1a696c2..9aeba3183c6 100644 --- a/test/MC/Mips/relocation-n64.s +++ b/test/MC/Mips/relocation-n64.s @@ -3,9 +3,9 @@ // RUN: llvm-mc -triple mips64el-unknown-linux < %s -show-encoding \ // RUN: | FileCheck -check-prefixes=ENCLE,FIXUP %s // RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux < %s \ -// RUN: | llvm-readobj -r | FileCheck -check-prefix=RELOC %s +// RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELOC %s // RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux < %s \ -// RUN: | llvm-readobj --sections --section-data \ +// RUN: | llvm-readobj --sections --section-data - \ // RUN: | FileCheck -check-prefix=DATA %s // Test that we produce the correct relocation. diff --git a/test/MC/Mips/relocation.s b/test/MC/Mips/relocation.s index 0ff450b24a0..9c8bb657ea6 100644 --- a/test/MC/Mips/relocation.s +++ b/test/MC/Mips/relocation.s @@ -3,9 +3,9 @@ // RUN: llvm-mc -triple mipsel-unknown-linux < %s -show-encoding \ // RUN: | FileCheck -check-prefixes=ENCLE,FIXUP %s // RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux < %s \ -// RUN: | llvm-readobj -r | FileCheck -check-prefix=RELOC %s +// RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELOC %s // RUN: llvm-mc -filetype=obj -triple mips-unknown-linux < %s \ -// RUN: | llvm-readobj --sections --section-data \ +// RUN: | llvm-readobj --sections --section-data - \ // RUN: | FileCheck -check-prefix=DATA %s // Test that we produce the correct relocation. diff --git a/test/MC/Mips/section-size.s b/test/MC/Mips/section-size.s index 1d3319cbf09..b51dad24709 100644 --- a/test/MC/Mips/section-size.s +++ b/test/MC/Mips/section-size.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -triple mips-unknown-linux -filetype=obj \ -# RUN: -mips-round-section-sizes %s | llvm-readobj --sections | FileCheck %s +# RUN: -mips-round-section-sizes %s | llvm-readobj --sections - | FileCheck %s .section ".talign1", "ax" .p2align 4 t1: .byte 1 diff --git a/test/MC/Mips/sort-relocation-table.s b/test/MC/Mips/sort-relocation-table.s index 16368c02d7b..a6068ed76fc 100644 --- a/test/MC/Mips/sort-relocation-table.s +++ b/test/MC/Mips/sort-relocation-table.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -filetype=obj -arch mipsel %s | llvm-readobj -r | FileCheck %s +# RUN: llvm-mc -filetype=obj -arch mipsel %s | llvm-readobj -r - | FileCheck %s # Test the order of records in the relocation table. # diff --git a/test/MC/Mips/tls-symbols.s b/test/MC/Mips/tls-symbols.s index 7affb8c4405..964d57277eb 100644 --- a/test/MC/Mips/tls-symbols.s +++ b/test/MC/Mips/tls-symbols.s @@ -1,6 +1,6 @@ # RUN: llvm-mc -arch=mips < %s -position-independent -filetype=obj \ -# RUN: | llvm-readelf -s | FileCheck %s -# RUN: llvm-mc -arch=mips < %s -filetype=obj | llvm-readelf -s | FileCheck %s +# RUN: | llvm-readelf -s - | FileCheck %s +# RUN: llvm-mc -arch=mips < %s -filetype=obj | llvm-readelf -s - | FileCheck %s # Test that TLS relocations cause symbols to be marked as TLS symbols. diff --git a/test/MC/Mips/xgot.s b/test/MC/Mips/xgot.s index 9c64db749fd..100d25e6722 100644 --- a/test/MC/Mips/xgot.s +++ b/test/MC/Mips/xgot.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux %s -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux %s -o - | llvm-readobj -r - | FileCheck %s // Check that the appropriate relocations were created. // For the xgot case we want to see R_MIPS_[GOT|CALL]_[HI|LO]16. diff --git a/test/MC/PowerPC/lcomm.s b/test/MC/PowerPC/lcomm.s index cc62332378e..7abc79fb8f3 100644 --- a/test/MC/PowerPC/lcomm.s +++ b/test/MC/PowerPC/lcomm.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -triple powerpc-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -S --sd | FileCheck %s +# RUN: llvm-readobj -S --sd - | FileCheck %s # RUN: llvm-mc -triple powerpc64-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -S --sd | FileCheck %s +# RUN: llvm-readobj -S --sd - | FileCheck %s .lcomm foo, 16, 16 diff --git a/test/MC/PowerPC/ppc-llong.s b/test/MC/PowerPC/ppc-llong.s index 8b7bf133dd0..74fbe0bf0b5 100644 --- a/test/MC/PowerPC/ppc-llong.s +++ b/test/MC/PowerPC/ppc-llong.s @@ -1,10 +1,10 @@ # RUN: llvm-mc -triple powerpc-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -S --sd | FileCheck %s +# RUN: llvm-readobj -S --sd - | FileCheck %s # RUN: llvm-mc -triple powerpc64-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -S --sd | FileCheck %s +# RUN: llvm-readobj -S --sd - | FileCheck %s # RUN: llvm-mc -triple powerpc64le-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -S --sd | FileCheck %s +# RUN: llvm-readobj -S --sd - | FileCheck %s .data .llong 0 diff --git a/test/MC/PowerPC/ppc-reloc.s b/test/MC/PowerPC/ppc-reloc.s index 999d33ec575..62243ca6639 100644 --- a/test/MC/PowerPC/ppc-reloc.s +++ b/test/MC/PowerPC/ppc-reloc.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -triple=powerpc-unknown-linux-gnu -filetype=obj %s | \ -# RUN: llvm-readobj -r | FileCheck %s +# RUN: llvm-readobj -r - | FileCheck %s .section .text .globl foo diff --git a/test/MC/PowerPC/ppc-word.s b/test/MC/PowerPC/ppc-word.s index aade96a6437..447c4a22f14 100644 --- a/test/MC/PowerPC/ppc-word.s +++ b/test/MC/PowerPC/ppc-word.s @@ -1,10 +1,10 @@ # RUN: llvm-mc -triple powerpc-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -S --sd | FileCheck %s +# RUN: llvm-readobj -S --sd - | FileCheck %s # RUN: llvm-mc -triple powerpc64-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -S --sd | FileCheck %s +# RUN: llvm-readobj -S --sd - | FileCheck %s # RUN: llvm-mc -triple powerpc64le-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -S --sd | FileCheck %s +# RUN: llvm-readobj -S --sd - | FileCheck %s .data .word 0 diff --git a/test/MC/PowerPC/ppc32-reloc-directive.s b/test/MC/PowerPC/ppc32-reloc-directive.s index 6beeabd4db3..b63e4c91eb0 100644 --- a/test/MC/PowerPC/ppc32-reloc-directive.s +++ b/test/MC/PowerPC/ppc32-reloc-directive.s @@ -1,6 +1,6 @@ # RUN: llvm-mc -triple=powerpc-linux-musl %s | FileCheck --check-prefix=PRINT %s -# RUN: llvm-mc -filetype=obj -triple=powerpc-linux-musl %s | llvm-readobj -r | FileCheck %s +# RUN: llvm-mc -filetype=obj -triple=powerpc-linux-musl %s | llvm-readobj -r - | FileCheck %s # PRINT: .reloc 8, R_PPC_NONE, .data # PRINT: .reloc 4, R_PPC_NONE, foo+4 diff --git a/test/MC/PowerPC/ppc64-abiversion.s b/test/MC/PowerPC/ppc64-abiversion.s index 49d122772b8..37706c1de05 100644 --- a/test/MC/PowerPC/ppc64-abiversion.s +++ b/test/MC/PowerPC/ppc64-abiversion.s @@ -1,8 +1,8 @@ # RUN: llvm-mc -triple powerpc64-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -h | FileCheck %s +# RUN: llvm-readobj -h - | FileCheck %s # RUN: llvm-mc -triple powerpc64le-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -h | FileCheck %s +# RUN: llvm-readobj -h - | FileCheck %s # RUN: llvm-mc -triple powerpc64le-unknown-unknown -filetype=null %s .abiversion 2 diff --git a/test/MC/PowerPC/ppc64-encoding-ISA31-pcrel-reloc.s b/test/MC/PowerPC/ppc64-encoding-ISA31-pcrel-reloc.s index e6d41b06170..bb849383c0f 100644 --- a/test/MC/PowerPC/ppc64-encoding-ISA31-pcrel-reloc.s +++ b/test/MC/PowerPC/ppc64-encoding-ISA31-pcrel-reloc.s @@ -1,12 +1,12 @@ # RUN: llvm-mc -triple=powerpc64le-unknown-unknown -filetype=obj %s 2>&1 | \ # RUN: FileCheck %s -check-prefix=MC # RUN: llvm-mc -triple=powerpc64le-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -r | FileCheck %s -check-prefix=READOBJ +# RUN: llvm-readobj -r - | FileCheck %s -check-prefix=READOBJ # RUN: llvm-mc -triple=powerpc64-unknown-unknown -filetype=obj %s 2>&1 | \ # RUN: FileCheck %s -check-prefix=MC # RUN: llvm-mc -triple=powerpc64-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -r | FileCheck %s -check-prefix=READOBJ +# RUN: llvm-readobj -r - | FileCheck %s -check-prefix=READOBJ # This test checks that on Power PC we can correctly convert @pcrel and # @got@pcrel into R_PPC64_PCREL34 and R_PPC64_GOT_PCREL34. diff --git a/test/MC/PowerPC/ppc64-fixup-apply.s b/test/MC/PowerPC/ppc64-fixup-apply.s index fd449c4e6c8..edf03f1cfab 100644 --- a/test/MC/PowerPC/ppc64-fixup-apply.s +++ b/test/MC/PowerPC/ppc64-fixup-apply.s @@ -1,8 +1,8 @@ # RUN: llvm-mc -triple powerpc64-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -S --sd | FileCheck -check-prefix=CHECK -check-prefix=CHECK-BE %s +# RUN: llvm-readobj -S --sd - | FileCheck -check-prefix=CHECK -check-prefix=CHECK-BE %s # RUN: llvm-mc -triple powerpc64le-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -S --sd | FileCheck -check-prefix=CHECK -check-prefix=CHECK-LE %s +# RUN: llvm-readobj -S --sd - | FileCheck -check-prefix=CHECK -check-prefix=CHECK-LE %s # This checks that fixups that can be resolved within the same # object file are applied correctly. diff --git a/test/MC/PowerPC/ppc64-fixup-explicit.s b/test/MC/PowerPC/ppc64-fixup-explicit.s index e0720ab5ea0..f73297b167e 100644 --- a/test/MC/PowerPC/ppc64-fixup-explicit.s +++ b/test/MC/PowerPC/ppc64-fixup-explicit.s @@ -3,9 +3,9 @@ # RUN: llvm-mc -triple powerpc64le-unknown-unknown --show-encoding %s | FileCheck -check-prefix=CHECK-LE %s # RUN: llvm-mc -triple powerpc64-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -r | FileCheck %s -check-prefix=CHECK-BE-REL +# RUN: llvm-readobj -r - | FileCheck %s -check-prefix=CHECK-BE-REL # RUN: llvm-mc -triple powerpc64le-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -r | FileCheck %s -check-prefix=CHECK-LE-REL +# RUN: llvm-readobj -r - | FileCheck %s -check-prefix=CHECK-LE-REL # GOT references must result in explicit relocations # even if the target symbol is local. diff --git a/test/MC/PowerPC/ppc64-fixups.s b/test/MC/PowerPC/ppc64-fixups.s index ce19f36a856..9904ad886e9 100644 --- a/test/MC/PowerPC/ppc64-fixups.s +++ b/test/MC/PowerPC/ppc64-fixups.s @@ -3,9 +3,9 @@ # RUN: llvm-mc -triple powerpc64le-unknown-unknown --show-encoding %s | FileCheck -check-prefix=CHECK-LE %s # RUN: llvm-mc -triple powerpc64-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -r | FileCheck %s -check-prefix=CHECK-BE-REL +# RUN: llvm-readobj -r - | FileCheck %s -check-prefix=CHECK-BE-REL # RUN: llvm-mc -triple powerpc64le-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -r | FileCheck %s -check-prefix=CHECK-LE-REL +# RUN: llvm-readobj -r - | FileCheck %s -check-prefix=CHECK-LE-REL # CHECK-BE: b target # encoding: [0b010010AA,A,A,0bAAAAAA00] # CHECK-LE: b target # encoding: [0bAAAAAA00,A,A,0b010010AA] diff --git a/test/MC/PowerPC/ppc64-initial-cfa.s b/test/MC/PowerPC/ppc64-initial-cfa.s index 39567f59659..e7be1f51ac2 100644 --- a/test/MC/PowerPC/ppc64-initial-cfa.s +++ b/test/MC/PowerPC/ppc64-initial-cfa.s @@ -1,11 +1,11 @@ # RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj %s | \ -# RUN: llvm-readobj -S --sr --sd | FileCheck %s -check-prefix=STATIC -check-prefix=STATIC-BE +# RUN: llvm-readobj -S --sr --sd - | FileCheck %s -check-prefix=STATIC -check-prefix=STATIC-BE # RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj %s | \ -# RUN: llvm-readobj -S --sr --sd | FileCheck %s -check-prefix=PIC -check-prefix=PIC-BE +# RUN: llvm-readobj -S --sr --sd - | FileCheck %s -check-prefix=PIC -check-prefix=PIC-BE # RUN: llvm-mc -triple=powerpc64le-unknown-linux-gnu -filetype=obj %s | \ -# RUN: llvm-readobj -S --sr --sd | FileCheck %s -check-prefix=STATIC -check-prefix=STATIC-LE +# RUN: llvm-readobj -S --sr --sd - | FileCheck %s -check-prefix=STATIC -check-prefix=STATIC-LE # RUN: llvm-mc -triple=powerpc64le-unknown-linux-gnu -filetype=obj %s | \ -# RUN: llvm-readobj -S --sr --sd | FileCheck %s -check-prefix=PIC -check-prefix=PIC-LE +# RUN: llvm-readobj -S --sr --sd - | FileCheck %s -check-prefix=PIC -check-prefix=PIC-LE _proc: .cfi_startproc diff --git a/test/MC/PowerPC/ppc64-localentry.s b/test/MC/PowerPC/ppc64-localentry.s index 883b2fcc38e..04773115491 100644 --- a/test/MC/PowerPC/ppc64-localentry.s +++ b/test/MC/PowerPC/ppc64-localentry.s @@ -1,8 +1,8 @@ # RUN: llvm-mc -triple powerpc64-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -h -r --symbols | FileCheck %s +# RUN: llvm-readobj -h -r --symbols - | FileCheck %s # RUN: llvm-mc -triple powerpc64le-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -h -r --symbols | FileCheck %s +# RUN: llvm-readobj -h -r --symbols - | FileCheck %s .type callee1, @function callee1: diff --git a/test/MC/PowerPC/ppc64-reloc-directive.s b/test/MC/PowerPC/ppc64-reloc-directive.s index 2a03a92786b..e683dbeb759 100644 --- a/test/MC/PowerPC/ppc64-reloc-directive.s +++ b/test/MC/PowerPC/ppc64-reloc-directive.s @@ -1,8 +1,8 @@ # RUN: llvm-mc -triple=powerpc64-linux-musl %s | FileCheck --check-prefix=PRINT %s # RUN: llvm-mc -triple=powerpc64le-linux-musl %s | FileCheck --check-prefix=PRINT %s -# RUN: llvm-mc -filetype=obj -triple=powerpc64-linux-musl %s | llvm-readobj -r | FileCheck %s -# RUN: llvm-mc -filetype=obj -triple=powerpc64le-linux-musl %s | llvm-readobj -r | FileCheck %s +# RUN: llvm-mc -filetype=obj -triple=powerpc64-linux-musl %s | llvm-readobj -r - | FileCheck %s +# RUN: llvm-mc -filetype=obj -triple=powerpc64le-linux-musl %s | llvm-readobj -r - | FileCheck %s # PRINT: .reloc 8, R_PPC64_NONE, .data # PRINT: .reloc 4, R_PPC64_NONE, foo+4 diff --git a/test/MC/PowerPC/ppc64-relocs-01.s b/test/MC/PowerPC/ppc64-relocs-01.s index f2e899b8343..0cc0c106717 100644 --- a/test/MC/PowerPC/ppc64-relocs-01.s +++ b/test/MC/PowerPC/ppc64-relocs-01.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj %s | \ -# RUN: llvm-readobj -r | FileCheck %s +# RUN: llvm-readobj -r - | FileCheck %s .section .opd,"aw",@progbits access_int64: diff --git a/test/MC/PowerPC/ppc64-tls-relocs-01.s b/test/MC/PowerPC/ppc64-tls-relocs-01.s index a37dd97fec6..e9e8466f86b 100644 --- a/test/MC/PowerPC/ppc64-tls-relocs-01.s +++ b/test/MC/PowerPC/ppc64-tls-relocs-01.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj %s | \ -# RUN: llvm-readobj -r | FileCheck %s +# RUN: llvm-readobj -r - | FileCheck %s .text addis 3, 13, t@tprel@ha diff --git a/test/MC/PowerPC/st-other-crash.s b/test/MC/PowerPC/st-other-crash.s index 93a547a2ebb..50fbd5186d5 100644 --- a/test/MC/PowerPC/st-other-crash.s +++ b/test/MC/PowerPC/st-other-crash.s @@ -1,5 +1,5 @@ // RUN: llvm-mc < %s -filetype=obj -triple powerpc64le-pc-linux | \ -// RUN: llvm-readobj --symbols | FileCheck %s +// RUN: llvm-readobj --symbols - | FileCheck %s // This used to crash. Make sure it produce the correct symbol. diff --git a/test/MC/PowerPC/tls-gd-obj.s b/test/MC/PowerPC/tls-gd-obj.s index 66c8fa0138b..8cbda288cec 100644 --- a/test/MC/PowerPC/tls-gd-obj.s +++ b/test/MC/PowerPC/tls-gd-obj.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -triple=powerpc64-pc-linux -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck %s +// RUN: llvm-readobj -r - | FileCheck %s // Test correct relocation generation for thread-local storage using // the general dynamic model and integrated assembly. diff --git a/test/MC/PowerPC/tls-ie-obj.s b/test/MC/PowerPC/tls-ie-obj.s index f3bb7ee0335..b90a45e60ff 100644 --- a/test/MC/PowerPC/tls-ie-obj.s +++ b/test/MC/PowerPC/tls-ie-obj.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -triple=powerpc64-pc-linux -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck %s +// RUN: llvm-readobj -r - | FileCheck %s // Test correct relocation generation for thread-local storage // using the initial-exec model and integrated assembly. diff --git a/test/MC/PowerPC/tls-ld-obj.s b/test/MC/PowerPC/tls-ld-obj.s index 3538d70a30a..2631d95145f 100644 --- a/test/MC/PowerPC/tls-ld-obj.s +++ b/test/MC/PowerPC/tls-ld-obj.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -triple=powerpc64-pc-linux -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck %s +// RUN: llvm-readobj -r - | FileCheck %s // Test correct relocation generation for thread-local storage using // the local dynamic model. diff --git a/test/MC/PowerPC/tls-ld-v2-abi.s b/test/MC/PowerPC/tls-ld-v2-abi.s index 6eaa9888168..9f2cea6f3a7 100644 --- a/test/MC/PowerPC/tls-ld-v2-abi.s +++ b/test/MC/PowerPC/tls-ld-v2-abi.s @@ -1,8 +1,8 @@ // RUN: llvm-mc -triple=powerpc64le-pc-linux -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck %s +// RUN: llvm-readobj -r - | FileCheck %s // RUN: llvm-mc -triple=powerpc64-pc-linux -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck %s +// RUN: llvm-readobj -r - | FileCheck %s // Verify we can handle all the dtprel symbol modifiers for local-dynamic tls. // Tests a 16 bit offset on both DS-form and D-form instructions, 32 bit diff --git a/test/MC/PowerPC/tls-le-v2-abi.s b/test/MC/PowerPC/tls-le-v2-abi.s index db122262ee2..d8a7f34930d 100644 --- a/test/MC/PowerPC/tls-le-v2-abi.s +++ b/test/MC/PowerPC/tls-le-v2-abi.s @@ -1,8 +1,8 @@ // RUN: llvm-mc -triple=powerpc64le-pc-linux -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck %s +// RUN: llvm-readobj -r - | FileCheck %s // RUN: llvm-mc -triple=powerpc64-pc-linux -filetype=obj %s -o - | \ -// RUN: llvm-readobj -r | FileCheck %s +// RUN: llvm-readobj -r - | FileCheck %s // Verify we can handle all the tprel symbol modifiers for local exec tls. // Tests 16 bit offsets on both DS-form and D-form instructions, 32 bit diff --git a/test/MC/RISCV/align.s b/test/MC/RISCV/align.s index d378e3fb1f9..5b9f3dc8baa 100644 --- a/test/MC/RISCV/align.s +++ b/test/MC/RISCV/align.s @@ -5,28 +5,28 @@ # RUN: | llvm-objdump -d -M no-aliases - \ # RUN: | FileCheck -check-prefix=RELAX-INST %s # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+relax < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=RELAX-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELAX-RELOC %s # Relaxation disabled: # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=-relax < %s \ # RUN: | llvm-objdump -d -M no-aliases - \ # RUN: | FileCheck -check-prefix=NORELAX-INST %s # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=-relax < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=NORELAX-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=NORELAX-RELOC %s # Relaxation enabled with C extension: # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c,+relax < %s \ # RUN: | llvm-objdump -d -M no-aliases - \ # RUN: | FileCheck -check-prefix=C-EXT-RELAX-INST %s # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c,+relax < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=C-EXT-RELAX-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=C-EXT-RELAX-RELOC %s # Relaxation disabled with C extension: # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c,-relax < %s \ # RUN: | llvm-objdump -d -M no-aliases - \ # RUN: | FileCheck -check-prefix=C-EXT-NORELAX-INST %s # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c,-relax < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=C-EXT-NORELAX-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=C-EXT-NORELAX-RELOC %s # We need to insert N-MinNopSize bytes NOPs and R_RISCV_ALIGN relocation # type for .align N directive when linker relaxation enabled. diff --git a/test/MC/RISCV/compressed-relocations.s b/test/MC/RISCV/compressed-relocations.s index 31c398ef84e..03b9993f986 100644 --- a/test/MC/RISCV/compressed-relocations.s +++ b/test/MC/RISCV/compressed-relocations.s @@ -1,9 +1,9 @@ # RUN: llvm-mc -triple riscv32 -mattr=+c -riscv-no-aliases < %s -show-encoding \ # RUN: | FileCheck -check-prefix=INSTR -check-prefix=FIXUP %s # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELOC %s # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c,+relax < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELOC %s # Check prefixes: # RELOC - Check the relocation in the object. diff --git a/test/MC/RISCV/elf-header.s b/test/MC/RISCV/elf-header.s index 491d3bea4ce..17fbb2fcf84 100644 --- a/test/MC/RISCV/elf-header.s +++ b/test/MC/RISCV/elf-header.s @@ -1,6 +1,6 @@ -# RUN: llvm-mc %s -filetype=obj -triple=riscv32 | llvm-readobj -h \ +# RUN: llvm-mc %s -filetype=obj -triple=riscv32 | llvm-readobj -h - \ # RUN: | FileCheck -check-prefix=RV32 %s -# RUN: llvm-mc %s -filetype=obj -triple=riscv64 | llvm-readobj -h \ +# RUN: llvm-mc %s -filetype=obj -triple=riscv64 | llvm-readobj -h - \ # RUN: | FileCheck -check-prefix=RV64 %s # RV32: Format: elf32-littleriscv diff --git a/test/MC/RISCV/fde-reloc.s b/test/MC/RISCV/fde-reloc.s index 335594de3ab..98793f1552d 100644 --- a/test/MC/RISCV/fde-reloc.s +++ b/test/MC/RISCV/fde-reloc.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+relax < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=RELAX-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELAX-RELOC %s # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=-relax < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=NORELAX-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=NORELAX-RELOC %s func: .cfi_startproc diff --git a/test/MC/RISCV/fixups-compressed.s b/test/MC/RISCV/fixups-compressed.s index 5556b3d4eb2..3c5fcffb567 100644 --- a/test/MC/RISCV/fixups-compressed.s +++ b/test/MC/RISCV/fixups-compressed.s @@ -3,7 +3,7 @@ # RUN: llvm-mc -triple riscv32 -filetype=obj -mattr=+c < %s \ # RUN: | llvm-objdump -d -M no-aliases - | FileCheck --check-prefix=CHECK-INSTR %s # RUN: llvm-mc -filetype=obj -mattr=+c -triple=riscv32 %s \ -# RUN: | llvm-readobj -r | FileCheck %s -check-prefix=CHECK-REL +# RUN: | llvm-readobj -r - | FileCheck %s -check-prefix=CHECK-REL .LBB0_2: # CHECK-FIXUP: fixup A - offset: 0, value: .LBB0_2, kind: fixup_riscv_rvc_jump diff --git a/test/MC/RISCV/fixups-expr.s b/test/MC/RISCV/fixups-expr.s index 303b25c4832..3d025fdd343 100644 --- a/test/MC/RISCV/fixups-expr.s +++ b/test/MC/RISCV/fixups-expr.s @@ -1,12 +1,12 @@ # RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+relax %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=RELAX %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELAX %s # RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=-relax %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=NORELAX %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=NORELAX %s # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+relax %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=RELAX %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELAX %s # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=-relax %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=NORELAX %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=NORELAX %s # Check that subtraction expressions are emitted as two relocations # only when relaxation is enabled diff --git a/test/MC/RISCV/fixups.s b/test/MC/RISCV/fixups.s index a4aad46bdb3..45d46d84be9 100644 --- a/test/MC/RISCV/fixups.s +++ b/test/MC/RISCV/fixups.s @@ -4,7 +4,7 @@ # RUN: | llvm-objdump -M no-aliases -d - \ # RUN: | FileCheck -check-prefix=CHECK-INSTR %s # RUN: llvm-mc -filetype=obj -triple=riscv32 %s \ -# RUN: | llvm-readobj -r | FileCheck %s -check-prefix=CHECK-REL +# RUN: | llvm-readobj -r - | FileCheck %s -check-prefix=CHECK-REL # Checks that fixups that can be resolved within the same object file are # applied correctly diff --git a/test/MC/RISCV/function-call.s b/test/MC/RISCV/function-call.s index 01cae43bf23..1c1bac6eea5 100644 --- a/test/MC/RISCV/function-call.s +++ b/test/MC/RISCV/function-call.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -filetype=obj -triple riscv32 < %s \ # RUN: | llvm-objdump -d - | FileCheck --check-prefix=INSTR %s # RUN: llvm-mc -filetype=obj -triple riscv32 < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELOC %s # RUN: llvm-mc -triple riscv32 < %s -show-encoding \ # RUN: | FileCheck -check-prefix=FIXUP %s diff --git a/test/MC/RISCV/hilo-constaddr.s b/test/MC/RISCV/hilo-constaddr.s index 7c7c03129ba..36217822bca 100644 --- a/test/MC/RISCV/hilo-constaddr.s +++ b/test/MC/RISCV/hilo-constaddr.s @@ -2,7 +2,7 @@ # RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-INSTR # RUN: llvm-mc -filetype=obj -triple=riscv32 %s \ -# RUN: | llvm-readobj -r | FileCheck %s -check-prefix=CHECK-REL +# RUN: | llvm-readobj -r - | FileCheck %s -check-prefix=CHECK-REL # Check the assembler can handle hi and lo expressions with a constant # address. Test case derived from test/MC/Mips/hilo-addressing.s diff --git a/test/MC/RISCV/linker-relaxation.s b/test/MC/RISCV/linker-relaxation.s index 411c7f88870..eed9d1e104c 100644 --- a/test/MC/RISCV/linker-relaxation.s +++ b/test/MC/RISCV/linker-relaxation.s @@ -1,13 +1,13 @@ # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+relax < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=RELAX-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELAX-RELOC %s # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=-relax < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=NORELAX-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=NORELAX-RELOC %s # RUN: llvm-mc -triple riscv32 -mattr=+relax < %s -show-encoding \ # RUN: | FileCheck -check-prefix=RELAX-FIXUP %s # RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+relax < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=RELAX-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELAX-RELOC %s # RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=-relax < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=NORELAX-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=NORELAX-RELOC %s # RUN: llvm-mc -triple riscv64 -mattr=+relax < %s -show-encoding \ # RUN: | FileCheck -check-prefix=RELAX-FIXUP %s diff --git a/test/MC/RISCV/option-nopic.s b/test/MC/RISCV/option-nopic.s index 7673b045561..db0cf1db8e1 100644 --- a/test/MC/RISCV/option-nopic.s +++ b/test/MC/RISCV/option-nopic.s @@ -1,22 +1,22 @@ # RUN: llvm-mc -triple riscv32 -mattr=-relax -riscv-no-aliases < %s \ # RUN: | FileCheck -check-prefix=CHECK-INST %s # RUN: llvm-mc -filetype=obj -triple riscv32 < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=CHECK-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=CHECK-RELOC %s # RUN: llvm-mc -triple riscv32 -mattr=-relax -riscv-no-aliases \ # RUN: -position-independent < %s | FileCheck -check-prefix=CHECK-INST %s # RUN: llvm-mc -filetype=obj -triple riscv32 -position-independent < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=CHECK-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=CHECK-RELOC %s # RUN: llvm-mc -triple riscv64 -mattr=-relax -riscv-no-aliases < %s \ # RUN: | FileCheck -check-prefix=CHECK-INST %s # RUN: llvm-mc -filetype=obj -triple riscv64 < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=CHECK-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=CHECK-RELOC %s # RUN: llvm-mc -triple riscv64 -mattr=-relax -riscv-no-aliases \ # RUN: -position-independent < %s | FileCheck -check-prefix=CHECK-INST %s # RUN: llvm-mc -filetype=obj -triple riscv64 -position-independent < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=CHECK-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=CHECK-RELOC %s .option nopic # CHECK-INST: .option nopic diff --git a/test/MC/RISCV/option-pic.s b/test/MC/RISCV/option-pic.s index 37d643c3248..ef456e01c4b 100644 --- a/test/MC/RISCV/option-pic.s +++ b/test/MC/RISCV/option-pic.s @@ -1,22 +1,22 @@ # RUN: llvm-mc -triple riscv32 -mattr=-relax -riscv-no-aliases < %s \ # RUN: | FileCheck -check-prefix=CHECK-INST %s # RUN: llvm-mc -filetype=obj -triple riscv32 < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=CHECK-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=CHECK-RELOC %s # RUN: llvm-mc -triple riscv32 -mattr=-relax -riscv-no-aliases \ # RUN: -position-independent < %s | FileCheck -check-prefix=CHECK-INST %s # RUN: llvm-mc -filetype=obj -triple riscv32 -position-independent < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=CHECK-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=CHECK-RELOC %s # RUN: llvm-mc -triple riscv64 -mattr=-relax -riscv-no-aliases < %s \ # RUN: | FileCheck -check-prefix=CHECK-INST %s # RUN: llvm-mc -filetype=obj -triple riscv64 < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=CHECK-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=CHECK-RELOC %s # RUN: llvm-mc -triple riscv64 -mattr=-relax -riscv-no-aliases \ # RUN: -position-independent < %s | FileCheck -check-prefix=CHECK-INST %s # RUN: llvm-mc -filetype=obj -triple riscv64 -position-independent < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=CHECK-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=CHECK-RELOC %s .option pic # CHECK-INST: .option pic diff --git a/test/MC/RISCV/option-pushpop.s b/test/MC/RISCV/option-pushpop.s index 96101dbc637..909f3d027b8 100644 --- a/test/MC/RISCV/option-pushpop.s +++ b/test/MC/RISCV/option-pushpop.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -triple riscv32 -mattr=-relax -riscv-no-aliases < %s \ # RUN: | FileCheck -check-prefix=CHECK-INST %s # RUN: llvm-mc -filetype=obj -triple riscv32 < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=CHECK-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=CHECK-RELOC %s # RUN: llvm-mc -triple riscv32 -filetype=obj < %s \ # RUN: | llvm-objdump --triple=riscv32 --mattr=+c -d - \ # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-ALIAS %s @@ -9,7 +9,7 @@ # RUN: llvm-mc -triple riscv64 -mattr=-relax -riscv-no-aliases < %s \ # RUN: | FileCheck -check-prefix=CHECK-INST %s # RUN: llvm-mc -filetype=obj -triple riscv64 < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=CHECK-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=CHECK-RELOC %s # RUN: llvm-mc -triple riscv64 -filetype=obj < %s \ # RUN: | llvm-objdump --triple=riscv64 --mattr=+c -d - \ # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-ALIAS %s diff --git a/test/MC/RISCV/option-relax.s b/test/MC/RISCV/option-relax.s index 1ee567a2782..7a231d152f7 100644 --- a/test/MC/RISCV/option-relax.s +++ b/test/MC/RISCV/option-relax.s @@ -1,12 +1,12 @@ # RUN: llvm-mc -triple riscv32 < %s \ # RUN: | FileCheck -check-prefix=CHECK-INST %s # RUN: llvm-mc -filetype=obj -triple riscv32 < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=CHECK-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=CHECK-RELOC %s # RUN: llvm-mc -triple riscv64 < %s \ # RUN: | FileCheck -check-prefix=CHECK-INST %s # RUN: llvm-mc -filetype=obj -triple riscv64 < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=CHECK-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=CHECK-RELOC %s # Check .option relax causes R_RISCV_RELAX to be emitted, and .option # norelax suppresses it. Also check that if .option relax was enabled diff --git a/test/MC/RISCV/pseudo-jump.s b/test/MC/RISCV/pseudo-jump.s index 1cc46cc0efa..0a2e2faa1b6 100644 --- a/test/MC/RISCV/pseudo-jump.s +++ b/test/MC/RISCV/pseudo-jump.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -filetype=obj -triple riscv32 < %s \ # RUN: | llvm-objdump -d - | FileCheck --check-prefix=INSTR %s # RUN: llvm-mc -filetype=obj -triple riscv32 < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELOC %s # RUN: llvm-mc -triple riscv32 < %s -show-encoding \ # RUN: | FileCheck -check-prefix=FIXUP %s diff --git a/test/MC/RISCV/reloc-directive.s b/test/MC/RISCV/reloc-directive.s index 7f22a0ba61d..d025a64243f 100644 --- a/test/MC/RISCV/reloc-directive.s +++ b/test/MC/RISCV/reloc-directive.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -triple=riscv32 %s | FileCheck --check-prefix=PRINT %s # RUN: llvm-mc -triple=riscv64 %s | FileCheck --check-prefix=PRINT %s -# RUN: llvm-mc -filetype=obj -triple=riscv32 %s | llvm-readobj -r | FileCheck %s -# RUN: llvm-mc -filetype=obj -triple=riscv64 %s | llvm-readobj -r | FileCheck %s +# RUN: llvm-mc -filetype=obj -triple=riscv32 %s | llvm-readobj -r - | FileCheck %s +# RUN: llvm-mc -filetype=obj -triple=riscv64 %s | llvm-readobj -r - | FileCheck %s # PRINT: .reloc 8, R_RISCV_NONE, .data # PRINT: .reloc 4, R_RISCV_NONE, foo+4 diff --git a/test/MC/RISCV/relocations.s b/test/MC/RISCV/relocations.s index 10a28903906..d35bdc887e9 100644 --- a/test/MC/RISCV/relocations.s +++ b/test/MC/RISCV/relocations.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -triple riscv32 -riscv-no-aliases < %s -show-encoding \ # RUN: | FileCheck -check-prefix=INSTR -check-prefix=FIXUP %s # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELOC %s # Check prefixes: # RELOC - Check the relocation in the object. diff --git a/test/MC/RISCV/rv32-relaxation.s b/test/MC/RISCV/rv32-relaxation.s index a1a2172bf5a..609fa7c83e8 100644 --- a/test/MC/RISCV/rv32-relaxation.s +++ b/test/MC/RISCV/rv32-relaxation.s @@ -3,7 +3,7 @@ # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c,+relax < %s \ # RUN: | llvm-objdump -d -M no-aliases - | FileCheck --check-prefix=RELAX-INSTR %s # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c,+relax < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=RELAX-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELAX-RELOC %s FAR_JUMP_NEGATIVE: c.nop diff --git a/test/MC/RISCV/rv64-relaxation.s b/test/MC/RISCV/rv64-relaxation.s index 94d3e3379f5..0e057e36afb 100644 --- a/test/MC/RISCV/rv64-relaxation.s +++ b/test/MC/RISCV/rv64-relaxation.s @@ -3,7 +3,7 @@ # RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+c,+relax < %s \ # RUN: | llvm-objdump -d -M no-aliases - | FileCheck --check-prefix=RELAX-INSTR %s # RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+c,+relax < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=RELAX-RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELAX-RELOC %s FAR_JUMP_NEGATIVE: c.nop diff --git a/test/MC/RISCV/tail-call.s b/test/MC/RISCV/tail-call.s index 411ab7dd853..63e9d420b11 100644 --- a/test/MC/RISCV/tail-call.s +++ b/test/MC/RISCV/tail-call.s @@ -1,14 +1,14 @@ # RUN: llvm-mc -filetype=obj -triple riscv32 < %s \ # RUN: | llvm-objdump -d - | FileCheck --check-prefix=INSTR %s # RUN: llvm-mc -filetype=obj -triple riscv32 < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELOC %s # RUN: llvm-mc -triple riscv32 < %s -show-encoding \ # RUN: | FileCheck -check-prefix=FIXUP %s # RUN: llvm-mc -filetype=obj -triple riscv64 < %s \ # RUN: | llvm-objdump -d - | FileCheck --check-prefix=INSTR %s # RUN: llvm-mc -filetype=obj -triple riscv64 < %s \ -# RUN: | llvm-readobj -r | FileCheck -check-prefix=RELOC %s +# RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELOC %s # RUN: llvm-mc -triple riscv64 < %s -show-encoding \ # RUN: | FileCheck -check-prefix=FIXUP %s diff --git a/test/MC/Sparc/sparc-nop-data.s b/test/MC/Sparc/sparc-nop-data.s index 2ba8cd43b36..1987dfd2885 100644 --- a/test/MC/Sparc/sparc-nop-data.s +++ b/test/MC/Sparc/sparc-nop-data.s @@ -1,5 +1,5 @@ -! RUN: llvm-mc %s -arch=sparc -filetype=obj | llvm-readobj -S --sd | FileCheck %s -! RUN: llvm-mc %s -arch=sparcv9 -filetype=obj | llvm-readobj -S --sd | FileCheck %s +! RUN: llvm-mc %s -arch=sparc -filetype=obj | llvm-readobj -S --sd - | FileCheck %s +! RUN: llvm-mc %s -arch=sparcv9 -filetype=obj | llvm-readobj -S --sd - | FileCheck %s ! CHECK: 0000: BA1F401D 01000000 01000000 01000000 ! CHECK: 0010: BA1F401D diff --git a/test/MC/Sparc/sparc-pic.s b/test/MC/Sparc/sparc-pic.s index a16ed807afc..859c6efc12a 100644 --- a/test/MC/Sparc/sparc-pic.s +++ b/test/MC/Sparc/sparc-pic.s @@ -1,5 +1,5 @@ -! RUN: llvm-mc %s -arch=sparcv9 --position-independent -filetype=obj | llvm-readobj -r | FileCheck --check-prefix=PIC %s -! RUN: llvm-mc %s -arch=sparcv9 -filetype=obj | llvm-readobj -r | FileCheck --check-prefix=NOPIC %s +! RUN: llvm-mc %s -arch=sparcv9 --position-independent -filetype=obj | llvm-readobj -r - | FileCheck --check-prefix=PIC %s +! RUN: llvm-mc %s -arch=sparcv9 -filetype=obj | llvm-readobj -r - | FileCheck --check-prefix=NOPIC %s ! PIC: Relocations [ diff --git a/test/MC/Sparc/sparc-relocations.s b/test/MC/Sparc/sparc-relocations.s index 5c090a6f2ed..a0a7b7084d2 100644 --- a/test/MC/Sparc/sparc-relocations.s +++ b/test/MC/Sparc/sparc-relocations.s @@ -1,5 +1,5 @@ ! RUN: llvm-mc %s -arch=sparcv9 -show-encoding | FileCheck %s -! RUN: llvm-mc %s -arch=sparcv9 -filetype=obj | llvm-readobj -r | FileCheck %s --check-prefix=CHECK-OBJ +! RUN: llvm-mc %s -arch=sparcv9 -filetype=obj | llvm-readobj -r - | FileCheck %s --check-prefix=CHECK-OBJ ! CHECK-OBJ: Format: elf64-sparc ! CHECK-OBJ: Relocations [ diff --git a/test/MC/Sparc/sparc-tls-relocations.s b/test/MC/Sparc/sparc-tls-relocations.s index 6e0149e6414..257fda74120 100644 --- a/test/MC/Sparc/sparc-tls-relocations.s +++ b/test/MC/Sparc/sparc-tls-relocations.s @@ -3,8 +3,8 @@ ! ! RUN: llvm-mc %s -arch=sparc -show-encoding | FileCheck %s --check-prefix=ASM ! RUN: llvm-mc %s -arch=sparcv9 -show-encoding | FileCheck %s --check-prefix=ASM -! RUN: llvm-mc %s -arch=sparc -filetype=obj | llvm-readobj -r | FileCheck %s --check-prefix=REL -! RUN: llvm-mc %s -arch=sparcv9 -filetype=obj | llvm-readobj -r | FileCheck %s --check-prefix=REL +! RUN: llvm-mc %s -arch=sparc -filetype=obj | llvm-readobj -r - | FileCheck %s --check-prefix=REL +! RUN: llvm-mc %s -arch=sparcv9 -filetype=obj | llvm-readobj -r - | FileCheck %s --check-prefix=REL ! RUN: llvm-mc %s -arch=sparc -filetype=obj | llvm-objdump -r -d - | FileCheck %s --check-prefix=OBJDUMP ! RUN: llvm-mc %s -arch=sparcv9 -filetype=obj | llvm-objdump -r -d - | FileCheck %s --check-prefix=OBJDUMP diff --git a/test/MC/SystemZ/fixups-zEC12.s b/test/MC/SystemZ/fixups-zEC12.s index a2a64a84347..f1fd43261a8 100644 --- a/test/MC/SystemZ/fixups-zEC12.s +++ b/test/MC/SystemZ/fixups-zEC12.s @@ -2,7 +2,7 @@ # RUN: llvm-mc -triple s390x-unknown-unknown -mcpu=zEC12 --show-encoding %s | FileCheck %s # RUN: llvm-mc -triple s390x-unknown-unknown -mcpu=zEC12 -filetype=obj %s | \ -# RUN: llvm-readobj -r | FileCheck %s -check-prefix=CHECK-REL +# RUN: llvm-readobj -r - | FileCheck %s -check-prefix=CHECK-REL # CHECK: bpp 12, branch, 0 # encoding: [0xc7,0xc0,0x00,0x00,A,A] # CHECK: # fixup A - offset: 4, value: branch+4, kind: FK_390_PC16DBL diff --git a/test/MC/SystemZ/fixups.s b/test/MC/SystemZ/fixups.s index ea3b690d253..fc8cf49c0d8 100644 --- a/test/MC/SystemZ/fixups.s +++ b/test/MC/SystemZ/fixups.s @@ -2,7 +2,7 @@ # RUN: llvm-mc -triple s390x-unknown-unknown --show-encoding %s | FileCheck %s # RUN: llvm-mc -triple s390x-unknown-unknown -filetype=obj %s | \ -# RUN: llvm-readobj -r | FileCheck %s -check-prefix=CHECK-REL +# RUN: llvm-readobj -r - | FileCheck %s -check-prefix=CHECK-REL # CHECK: larl %r14, target # encoding: [0xc0,0xe0,A,A,A,A] # CHECK-NEXT: # fixup A - offset: 2, value: target+2, kind: FK_390_PC32DBL diff --git a/test/MC/SystemZ/word.s b/test/MC/SystemZ/word.s index 6299101bc3c..c0eae957e1c 100644 --- a/test/MC/SystemZ/word.s +++ b/test/MC/SystemZ/word.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -triple s390x-linux-gnu -filetype=obj %s | \ -# RUN: llvm-readobj -S --sd | FileCheck %s +# RUN: llvm-readobj -S --sd - | FileCheck %s .section word, "aw" .word 0xabcd diff --git a/test/MC/WebAssembly/custom-sections.ll b/test/MC/WebAssembly/custom-sections.ll index d0fc5df9977..d92399947cb 100644 --- a/test/MC/WebAssembly/custom-sections.ll +++ b/test/MC/WebAssembly/custom-sections.ll @@ -1,4 +1,4 @@ -; RUN: llc -filetype=obj %s -o - | llvm-readobj -S | FileCheck %s +; RUN: llc -filetype=obj %s -o - | llvm-readobj -S - | FileCheck %s ; Test the mechanism for defining user custom sections. diff --git a/test/MC/WebAssembly/debug-info.ll b/test/MC/WebAssembly/debug-info.ll index 1da20a8a12e..0277daf2bcc 100644 --- a/test/MC/WebAssembly/debug-info.ll +++ b/test/MC/WebAssembly/debug-info.ll @@ -1,4 +1,4 @@ -; RUN: llc -filetype=obj %s -o - | llvm-readobj -r -S --symbols | FileCheck %s +; RUN: llc -filetype=obj %s -o - | llvm-readobj -r -S --symbols - | FileCheck %s ; CHECK: Format: WASM ; CHECK-NEXT:Arch: wasm32 diff --git a/test/MC/WebAssembly/event-section.ll b/test/MC/WebAssembly/event-section.ll index b662c290d3c..35928fbcfe9 100644 --- a/test/MC/WebAssembly/event-section.ll +++ b/test/MC/WebAssembly/event-section.ll @@ -1,5 +1,5 @@ ; RUN: llc -filetype=obj -exception-model=wasm -mattr=+exception-handling %s -o - | obj2yaml | FileCheck %s -; RUN: llc -filetype=obj -exception-model=wasm -mattr=+exception-handling %s -o - | llvm-readobj -S | FileCheck -check-prefix=SEC %s +; RUN: llc -filetype=obj -exception-model=wasm -mattr=+exception-handling %s -o - | llvm-readobj -S - | FileCheck -check-prefix=SEC %s target triple = "wasm32-unknown-unknown" diff --git a/test/MC/WebAssembly/file-headers.ll b/test/MC/WebAssembly/file-headers.ll index ff738f8066c..676494e8b81 100644 --- a/test/MC/WebAssembly/file-headers.ll +++ b/test/MC/WebAssembly/file-headers.ll @@ -1,4 +1,4 @@ -; RUN: llc -filetype=obj %s -o - | llvm-readobj --file-headers | FileCheck %s +; RUN: llc -filetype=obj %s -o - | llvm-readobj --file-headers - | FileCheck %s target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" target triple = "wasm32-unknown-unknown" diff --git a/test/MC/WebAssembly/func-address.ll b/test/MC/WebAssembly/func-address.ll index c5eb0ea5938..281325e6b9f 100644 --- a/test/MC/WebAssembly/func-address.ll +++ b/test/MC/WebAssembly/func-address.ll @@ -1,4 +1,4 @@ -; RUN: llc -O2 -filetype=obj %s -o - | llvm-readobj -r -S --expand-relocs | FileCheck %s +; RUN: llc -O2 -filetype=obj %s -o - | llvm-readobj -r -S --expand-relocs - | FileCheck %s target triple = "wasm32-unknown-unknown" diff --git a/test/MC/WebAssembly/function-alias.ll b/test/MC/WebAssembly/function-alias.ll index a6a44ab0bd0..ec571083344 100644 --- a/test/MC/WebAssembly/function-alias.ll +++ b/test/MC/WebAssembly/function-alias.ll @@ -1,4 +1,4 @@ -; RUN: llc -filetype=obj %s -o - | llvm-readobj --symbols | FileCheck %s +; RUN: llc -filetype=obj %s -o - | llvm-readobj --symbols - | FileCheck %s target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" target triple = "wasm32-unknown-unknown-wasm" diff --git a/test/MC/WebAssembly/no-dead-strip.ll b/test/MC/WebAssembly/no-dead-strip.ll index f35be2c7f1c..e828c41b6e3 100644 --- a/test/MC/WebAssembly/no-dead-strip.ll +++ b/test/MC/WebAssembly/no-dead-strip.ll @@ -1,4 +1,4 @@ -; RUN: llc -filetype=obj -wasm-keep-registers %s -o - | llvm-readobj --symbols | FileCheck %s +; RUN: llc -filetype=obj -wasm-keep-registers %s -o - | llvm-readobj --symbols - | FileCheck %s target triple = "wasm32-unknown-unknown" diff --git a/test/MC/WebAssembly/reloc-code.ll b/test/MC/WebAssembly/reloc-code.ll index 0a9a3aeda6a..0aafeabec5c 100644 --- a/test/MC/WebAssembly/reloc-code.ll +++ b/test/MC/WebAssembly/reloc-code.ll @@ -1,4 +1,4 @@ -; RUN: llc -filetype=obj %s -o - | llvm-readobj -r --expand-relocs | FileCheck %s +; RUN: llc -filetype=obj %s -o - | llvm-readobj -r --expand-relocs - | FileCheck %s target triple = "wasm32-unknown-unknown" diff --git a/test/MC/WebAssembly/reloc-data.ll b/test/MC/WebAssembly/reloc-data.ll index 124db881b2f..78176326f24 100644 --- a/test/MC/WebAssembly/reloc-data.ll +++ b/test/MC/WebAssembly/reloc-data.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -filetype=obj %s -o - | llvm-readobj -r --expand-relocs | FileCheck %s +; RUN: llc -O0 -filetype=obj %s -o - | llvm-readobj -r --expand-relocs - | FileCheck %s target triple = "wasm32-unknown-unknown" diff --git a/test/MC/WebAssembly/sections.ll b/test/MC/WebAssembly/sections.ll index abc1fe48607..690a64f11e7 100644 --- a/test/MC/WebAssembly/sections.ll +++ b/test/MC/WebAssembly/sections.ll @@ -1,4 +1,4 @@ -; RUN: llc -filetype=obj %s -o - | llvm-readobj -S | FileCheck %s +; RUN: llc -filetype=obj %s -o - | llvm-readobj -S - | FileCheck %s target triple = "wasm32-unknown-unknown" diff --git a/test/MC/X86/AlignedBundling/section-alignment.s b/test/MC/X86/AlignedBundling/section-alignment.s index 5cbe58e5675..d5277d19457 100644 --- a/test/MC/X86/AlignedBundling/section-alignment.s +++ b/test/MC/X86/AlignedBundling/section-alignment.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - \ -# RUN: | llvm-readobj --sections | FileCheck %s +# RUN: | llvm-readobj --sections - | FileCheck %s # Test that bundle-aligned sections with instructions are aligned diff --git a/test/MC/X86/align-branch-section-size.s b/test/MC/X86/align-branch-section-size.s index 6ed9540b679..06c92373b17 100644 --- a/test/MC/X86/align-branch-section-size.s +++ b/test/MC/X86/align-branch-section-size.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -filetype=obj -triple x86_64 --x86-align-branch-boundary=32 --x86-align-branch=ret %s | llvm-readobj -S | FileCheck %s +# RUN: llvm-mc -filetype=obj -triple x86_64 --x86-align-branch-boundary=32 --x86-align-branch=ret %s | llvm-readobj -S - | FileCheck %s # Check the aligment of section that contains instructions to be aligned # is correctly set. diff --git a/test/MC/X86/align-branch-section-type.s b/test/MC/X86/align-branch-section-type.s index 7a5c10b83d9..c2152fd77bd 100644 --- a/test/MC/X86/align-branch-section-type.s +++ b/test/MC/X86/align-branch-section-type.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -filetype=obj -triple x86_64 --x86-align-branch-boundary=32 --x86-align-branch=ret %s | llvm-readobj -S | FileCheck %s +# RUN: llvm-mc -filetype=obj -triple x86_64 --x86-align-branch-boundary=32 --x86-align-branch=ret %s | llvm-readobj -S - | FileCheck %s ## Check we only pad in a text section diff --git a/test/MC/X86/cfi_def_cfa-crash.s b/test/MC/X86/cfi_def_cfa-crash.s index b67db658dd5..164737d1499 100644 --- a/test/MC/X86/cfi_def_cfa-crash.s +++ b/test/MC/X86/cfi_def_cfa-crash.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin -filetype=obj %s -o - | llvm-readobj --sections | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin -filetype=obj %s -o - | llvm-readobj --sections - | FileCheck %s // We were trying to generate compact unwind info for assembly like this. // The .cfi_def_cfa directive, however, throws a wrench into that and was diff --git a/test/MC/X86/eval-fill.s b/test/MC/X86/eval-fill.s index 838eedf5e17..bdc534f954a 100644 --- a/test/MC/X86/eval-fill.s +++ b/test/MC/X86/eval-fill.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj %s -o - -triple x86_64-pc-linux | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -filetype=obj %s -o - -triple x86_64-pc-linux | llvm-readobj -S - | FileCheck %s // CHECK: Name: .text // CHECK-NEXT: Type: SHT_PROGBITS diff --git a/test/MC/X86/expand-var.s b/test/MC/X86/expand-var.s index 26209424351..2cd27ec16c7 100644 --- a/test/MC/X86/expand-var.s +++ b/test/MC/X86/expand-var.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux < %s | llvm-readobj -r --symbols | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux < %s | llvm-readobj -r --symbols - | FileCheck %s // CHECK: Section {{.*}} .rela.text { // CHECK-NEXT: 0x0 R_X86_64_32 d 0x0 diff --git a/test/MC/X86/fp-setup-macho.s b/test/MC/X86/fp-setup-macho.s index 4bfff129f19..0067b027861 100644 --- a/test/MC/X86/fp-setup-macho.s +++ b/test/MC/X86/fp-setup-macho.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-macho -filetype obj -o - %s | llvm-readobj --sections | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-macho -filetype obj -o - %s | llvm-readobj --sections - | FileCheck %s _label: .cfi_startproc diff --git a/test/MC/X86/large-bss.s b/test/MC/X86/large-bss.s index 97fcc5de704..779425092fe 100644 --- a/test/MC/X86/large-bss.s +++ b/test/MC/X86/large-bss.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-pc-linux -filetype=obj %s -o - | llvm-readobj -S | FileCheck %s +// RUN: llvm-mc -triple x86_64-pc-linux -filetype=obj %s -o - | llvm-readobj -S - | FileCheck %s .bss .zero 0x10000000000000 diff --git a/test/MC/X86/no-elf-compact-unwind.s b/test/MC/X86/no-elf-compact-unwind.s index e61c24c141a..ade412d7964 100644 --- a/test/MC/X86/no-elf-compact-unwind.s +++ b/test/MC/X86/no-elf-compact-unwind.s @@ -1,6 +1,6 @@ -// RUN: llvm-mc < %s -filetype=obj -triple x86_64-apple-macosx10.8.0 | llvm-readobj -S | FileCheck -check-prefix=MACHO %s -// RUN: llvm-mc < %s -filetype=obj -triple x86_64-apple-ios7.0.0 | llvm-readobj -S | FileCheck -check-prefix=MACHO %s -// RUN: llvm-mc < %s -filetype=obj -triple x86_64-unknown-linux | llvm-readobj -S | FileCheck -check-prefix=ELF %s +// RUN: llvm-mc < %s -filetype=obj -triple x86_64-apple-macosx10.8.0 | llvm-readobj -S - | FileCheck -check-prefix=MACHO %s +// RUN: llvm-mc < %s -filetype=obj -triple x86_64-apple-ios7.0.0 | llvm-readobj -S - | FileCheck -check-prefix=MACHO %s +// RUN: llvm-mc < %s -filetype=obj -triple x86_64-unknown-linux | llvm-readobj -S - | FileCheck -check-prefix=ELF %s .globl __Z3barv .align 4, 0x90 diff --git a/test/MC/X86/reloc-directive.s b/test/MC/X86/reloc-directive.s index 124f5209628..5f4fc2394f5 100644 --- a/test/MC/X86/reloc-directive.s +++ b/test/MC/X86/reloc-directive.s @@ -1,10 +1,10 @@ # RUN: llvm-mc -triple i686-pc-win32 < %s -show-encoding \ # RUN: | FileCheck -check-prefix=ASM %s # RUN: llvm-mc -triple i686-pc-win32 < %s -show-encoding \ -# RUN: -filetype=obj | llvm-readobj --sections --section-data -r | \ +# RUN: -filetype=obj | llvm-readobj --sections --section-data -r - | \ # RUN: FileCheck -check-prefix=OBJ-32 %s # RUN: llvm-mc -triple x86_64-pc-win32 < %s -show-encoding \ -# RUN: -filetype=obj | llvm-readobj --sections --section-data -r | \ +# RUN: -filetype=obj | llvm-readobj --sections --section-data -r - | \ # RUN: FileCheck -check-prefix=OBJ-64 %s .text foo: diff --git a/test/MC/X86/reloc-macho.s b/test/MC/X86/reloc-macho.s index 9297b1ba8b3..82ca0de8706 100644 --- a/test/MC/X86/reloc-macho.s +++ b/test/MC/X86/reloc-macho.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin %s -o - | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin %s -o - | llvm-readobj -r - | FileCheck %s // CHECK: Relocations [ // CHECK-NEXT: ] diff --git a/test/MC/X86/reloc-undef-global.s b/test/MC/X86/reloc-undef-global.s index 24de9045252..d89a5f86ca1 100644 --- a/test/MC/X86/reloc-undef-global.s +++ b/test/MC/X86/reloc-undef-global.s @@ -1,5 +1,5 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o - | llvm-readobj -r | FileCheck --check-prefix=ELF %s -// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin %s -o - | llvm-readobj -r | FileCheck --check-prefix=MACHO %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o - | llvm-readobj -r - | FileCheck --check-prefix=ELF %s +// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin %s -o - | llvm-readobj -r - | FileCheck --check-prefix=MACHO %s bar = foo + 4 diff --git a/test/MC/X86/x86-evenDirective.s b/test/MC/X86/x86-evenDirective.s index d59ae903e2d..df810383ec4 100644 --- a/test/MC/X86/x86-evenDirective.s +++ b/test/MC/X86/x86-evenDirective.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -triple -x86_64-unknown-unknown -filetype obj -o - %s | llvm-readobj -S --sd \ +# RUN: llvm-mc -triple -x86_64-unknown-unknown -filetype obj -o - %s | llvm-readobj -S --sd - \ # RUN: | FileCheck %s .text diff --git a/test/MC/X86/x86_64-signed-reloc.s b/test/MC/X86/x86_64-signed-reloc.s index e8a2720df1d..c31e9932fb6 100644 --- a/test/MC/X86/x86_64-signed-reloc.s +++ b/test/MC/X86/x86_64-signed-reloc.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-linux-gnu -filetype=obj %s | llvm-readobj -r | FileCheck %s +// RUN: llvm-mc -triple x86_64-linux-gnu -filetype=obj %s | llvm-readobj -r - | FileCheck %s // CHECK: Relocations [ diff --git a/test/tools/llvm-ifs/func.ifs b/test/tools/llvm-ifs/func.ifs index d6d85782b2e..6a5aede21e2 100644 --- a/test/tools/llvm-ifs/func.ifs +++ b/test/tools/llvm-ifs/func.ifs @@ -2,7 +2,7 @@ # RUN: FileCheck %s --check-prefixes=CHECK-IFS # RUN: llvm-ifs -action write-bin -o - %s %S/object.ifs | \ -# RUN: llvm-readelf --all | FileCheck %s --check-prefixes=CHECK-ELF +# RUN: llvm-readelf --all - | FileCheck %s --check-prefixes=CHECK-ELF # RUN: llvm-ifs -action write-bin -force-format TBD -o - %s %S/object.ifs | \ # RUN: FileCheck %s --check-prefixes=CHECK-DARWIN-TBD3 diff --git a/test/tools/llvm-ifs/object-function-size-weak-combo.ifs b/test/tools/llvm-ifs/object-function-size-weak-combo.ifs index 769f423f328..1eb9f3c7bc1 100644 --- a/test/tools/llvm-ifs/object-function-size-weak-combo.ifs +++ b/test/tools/llvm-ifs/object-function-size-weak-combo.ifs @@ -2,7 +2,7 @@ # RUN: FileCheck %s --check-prefixes=CHECK-IFS # RUN: llvm-ifs -action write-bin -o - %s %S/func.ifs %S/object.ifs %S/weak.ifs | \ -# RUN: llvm-readelf --all | FileCheck %s --check-prefixes=CHECK-ELF +# RUN: llvm-readelf --all - | FileCheck %s --check-prefixes=CHECK-ELF # CHECK-IFS: --- !experimental-ifs-v2 # CHECK-IFS-NEXT: IfsVersion: 2.0 diff --git a/test/tools/llvm-ifs/object.ifs b/test/tools/llvm-ifs/object.ifs index c4823c20fce..fb9685372ca 100644 --- a/test/tools/llvm-ifs/object.ifs +++ b/test/tools/llvm-ifs/object.ifs @@ -2,7 +2,7 @@ # RUN: FileCheck %s --check-prefixes=CHECK-IFS # RUN: llvm-ifs -action write-bin -o - %s | \ -# RUN: llvm-readelf --all | FileCheck %s --check-prefixes=CHECK-ELF +# RUN: llvm-readelf --all - | FileCheck %s --check-prefixes=CHECK-ELF # CHECK-IFS: --- !experimental-ifs-v2 # CHECK-IFS-NEXT: IfsVersion: 2.0 diff --git a/test/tools/llvm-readobj/ELF/AArch64/dwarf-cfi.s b/test/tools/llvm-readobj/ELF/AArch64/dwarf-cfi.s index cefc0017154..59522afc0bc 100644 --- a/test/tools/llvm-readobj/ELF/AArch64/dwarf-cfi.s +++ b/test/tools/llvm-readobj/ELF/AArch64/dwarf-cfi.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -triple arm64-linux -filetype obj -o - %s | llvm-readobj -u | FileCheck %s +# RUN: llvm-mc -triple arm64-linux -filetype obj -o - %s | llvm-readobj -u - | FileCheck %s # CHECK: [0x0] CIE length=16 # CHECK-NEXT: version: 1 diff --git a/test/tools/llvm-readobj/ELF/ARM/dwarf-cfi.s b/test/tools/llvm-readobj/ELF/ARM/dwarf-cfi.s index 227ac263b4c..ad6e8d4c578 100644 --- a/test/tools/llvm-readobj/ELF/ARM/dwarf-cfi.s +++ b/test/tools/llvm-readobj/ELF/ARM/dwarf-cfi.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -triple arm-linux -filetype obj -o - %s | llvm-readobj -u | FileCheck %s +# RUN: llvm-mc -triple arm-linux -filetype obj -o - %s | llvm-readobj -u - | FileCheck %s # CHECK: [0x0] CIE length=16 # CHECK-NEXT: version: 1 diff --git a/test/tools/llvm-readobj/wasm/wasm-imports.test b/test/tools/llvm-readobj/wasm/wasm-imports.test index a6d8ca7b506..35639d11ee9 100644 --- a/test/tools/llvm-readobj/wasm/wasm-imports.test +++ b/test/tools/llvm-readobj/wasm/wasm-imports.test @@ -1,4 +1,4 @@ -# RUN: yaml2obj %s | llvm-readobj --symbols | FileCheck %s +# RUN: yaml2obj %s | llvm-readobj --symbols - | FileCheck %s # Test symbols with custom import module and name attributes.