diff --git a/llvm/docs/CommandGuide/llvm-readelf.rst b/llvm/docs/CommandGuide/llvm-readelf.rst --- a/llvm/docs/CommandGuide/llvm-readelf.rst +++ b/llvm/docs/CommandGuide/llvm-readelf.rst @@ -14,7 +14,7 @@ The :program:`llvm-readelf` tool displays low-level format-specific information about one or more object files. -If ``input`` is "``-``" or omitted, :program:`llvm-readelf` reads from standard +If ``input`` is "``-``", :program:`llvm-readelf` reads from standard input. Otherwise, it will read from the specified ``filenames``. OPTIONS diff --git a/llvm/docs/CommandGuide/llvm-readobj.rst b/llvm/docs/CommandGuide/llvm-readobj.rst --- a/llvm/docs/CommandGuide/llvm-readobj.rst +++ b/llvm/docs/CommandGuide/llvm-readobj.rst @@ -14,7 +14,7 @@ The :program:`llvm-readobj` tool displays low-level format-specific information about one or more object files. -If ``input`` is "``-``" or omitted, :program:`llvm-readobj` reads from standard +If ``input`` is "``-``", :program:`llvm-readobj` reads from standard input. Otherwise, it will read from the specified ``filenames``. DIFFERENCES TO LLVM-READELF diff --git a/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-0.ll b/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-0.ll --- a/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-0.ll +++ b/llvm/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/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-1.ll b/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-1.ll --- a/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-1.ll +++ b/llvm/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/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-2.ll b/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-2.ll --- a/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-2.ll +++ b/llvm/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/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-3.ll b/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-3.ll --- a/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-3.ll +++ b/llvm/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/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-4.ll b/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-4.ll --- a/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-4.ll +++ b/llvm/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/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-5.ll b/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-5.ll --- a/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-5.ll +++ b/llvm/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/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-6.ll b/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-6.ll --- a/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-6.ll +++ b/llvm/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/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-7.ll b/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-7.ll --- a/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-7.ll +++ b/llvm/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/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-8.ll b/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-8.ll --- a/llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-8.ll +++ b/llvm/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/llvm/test/CodeGen/AArch64/win64-jumptable.ll b/llvm/test/CodeGen/AArch64/win64-jumptable.ll --- a/llvm/test/CodeGen/AArch64/win64-jumptable.ll +++ b/llvm/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/llvm/test/CodeGen/AArch64/wineh-mingw.ll b/llvm/test/CodeGen/AArch64/wineh-mingw.ll --- a/llvm/test/CodeGen/AArch64/wineh-mingw.ll +++ b/llvm/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/llvm/test/CodeGen/AArch64/wineh1.mir b/llvm/test/CodeGen/AArch64/wineh1.mir --- a/llvm/test/CodeGen/AArch64/wineh1.mir +++ b/llvm/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/llvm/test/CodeGen/AArch64/wineh2.mir b/llvm/test/CodeGen/AArch64/wineh2.mir --- a/llvm/test/CodeGen/AArch64/wineh2.mir +++ b/llvm/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/llvm/test/CodeGen/AArch64/wineh3.mir b/llvm/test/CodeGen/AArch64/wineh3.mir --- a/llvm/test/CodeGen/AArch64/wineh3.mir +++ b/llvm/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/llvm/test/CodeGen/AArch64/wineh4.mir b/llvm/test/CodeGen/AArch64/wineh4.mir --- a/llvm/test/CodeGen/AArch64/wineh4.mir +++ b/llvm/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/llvm/test/CodeGen/AArch64/wineh5.mir b/llvm/test/CodeGen/AArch64/wineh5.mir --- a/llvm/test/CodeGen/AArch64/wineh5.mir +++ b/llvm/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/llvm/test/CodeGen/AArch64/wineh6.mir b/llvm/test/CodeGen/AArch64/wineh6.mir --- a/llvm/test/CodeGen/AArch64/wineh6.mir +++ b/llvm/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/llvm/test/CodeGen/AArch64/wineh7.mir b/llvm/test/CodeGen/AArch64/wineh7.mir --- a/llvm/test/CodeGen/AArch64/wineh7.mir +++ b/llvm/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/llvm/test/CodeGen/AArch64/wineh8.mir b/llvm/test/CodeGen/AArch64/wineh8.mir --- a/llvm/test/CodeGen/AArch64/wineh8.mir +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/amdpal-elf.ll b/llvm/test/CodeGen/AMDGPU/amdpal-elf.ll --- a/llvm/test/CodeGen/AMDGPU/amdpal-elf.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/attr-amdgpu-flat-work-group-size.ll b/llvm/test/CodeGen/AMDGPU/attr-amdgpu-flat-work-group-size.ll --- a/llvm/test/CodeGen/AMDGPU/attr-amdgpu-flat-work-group-size.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/code-object-v3.ll b/llvm/test/CodeGen/AMDGPU/code-object-v3.ll --- a/llvm/test/CodeGen/AMDGPU/code-object-v3.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/elf-notes.ll b/llvm/test/CodeGen/AMDGPU/elf-notes.ll --- a/llvm/test/CodeGen/AMDGPU/elf-notes.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-func-align.ll b/llvm/test/CodeGen/AMDGPU/hsa-func-align.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-func-align.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-func.ll b/llvm/test/CodeGen/AMDGPU/hsa-func.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-func.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg-v3.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg-v3.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg-v3.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-enqueue-kernel-v3.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-enqueue-kernel-v3.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-enqueue-kernel-v3.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-enqueue-kernel.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-enqueue-kernel.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-enqueue-kernel.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-from-llvm-ir-full-v3.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-from-llvm-ir-full-v3.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-from-llvm-ir-full-v3.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-from-llvm-ir-full.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-from-llvm-ir-full.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-from-llvm-ir-full.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-hidden-args-v3.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-hidden-args-v3.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-hidden-args-v3.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-hidden-args.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-hidden-args.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-hidden-args.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-hostcall-absent-v3.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-hostcall-absent-v3.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-hostcall-absent-v3.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-hostcall-absent.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-hostcall-absent.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-hostcall-absent.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-hostcall-present-v3.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-hostcall-present-v3.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-hostcall-present-v3.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-hostcall-present.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-hostcall-present.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-hostcall-present.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-images-v3.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-images-v3.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-images-v3.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-images.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-images.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-images.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-1-v3.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-1-v3.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-1-v3.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-1.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-1.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-1.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-2-v3.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-2-v3.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-2-v3.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-2.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-2.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-2.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-3-v3.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-3-v3.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-3-v3.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-3.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-3.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-3.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-kernel-code-props-v3.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-kernel-code-props-v3.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-kernel-code-props-v3.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa-metadata-kernel-code-props.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-kernel-code-props.ll --- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-kernel-code-props.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/hsa.ll b/llvm/test/CodeGen/AMDGPU/hsa.ll --- a/llvm/test/CodeGen/AMDGPU/hsa.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/lds-relocs.ll b/llvm/test/CodeGen/AMDGPU/lds-relocs.ll --- a/llvm/test/CodeGen/AMDGPU/lds-relocs.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/no-initializer-constant-addrspace.ll b/llvm/test/CodeGen/AMDGPU/no-initializer-constant-addrspace.ll --- a/llvm/test/CodeGen/AMDGPU/no-initializer-constant-addrspace.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/r600-constant-array-fixup.ll b/llvm/test/CodeGen/AMDGPU/r600-constant-array-fixup.ll --- a/llvm/test/CodeGen/AMDGPU/r600-constant-array-fixup.ll +++ b/llvm/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/llvm/test/CodeGen/AMDGPU/scratch-simple.ll b/llvm/test/CodeGen/AMDGPU/scratch-simple.ll --- a/llvm/test/CodeGen/AMDGPU/scratch-simple.ll +++ b/llvm/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/llvm/test/CodeGen/ARM/2010-12-08-tpsoft.ll b/llvm/test/CodeGen/ARM/2010-12-08-tpsoft.ll --- a/llvm/test/CodeGen/ARM/2010-12-08-tpsoft.ll +++ b/llvm/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/llvm/test/CodeGen/ARM/2010-12-15-elf-lcomm.ll b/llvm/test/CodeGen/ARM/2010-12-15-elf-lcomm.ll --- a/llvm/test/CodeGen/ARM/2010-12-15-elf-lcomm.ll +++ b/llvm/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/llvm/test/CodeGen/ARM/MachO-subtypes.ll b/llvm/test/CodeGen/ARM/MachO-subtypes.ll --- a/llvm/test/CodeGen/ARM/MachO-subtypes.ll +++ b/llvm/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/llvm/test/CodeGen/ARM/build-attributes-encoding.s b/llvm/test/CodeGen/ARM/build-attributes-encoding.s --- a/llvm/test/CodeGen/ARM/build-attributes-encoding.s +++ b/llvm/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/llvm/test/CodeGen/BPF/BTF/binary-format.ll b/llvm/test/CodeGen/BPF/BTF/binary-format.ll --- a/llvm/test/CodeGen/BPF/BTF/binary-format.ll +++ b/llvm/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/llvm/test/CodeGen/BPF/CORE/no-elf-ama-symbol.ll b/llvm/test/CodeGen/BPF/CORE/no-elf-ama-symbol.ll --- a/llvm/test/CodeGen/BPF/CORE/no-elf-ama-symbol.ll +++ b/llvm/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/llvm/test/CodeGen/BPF/elf-symbol-information.ll b/llvm/test/CodeGen/BPF/elf-symbol-information.ll --- a/llvm/test/CodeGen/BPF/elf-symbol-information.ll +++ b/llvm/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/llvm/test/CodeGen/Hexagon/simple_addend.ll b/llvm/test/CodeGen/Hexagon/simple_addend.ll --- a/llvm/test/CodeGen/Hexagon/simple_addend.ll +++ b/llvm/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/llvm/test/CodeGen/MIR/X86/diexpr-win32.mir b/llvm/test/CodeGen/MIR/X86/diexpr-win32.mir --- a/llvm/test/CodeGen/MIR/X86/diexpr-win32.mir +++ b/llvm/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/llvm/test/CodeGen/Mips/cpus.ll b/llvm/test/CodeGen/Mips/cpus.ll --- a/llvm/test/CodeGen/Mips/cpus.ll +++ b/llvm/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/llvm/test/CodeGen/Mips/micromips-ase-function-attribute.ll b/llvm/test/CodeGen/Mips/micromips-ase-function-attribute.ll --- a/llvm/test/CodeGen/Mips/micromips-ase-function-attribute.ll +++ b/llvm/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/llvm/test/CodeGen/Mips/mips-shf-gprel.s b/llvm/test/CodeGen/Mips/mips-shf-gprel.s --- a/llvm/test/CodeGen/Mips/mips-shf-gprel.s +++ b/llvm/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/llvm/test/CodeGen/PowerPC/mcm-obj-2.ll b/llvm/test/CodeGen/PowerPC/mcm-obj-2.ll --- a/llvm/test/CodeGen/PowerPC/mcm-obj-2.ll +++ b/llvm/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/llvm/test/CodeGen/PowerPC/mcm-obj.ll b/llvm/test/CodeGen/PowerPC/mcm-obj.ll --- a/llvm/test/CodeGen/PowerPC/mcm-obj.ll +++ b/llvm/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/llvm/test/CodeGen/PowerPC/pr15359.ll b/llvm/test/CodeGen/PowerPC/pr15359.ll --- a/llvm/test/CodeGen/PowerPC/pr15359.ll +++ b/llvm/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/llvm/test/CodeGen/PowerPC/pr22711.ll b/llvm/test/CodeGen/PowerPC/pr22711.ll --- a/llvm/test/CodeGen/PowerPC/pr22711.ll +++ b/llvm/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/llvm/test/CodeGen/RISCV/fixups-diff.ll b/llvm/test/CodeGen/RISCV/fixups-diff.ll --- a/llvm/test/CodeGen/RISCV/fixups-diff.ll +++ b/llvm/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/llvm/test/CodeGen/RISCV/fixups-relax-diff.ll b/llvm/test/CodeGen/RISCV/fixups-relax-diff.ll --- a/llvm/test/CodeGen/RISCV/fixups-relax-diff.ll +++ b/llvm/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/llvm/test/CodeGen/SPARC/obj-relocs.ll b/llvm/test/CodeGen/SPARC/obj-relocs.ll --- a/llvm/test/CodeGen/SPARC/obj-relocs.ll +++ b/llvm/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/llvm/test/CodeGen/SPARC/tls.ll b/llvm/test/CodeGen/SPARC/tls.ll --- a/llvm/test/CodeGen/SPARC/tls.ll +++ b/llvm/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/llvm/test/CodeGen/Thumb2/tpsoft.ll b/llvm/test/CodeGen/Thumb2/tpsoft.ll --- a/llvm/test/CodeGen/Thumb2/tpsoft.ll +++ b/llvm/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/llvm/test/CodeGen/X86/file-directive.ll b/llvm/test/CodeGen/X86/file-directive.ll --- a/llvm/test/CodeGen/X86/file-directive.ll +++ b/llvm/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/llvm/test/CodeGen/X86/push-cfi-obj.ll b/llvm/test/CodeGen/X86/push-cfi-obj.ll --- a/llvm/test/CodeGen/X86/push-cfi-obj.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/asm.ll b/llvm/test/DebugInfo/COFF/asm.ll --- a/llvm/test/DebugInfo/COFF/asm.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/cpp-mangling.ll b/llvm/test/DebugInfo/COFF/cpp-mangling.ll --- a/llvm/test/DebugInfo/COFF/cpp-mangling.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/dlang.ll b/llvm/test/DebugInfo/COFF/dlang.ll --- a/llvm/test/DebugInfo/COFF/dlang.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/fpo-csrs.ll b/llvm/test/DebugInfo/COFF/fpo-csrs.ll --- a/llvm/test/DebugInfo/COFF/fpo-csrs.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/fpo-realign-vframe.ll b/llvm/test/DebugInfo/COFF/fpo-realign-vframe.ll --- a/llvm/test/DebugInfo/COFF/fpo-realign-vframe.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/fpo-shrink-wrap.ll b/llvm/test/DebugInfo/COFF/fpo-shrink-wrap.ll --- a/llvm/test/DebugInfo/COFF/fpo-shrink-wrap.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/inlining-files.ll b/llvm/test/DebugInfo/COFF/inlining-files.ll --- a/llvm/test/DebugInfo/COFF/inlining-files.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/inlining-header.ll b/llvm/test/DebugInfo/COFF/inlining-header.ll --- a/llvm/test/DebugInfo/COFF/inlining-header.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/inlining-levels.ll b/llvm/test/DebugInfo/COFF/inlining-levels.ll --- a/llvm/test/DebugInfo/COFF/inlining-levels.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/inlining-padding.ll b/llvm/test/DebugInfo/COFF/inlining-padding.ll --- a/llvm/test/DebugInfo/COFF/inlining-padding.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/inlining.ll b/llvm/test/DebugInfo/COFF/inlining.ll --- a/llvm/test/DebugInfo/COFF/inlining.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/lines-difile.ll b/llvm/test/DebugInfo/COFF/lines-difile.ll --- a/llvm/test/DebugInfo/COFF/lines-difile.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/long-name.ll b/llvm/test/DebugInfo/COFF/long-name.ll --- a/llvm/test/DebugInfo/COFF/long-name.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/long-type-name.ll b/llvm/test/DebugInfo/COFF/long-type-name.ll --- a/llvm/test/DebugInfo/COFF/long-type-name.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/multifile.ll b/llvm/test/DebugInfo/COFF/multifile.ll --- a/llvm/test/DebugInfo/COFF/multifile.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/multifunction.ll b/llvm/test/DebugInfo/COFF/multifunction.ll --- a/llvm/test/DebugInfo/COFF/multifunction.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/pieces.ll b/llvm/test/DebugInfo/COFF/pieces.ll --- a/llvm/test/DebugInfo/COFF/pieces.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/simple.ll b/llvm/test/DebugInfo/COFF/simple.ll --- a/llvm/test/DebugInfo/COFF/simple.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/swift.ll b/llvm/test/DebugInfo/COFF/swift.ll --- a/llvm/test/DebugInfo/COFF/swift.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/types-array-unsized.ll b/llvm/test/DebugInfo/COFF/types-array-unsized.ll --- a/llvm/test/DebugInfo/COFF/types-array-unsized.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/vframe-csr.ll b/llvm/test/DebugInfo/COFF/vframe-csr.ll --- a/llvm/test/DebugInfo/COFF/vframe-csr.ll +++ b/llvm/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/llvm/test/DebugInfo/COFF/vframe-fpo.ll b/llvm/test/DebugInfo/COFF/vframe-fpo.ll --- a/llvm/test/DebugInfo/COFF/vframe-fpo.ll +++ b/llvm/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/llvm/test/DebugInfo/Mips/eh_frame.ll b/llvm/test/DebugInfo/Mips/eh_frame.ll --- a/llvm/test/DebugInfo/Mips/eh_frame.ll +++ b/llvm/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/llvm/test/DebugInfo/RISCV/relax-debug-line.ll b/llvm/test/DebugInfo/RISCV/relax-debug-line.ll --- a/llvm/test/DebugInfo/RISCV/relax-debug-line.ll +++ b/llvm/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/llvm/test/DebugInfo/X86/xray-split-dwarf-interaction.ll b/llvm/test/DebugInfo/X86/xray-split-dwarf-interaction.ll --- a/llvm/test/DebugInfo/X86/xray-split-dwarf-interaction.ll +++ b/llvm/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/llvm/test/MC/AArch64/arm64-be-datalayout.s b/llvm/test/MC/AArch64/arm64-be-datalayout.s --- a/llvm/test/MC/AArch64/arm64-be-datalayout.s +++ b/llvm/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/llvm/test/MC/AArch64/arm64-elf-reloc-condbr.s b/llvm/test/MC/AArch64/arm64-elf-reloc-condbr.s --- a/llvm/test/MC/AArch64/arm64-elf-reloc-condbr.s +++ b/llvm/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/llvm/test/MC/AArch64/arm64-leaf-compact-unwind.s b/llvm/test/MC/AArch64/arm64-leaf-compact-unwind.s --- a/llvm/test/MC/AArch64/arm64-leaf-compact-unwind.s +++ b/llvm/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/llvm/test/MC/AArch64/arm64-small-data-fixups.s b/llvm/test/MC/AArch64/arm64-small-data-fixups.s --- a/llvm/test/MC/AArch64/arm64-small-data-fixups.s +++ b/llvm/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/llvm/test/MC/AArch64/arm64-tls-relocs.s b/llvm/test/MC/AArch64/arm64-tls-relocs.s --- a/llvm/test/MC/AArch64/arm64-tls-relocs.s +++ b/llvm/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/llvm/test/MC/AArch64/coff-align.s b/llvm/test/MC/AArch64/coff-align.s --- a/llvm/test/MC/AArch64/coff-align.s +++ b/llvm/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/llvm/test/MC/AArch64/coff-function-type-info.ll b/llvm/test/MC/AArch64/coff-function-type-info.ll --- a/llvm/test/MC/AArch64/coff-function-type-info.ll +++ b/llvm/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/llvm/test/MC/AArch64/cold.s b/llvm/test/MC/AArch64/cold.s --- a/llvm/test/MC/AArch64/cold.s +++ b/llvm/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/llvm/test/MC/AArch64/elf-extern.s b/llvm/test/MC/AArch64/elf-extern.s --- a/llvm/test/MC/AArch64/elf-extern.s +++ b/llvm/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/llvm/test/MC/AArch64/elf-globaladdress.ll b/llvm/test/MC/AArch64/elf-globaladdress.ll --- a/llvm/test/MC/AArch64/elf-globaladdress.ll +++ b/llvm/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/llvm/test/MC/AArch64/elf-reloc-ldrlit.s b/llvm/test/MC/AArch64/elf-reloc-ldrlit.s --- a/llvm/test/MC/AArch64/elf-reloc-ldrlit.s +++ b/llvm/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/llvm/test/MC/AArch64/elf-reloc-ldstunsimm.s b/llvm/test/MC/AArch64/elf-reloc-ldstunsimm.s --- a/llvm/test/MC/AArch64/elf-reloc-ldstunsimm.s +++ b/llvm/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/llvm/test/MC/AArch64/elf-reloc-movw.s b/llvm/test/MC/AArch64/elf-reloc-movw.s --- a/llvm/test/MC/AArch64/elf-reloc-movw.s +++ b/llvm/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/llvm/test/MC/AArch64/elf-reloc-pcreladdressing.s b/llvm/test/MC/AArch64/elf-reloc-pcreladdressing.s --- a/llvm/test/MC/AArch64/elf-reloc-pcreladdressing.s +++ b/llvm/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/llvm/test/MC/AArch64/elf-reloc-plt32.s b/llvm/test/MC/AArch64/elf-reloc-plt32.s --- a/llvm/test/MC/AArch64/elf-reloc-plt32.s +++ b/llvm/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/llvm/test/MC/AArch64/elf-reloc-tstb.s b/llvm/test/MC/AArch64/elf-reloc-tstb.s --- a/llvm/test/MC/AArch64/elf-reloc-tstb.s +++ b/llvm/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/llvm/test/MC/AArch64/elf-reloc-uncondbrimm.s b/llvm/test/MC/AArch64/elf-reloc-uncondbrimm.s --- a/llvm/test/MC/AArch64/elf-reloc-uncondbrimm.s +++ b/llvm/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/llvm/test/MC/AArch64/elf_osabi_flags.s b/llvm/test/MC/AArch64/elf_osabi_flags.s --- a/llvm/test/MC/AArch64/elf_osabi_flags.s +++ b/llvm/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/llvm/test/MC/AArch64/jump-table.s b/llvm/test/MC/AArch64/jump-table.s --- a/llvm/test/MC/AArch64/jump-table.s +++ b/llvm/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/llvm/test/MC/AArch64/reloc-directive.s b/llvm/test/MC/AArch64/reloc-directive.s --- a/llvm/test/MC/AArch64/reloc-directive.s +++ b/llvm/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/llvm/test/MC/AArch64/seh.s b/llvm/test/MC/AArch64/seh.s --- a/llvm/test/MC/AArch64/seh.s +++ b/llvm/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/llvm/test/MC/AArch64/tls-relocs.s b/llvm/test/MC/AArch64/tls-relocs.s --- a/llvm/test/MC/AArch64/tls-relocs.s +++ b/llvm/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/llvm/test/MC/AMDGPU/elf-lds.s b/llvm/test/MC/AMDGPU/elf-lds.s --- a/llvm/test/MC/AMDGPU/elf-lds.s +++ b/llvm/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/llvm/test/MC/AMDGPU/hsa-exp.s b/llvm/test/MC/AMDGPU/hsa-exp.s --- a/llvm/test/MC/AMDGPU/hsa-exp.s +++ b/llvm/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/llvm/test/MC/AMDGPU/hsa-gfx10.s b/llvm/test/MC/AMDGPU/hsa-gfx10.s --- a/llvm/test/MC/AMDGPU/hsa-gfx10.s +++ b/llvm/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/llvm/test/MC/AMDGPU/hsa-text.s b/llvm/test/MC/AMDGPU/hsa-text.s --- a/llvm/test/MC/AMDGPU/hsa-text.s +++ b/llvm/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/llvm/test/MC/AMDGPU/hsa.s b/llvm/test/MC/AMDGPU/hsa.s --- a/llvm/test/MC/AMDGPU/hsa.s +++ b/llvm/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/llvm/test/MC/AMDGPU/hsa_code_object_isa_args.s b/llvm/test/MC/AMDGPU/hsa_code_object_isa_args.s --- a/llvm/test/MC/AMDGPU/hsa_code_object_isa_args.s +++ b/llvm/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/llvm/test/MC/AMDGPU/pal-msgpack.s b/llvm/test/MC/AMDGPU/pal-msgpack.s --- a/llvm/test/MC/AMDGPU/pal-msgpack.s +++ b/llvm/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/llvm/test/MC/AMDGPU/pal.s b/llvm/test/MC/AMDGPU/pal.s --- a/llvm/test/MC/AMDGPU/pal.s +++ b/llvm/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/llvm/test/MC/AMDGPU/reloc.s b/llvm/test/MC/AMDGPU/reloc.s --- a/llvm/test/MC/AMDGPU/reloc.s +++ b/llvm/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/llvm/test/MC/ARM/2010-11-30-reloc-movt.s b/llvm/test/MC/ARM/2010-11-30-reloc-movt.s --- a/llvm/test/MC/ARM/2010-11-30-reloc-movt.s +++ b/llvm/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/llvm/test/MC/ARM/arm-elf-symver.s b/llvm/test/MC/ARM/arm-elf-symver.s --- a/llvm/test/MC/ARM/arm-elf-symver.s +++ b/llvm/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/llvm/test/MC/ARM/arm-thumb-tail-call.ll b/llvm/test/MC/ARM/arm-thumb-tail-call.ll --- a/llvm/test/MC/ARM/arm-thumb-tail-call.ll +++ b/llvm/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/llvm/test/MC/ARM/coff-file.s b/llvm/test/MC/ARM/coff-file.s --- a/llvm/test/MC/ARM/coff-file.s +++ b/llvm/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/llvm/test/MC/ARM/coff-function-type-info.ll b/llvm/test/MC/ARM/coff-function-type-info.ll --- a/llvm/test/MC/ARM/coff-function-type-info.ll +++ b/llvm/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/llvm/test/MC/ARM/cxx-global-constructor.ll b/llvm/test/MC/ARM/cxx-global-constructor.ll --- a/llvm/test/MC/ARM/cxx-global-constructor.ll +++ b/llvm/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/llvm/test/MC/ARM/data-in-code.ll b/llvm/test/MC/ARM/data-in-code.ll --- a/llvm/test/MC/ARM/data-in-code.ll +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv2.s b/llvm/test/MC/ARM/directive-arch-armv2.s --- a/llvm/test/MC/ARM/directive-arch-armv2.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv2a.s b/llvm/test/MC/ARM/directive-arch-armv2a.s --- a/llvm/test/MC/ARM/directive-arch-armv2a.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv3.s b/llvm/test/MC/ARM/directive-arch-armv3.s --- a/llvm/test/MC/ARM/directive-arch-armv3.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv3m.s b/llvm/test/MC/ARM/directive-arch-armv3m.s --- a/llvm/test/MC/ARM/directive-arch-armv3m.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv4.s b/llvm/test/MC/ARM/directive-arch-armv4.s --- a/llvm/test/MC/ARM/directive-arch-armv4.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv4t.s b/llvm/test/MC/ARM/directive-arch-armv4t.s --- a/llvm/test/MC/ARM/directive-arch-armv4t.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv5.s b/llvm/test/MC/ARM/directive-arch-armv5.s --- a/llvm/test/MC/ARM/directive-arch-armv5.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv5t.s b/llvm/test/MC/ARM/directive-arch-armv5t.s --- a/llvm/test/MC/ARM/directive-arch-armv5t.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv5te.s b/llvm/test/MC/ARM/directive-arch-armv5te.s --- a/llvm/test/MC/ARM/directive-arch-armv5te.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv6-m.s b/llvm/test/MC/ARM/directive-arch-armv6-m.s --- a/llvm/test/MC/ARM/directive-arch-armv6-m.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv6.s b/llvm/test/MC/ARM/directive-arch-armv6.s --- a/llvm/test/MC/ARM/directive-arch-armv6.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv6k.s b/llvm/test/MC/ARM/directive-arch-armv6k.s --- a/llvm/test/MC/ARM/directive-arch-armv6k.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv6t2.s b/llvm/test/MC/ARM/directive-arch-armv6t2.s --- a/llvm/test/MC/ARM/directive-arch-armv6t2.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv6z.s b/llvm/test/MC/ARM/directive-arch-armv6z.s --- a/llvm/test/MC/ARM/directive-arch-armv6z.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv7-a.s b/llvm/test/MC/ARM/directive-arch-armv7-a.s --- a/llvm/test/MC/ARM/directive-arch-armv7-a.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv7-m.s b/llvm/test/MC/ARM/directive-arch-armv7-m.s --- a/llvm/test/MC/ARM/directive-arch-armv7-m.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv7-r.s b/llvm/test/MC/ARM/directive-arch-armv7-r.s --- a/llvm/test/MC/ARM/directive-arch-armv7-r.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv7.s b/llvm/test/MC/ARM/directive-arch-armv7.s --- a/llvm/test/MC/ARM/directive-arch-armv7.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv7a.s b/llvm/test/MC/ARM/directive-arch-armv7a.s --- a/llvm/test/MC/ARM/directive-arch-armv7a.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv7e-m.s b/llvm/test/MC/ARM/directive-arch-armv7e-m.s --- a/llvm/test/MC/ARM/directive-arch-armv7e-m.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv7em.s b/llvm/test/MC/ARM/directive-arch-armv7em.s --- a/llvm/test/MC/ARM/directive-arch-armv7em.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv7m.s b/llvm/test/MC/ARM/directive-arch-armv7m.s --- a/llvm/test/MC/ARM/directive-arch-armv7m.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv7r.s b/llvm/test/MC/ARM/directive-arch-armv7r.s --- a/llvm/test/MC/ARM/directive-arch-armv7r.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv8-a.s b/llvm/test/MC/ARM/directive-arch-armv8-a.s --- a/llvm/test/MC/ARM/directive-arch-armv8-a.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv8.2-a.s b/llvm/test/MC/ARM/directive-arch-armv8.2-a.s --- a/llvm/test/MC/ARM/directive-arch-armv8.2-a.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-armv8a.s b/llvm/test/MC/ARM/directive-arch-armv8a.s --- a/llvm/test/MC/ARM/directive-arch-armv8a.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-iwmmxt.s b/llvm/test/MC/ARM/directive-arch-iwmmxt.s --- a/llvm/test/MC/ARM/directive-arch-iwmmxt.s +++ b/llvm/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/llvm/test/MC/ARM/directive-arch-iwmmxt2.s b/llvm/test/MC/ARM/directive-arch-iwmmxt2.s --- a/llvm/test/MC/ARM/directive-arch-iwmmxt2.s +++ b/llvm/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/llvm/test/MC/ARM/directive-cpu.s b/llvm/test/MC/ARM/directive-cpu.s --- a/llvm/test/MC/ARM/directive-cpu.s +++ b/llvm/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/llvm/test/MC/ARM/directive-eabi_attribute-overwrite.s b/llvm/test/MC/ARM/directive-eabi_attribute-overwrite.s --- a/llvm/test/MC/ARM/directive-eabi_attribute-overwrite.s +++ b/llvm/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/llvm/test/MC/ARM/directive-eabi_attribute.s b/llvm/test/MC/ARM/directive-eabi_attribute.s --- a/llvm/test/MC/ARM/directive-eabi_attribute.s +++ b/llvm/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/llvm/test/MC/ARM/directive-even.s b/llvm/test/MC/ARM/directive-even.s --- a/llvm/test/MC/ARM/directive-even.s +++ b/llvm/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/llvm/test/MC/ARM/directive-fpu-multiple.s b/llvm/test/MC/ARM/directive-fpu-multiple.s --- a/llvm/test/MC/ARM/directive-fpu-multiple.s +++ b/llvm/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/llvm/test/MC/ARM/directive-fpu.s b/llvm/test/MC/ARM/directive-fpu.s --- a/llvm/test/MC/ARM/directive-fpu.s +++ b/llvm/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/llvm/test/MC/ARM/directive-object_arch-2.s b/llvm/test/MC/ARM/directive-object_arch-2.s --- a/llvm/test/MC/ARM/directive-object_arch-2.s +++ b/llvm/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/llvm/test/MC/ARM/directive-object_arch.s b/llvm/test/MC/ARM/directive-object_arch.s --- a/llvm/test/MC/ARM/directive-object_arch.s +++ b/llvm/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/llvm/test/MC/ARM/directive-tlsdescseq.s b/llvm/test/MC/ARM/directive-tlsdescseq.s --- a/llvm/test/MC/ARM/directive-tlsdescseq.s +++ b/llvm/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/llvm/test/MC/ARM/eh-compact-pr0.s b/llvm/test/MC/ARM/eh-compact-pr0.s --- a/llvm/test/MC/ARM/eh-compact-pr0.s +++ b/llvm/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/llvm/test/MC/ARM/eh-compact-pr1.s b/llvm/test/MC/ARM/eh-compact-pr1.s --- a/llvm/test/MC/ARM/eh-compact-pr1.s +++ b/llvm/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/llvm/test/MC/ARM/eh-directive-cantunwind.s b/llvm/test/MC/ARM/eh-directive-cantunwind.s --- a/llvm/test/MC/ARM/eh-directive-cantunwind.s +++ b/llvm/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/llvm/test/MC/ARM/eh-directive-handlerdata.s b/llvm/test/MC/ARM/eh-directive-handlerdata.s --- a/llvm/test/MC/ARM/eh-directive-handlerdata.s +++ b/llvm/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/llvm/test/MC/ARM/eh-directive-integrated-test.s b/llvm/test/MC/ARM/eh-directive-integrated-test.s --- a/llvm/test/MC/ARM/eh-directive-integrated-test.s +++ b/llvm/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/llvm/test/MC/ARM/eh-directive-movsp.s b/llvm/test/MC/ARM/eh-directive-movsp.s --- a/llvm/test/MC/ARM/eh-directive-movsp.s +++ b/llvm/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/llvm/test/MC/ARM/eh-directive-multiple-offsets.s b/llvm/test/MC/ARM/eh-directive-multiple-offsets.s --- a/llvm/test/MC/ARM/eh-directive-multiple-offsets.s +++ b/llvm/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/llvm/test/MC/ARM/eh-directive-pad.s b/llvm/test/MC/ARM/eh-directive-pad.s --- a/llvm/test/MC/ARM/eh-directive-pad.s +++ b/llvm/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/llvm/test/MC/ARM/eh-directive-personality.s b/llvm/test/MC/ARM/eh-directive-personality.s --- a/llvm/test/MC/ARM/eh-directive-personality.s +++ b/llvm/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/llvm/test/MC/ARM/eh-directive-personalityindex.s b/llvm/test/MC/ARM/eh-directive-personalityindex.s --- a/llvm/test/MC/ARM/eh-directive-personalityindex.s +++ b/llvm/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/llvm/test/MC/ARM/eh-directive-save.s b/llvm/test/MC/ARM/eh-directive-save.s --- a/llvm/test/MC/ARM/eh-directive-save.s +++ b/llvm/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/llvm/test/MC/ARM/eh-directive-section-comdat.s b/llvm/test/MC/ARM/eh-directive-section-comdat.s --- a/llvm/test/MC/ARM/eh-directive-section-comdat.s +++ b/llvm/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/llvm/test/MC/ARM/eh-directive-section-multiple-func.s b/llvm/test/MC/ARM/eh-directive-section-multiple-func.s --- a/llvm/test/MC/ARM/eh-directive-section-multiple-func.s +++ b/llvm/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/llvm/test/MC/ARM/eh-directive-section.s b/llvm/test/MC/ARM/eh-directive-section.s --- a/llvm/test/MC/ARM/eh-directive-section.s +++ b/llvm/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/llvm/test/MC/ARM/eh-directive-setfp.s b/llvm/test/MC/ARM/eh-directive-setfp.s --- a/llvm/test/MC/ARM/eh-directive-setfp.s +++ b/llvm/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/llvm/test/MC/ARM/eh-directive-text-section-multiple-func.s b/llvm/test/MC/ARM/eh-directive-text-section-multiple-func.s --- a/llvm/test/MC/ARM/eh-directive-text-section-multiple-func.s +++ b/llvm/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/llvm/test/MC/ARM/eh-directive-text-section.s b/llvm/test/MC/ARM/eh-directive-text-section.s --- a/llvm/test/MC/ARM/eh-directive-text-section.s +++ b/llvm/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/llvm/test/MC/ARM/eh-directive-unwind_raw.s b/llvm/test/MC/ARM/eh-directive-unwind_raw.s --- a/llvm/test/MC/ARM/eh-directive-unwind_raw.s +++ b/llvm/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/llvm/test/MC/ARM/eh-directive-vsave.s b/llvm/test/MC/ARM/eh-directive-vsave.s --- a/llvm/test/MC/ARM/eh-directive-vsave.s +++ b/llvm/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/llvm/test/MC/ARM/eh-link.s b/llvm/test/MC/ARM/eh-link.s --- a/llvm/test/MC/ARM/eh-link.s +++ b/llvm/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/llvm/test/MC/ARM/elf-eflags-eabi.s b/llvm/test/MC/ARM/elf-eflags-eabi.s --- a/llvm/test/MC/ARM/elf-eflags-eabi.s +++ b/llvm/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/llvm/test/MC/ARM/elf-execute-only-section.ll b/llvm/test/MC/ARM/elf-execute-only-section.ll --- a/llvm/test/MC/ARM/elf-execute-only-section.ll +++ b/llvm/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/llvm/test/MC/ARM/elf-reloc-01.s b/llvm/test/MC/ARM/elf-reloc-01.s --- a/llvm/test/MC/ARM/elf-reloc-01.s +++ b/llvm/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/llvm/test/MC/ARM/elf-reloc-02.s b/llvm/test/MC/ARM/elf-reloc-02.s --- a/llvm/test/MC/ARM/elf-reloc-02.s +++ b/llvm/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/llvm/test/MC/ARM/elf-reloc-03.s b/llvm/test/MC/ARM/elf-reloc-03.s --- a/llvm/test/MC/ARM/elf-reloc-03.s +++ b/llvm/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/llvm/test/MC/ARM/elf-reloc-condcall.s b/llvm/test/MC/ARM/elf-reloc-condcall.s --- a/llvm/test/MC/ARM/elf-reloc-condcall.s +++ b/llvm/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/llvm/test/MC/ARM/elf-thumbfunc-reloc.s b/llvm/test/MC/ARM/elf-thumbfunc-reloc.s --- a/llvm/test/MC/ARM/elf-thumbfunc-reloc.s +++ b/llvm/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/llvm/test/MC/ARM/elf-thumbfunc-reloc2.s b/llvm/test/MC/ARM/elf-thumbfunc-reloc2.s --- a/llvm/test/MC/ARM/elf-thumbfunc-reloc2.s +++ b/llvm/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/llvm/test/MC/ARM/elf-thumbfunc.s b/llvm/test/MC/ARM/elf-thumbfunc.s --- a/llvm/test/MC/ARM/elf-thumbfunc.s +++ b/llvm/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/llvm/test/MC/ARM/inst-directive.s b/llvm/test/MC/ARM/inst-directive.s --- a/llvm/test/MC/ARM/inst-directive.s +++ b/llvm/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/llvm/test/MC/ARM/mixed-arm-thumb-bl-fixup.ll b/llvm/test/MC/ARM/mixed-arm-thumb-bl-fixup.ll --- a/llvm/test/MC/ARM/mixed-arm-thumb-bl-fixup.ll +++ b/llvm/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/llvm/test/MC/ARM/target-expressions.s b/llvm/test/MC/ARM/target-expressions.s --- a/llvm/test/MC/ARM/target-expressions.s +++ b/llvm/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/llvm/test/MC/ARM/thumb-far-jump.s b/llvm/test/MC/ARM/thumb-far-jump.s --- a/llvm/test/MC/ARM/thumb-far-jump.s +++ b/llvm/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/llvm/test/MC/ARM/thumb-movwt-reloc.s b/llvm/test/MC/ARM/thumb-movwt-reloc.s --- a/llvm/test/MC/ARM/thumb-movwt-reloc.s +++ b/llvm/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/llvm/test/MC/ARM/thumb-st_other.s b/llvm/test/MC/ARM/thumb-st_other.s --- a/llvm/test/MC/ARM/thumb-st_other.s +++ b/llvm/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/llvm/test/MC/ARM/thumb-types.s b/llvm/test/MC/ARM/thumb-types.s --- a/llvm/test/MC/ARM/thumb-types.s +++ b/llvm/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/llvm/test/MC/ARM/thumb2-beq-fixup.s b/llvm/test/MC/ARM/thumb2-beq-fixup.s --- a/llvm/test/MC/ARM/thumb2-beq-fixup.s +++ b/llvm/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/llvm/test/MC/ARM/thumb_set.s b/llvm/test/MC/ARM/thumb_set.s --- a/llvm/test/MC/ARM/thumb_set.s +++ b/llvm/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/llvm/test/MC/AsmParser/directive_end-2.s b/llvm/test/MC/AsmParser/directive_end-2.s --- a/llvm/test/MC/AsmParser/directive_end-2.s +++ b/llvm/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/llvm/test/MC/AsmParser/directive_end.s b/llvm/test/MC/AsmParser/directive_end.s --- a/llvm/test/MC/AsmParser/directive_end.s +++ b/llvm/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/llvm/test/MC/AsmParser/section.s b/llvm/test/MC/AsmParser/section.s --- a/llvm/test/MC/AsmParser/section.s +++ b/llvm/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/llvm/test/MC/AsmParser/section_names.s b/llvm/test/MC/AsmParser/section_names.s --- a/llvm/test/MC/AsmParser/section_names.s +++ b/llvm/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/llvm/test/MC/COFF/addrsig.s b/llvm/test/MC/COFF/addrsig.s --- a/llvm/test/MC/COFF/addrsig.s +++ b/llvm/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/llvm/test/MC/COFF/alias.s b/llvm/test/MC/COFF/alias.s --- a/llvm/test/MC/COFF/alias.s +++ b/llvm/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/llvm/test/MC/COFF/align-nops.s b/llvm/test/MC/COFF/align-nops.s --- a/llvm/test/MC/COFF/align-nops.s +++ b/llvm/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/llvm/test/MC/COFF/basic-coff-64.s b/llvm/test/MC/COFF/basic-coff-64.s --- a/llvm/test/MC/COFF/basic-coff-64.s +++ b/llvm/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/llvm/test/MC/COFF/basic-coff.s b/llvm/test/MC/COFF/basic-coff.s --- a/llvm/test/MC/COFF/basic-coff.s +++ b/llvm/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/llvm/test/MC/COFF/bss.s b/llvm/test/MC/COFF/bss.s --- a/llvm/test/MC/COFF/bss.s +++ b/llvm/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/llvm/test/MC/COFF/comm-align.s b/llvm/test/MC/COFF/comm-align.s --- a/llvm/test/MC/COFF/comm-align.s +++ b/llvm/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/llvm/test/MC/COFF/comm.s b/llvm/test/MC/COFF/comm.s --- a/llvm/test/MC/COFF/comm.s +++ b/llvm/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/llvm/test/MC/COFF/cross-section-relative.s b/llvm/test/MC/COFF/cross-section-relative.s --- a/llvm/test/MC/COFF/cross-section-relative.s +++ b/llvm/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/llvm/test/MC/COFF/cv-def-range-gap.s b/llvm/test/MC/COFF/cv-def-range-gap.s --- a/llvm/test/MC/COFF/cv-def-range-gap.s +++ b/llvm/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/llvm/test/MC/COFF/cv-def-range.s b/llvm/test/MC/COFF/cv-def-range.s --- a/llvm/test/MC/COFF/cv-def-range.s +++ b/llvm/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/llvm/test/MC/COFF/cv-fpo-csrs.s b/llvm/test/MC/COFF/cv-fpo-csrs.s --- a/llvm/test/MC/COFF/cv-fpo-csrs.s +++ b/llvm/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/llvm/test/MC/COFF/cv-fpo-realign.s b/llvm/test/MC/COFF/cv-fpo-realign.s --- a/llvm/test/MC/COFF/cv-fpo-realign.s +++ b/llvm/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/llvm/test/MC/COFF/cv-fpo-setframe.s b/llvm/test/MC/COFF/cv-fpo-setframe.s --- a/llvm/test/MC/COFF/cv-fpo-setframe.s +++ b/llvm/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/llvm/test/MC/COFF/cv-inline-linetable-infloop.s b/llvm/test/MC/COFF/cv-inline-linetable-infloop.s --- a/llvm/test/MC/COFF/cv-inline-linetable-infloop.s +++ b/llvm/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/llvm/test/MC/COFF/cv-inline-linetable-unreachable.s b/llvm/test/MC/COFF/cv-inline-linetable-unreachable.s --- a/llvm/test/MC/COFF/cv-inline-linetable-unreachable.s +++ b/llvm/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/llvm/test/MC/COFF/diff.s b/llvm/test/MC/COFF/diff.s --- a/llvm/test/MC/COFF/diff.s +++ b/llvm/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/llvm/test/MC/COFF/directive-section-characteristics.ll b/llvm/test/MC/COFF/directive-section-characteristics.ll --- a/llvm/test/MC/COFF/directive-section-characteristics.ll +++ b/llvm/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/llvm/test/MC/COFF/early-dce.s b/llvm/test/MC/COFF/early-dce.s --- a/llvm/test/MC/COFF/early-dce.s +++ b/llvm/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/llvm/test/MC/COFF/eh-frame.s b/llvm/test/MC/COFF/eh-frame.s --- a/llvm/test/MC/COFF/eh-frame.s +++ b/llvm/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/llvm/test/MC/COFF/feat00.s b/llvm/test/MC/COFF/feat00.s --- a/llvm/test/MC/COFF/feat00.s +++ b/llvm/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/llvm/test/MC/COFF/file.s b/llvm/test/MC/COFF/file.s --- a/llvm/test/MC/COFF/file.s +++ b/llvm/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/llvm/test/MC/COFF/linkonce.s b/llvm/test/MC/COFF/linkonce.s --- a/llvm/test/MC/COFF/linkonce.s +++ b/llvm/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/llvm/test/MC/COFF/module-asm.ll b/llvm/test/MC/COFF/module-asm.ll --- a/llvm/test/MC/COFF/module-asm.ll +++ b/llvm/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/llvm/test/MC/COFF/offset.s b/llvm/test/MC/COFF/offset.s --- a/llvm/test/MC/COFF/offset.s +++ b/llvm/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/llvm/test/MC/COFF/pr23025.s b/llvm/test/MC/COFF/pr23025.s --- a/llvm/test/MC/COFF/pr23025.s +++ b/llvm/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/llvm/test/MC/COFF/pr28462.s b/llvm/test/MC/COFF/pr28462.s --- a/llvm/test/MC/COFF/pr28462.s +++ b/llvm/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/llvm/test/MC/COFF/secidx.s b/llvm/test/MC/COFF/secidx.s --- a/llvm/test/MC/COFF/secidx.s +++ b/llvm/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/llvm/test/MC/COFF/secrel-variant.s b/llvm/test/MC/COFF/secrel-variant.s --- a/llvm/test/MC/COFF/secrel-variant.s +++ b/llvm/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/llvm/test/MC/COFF/secrel32.s b/llvm/test/MC/COFF/secrel32.s --- a/llvm/test/MC/COFF/secrel32.s +++ b/llvm/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/llvm/test/MC/COFF/section-comdat.s b/llvm/test/MC/COFF/section-comdat.s --- a/llvm/test/MC/COFF/section-comdat.s +++ b/llvm/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/llvm/test/MC/COFF/section-name-encoding.s b/llvm/test/MC/COFF/section-name-encoding.s --- a/llvm/test/MC/COFF/section-name-encoding.s +++ b/llvm/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/llvm/test/MC/COFF/section.s b/llvm/test/MC/COFF/section.s --- a/llvm/test/MC/COFF/section.s +++ b/llvm/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/llvm/test/MC/COFF/seh-align1.s b/llvm/test/MC/COFF/seh-align1.s --- a/llvm/test/MC/COFF/seh-align1.s +++ b/llvm/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/llvm/test/MC/COFF/seh-align2.s b/llvm/test/MC/COFF/seh-align2.s --- a/llvm/test/MC/COFF/seh-align2.s +++ b/llvm/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/llvm/test/MC/COFF/seh-align3.s b/llvm/test/MC/COFF/seh-align3.s --- a/llvm/test/MC/COFF/seh-align3.s +++ b/llvm/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/llvm/test/MC/COFF/seh-linkonce.s b/llvm/test/MC/COFF/seh-linkonce.s --- a/llvm/test/MC/COFF/seh-linkonce.s +++ b/llvm/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/llvm/test/MC/COFF/seh-section-2.s b/llvm/test/MC/COFF/seh-section-2.s --- a/llvm/test/MC/COFF/seh-section-2.s +++ b/llvm/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/llvm/test/MC/COFF/seh-section.s b/llvm/test/MC/COFF/seh-section.s --- a/llvm/test/MC/COFF/seh-section.s +++ b/llvm/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/llvm/test/MC/COFF/seh.s b/llvm/test/MC/COFF/seh.s --- a/llvm/test/MC/COFF/seh.s +++ b/llvm/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/llvm/test/MC/COFF/simple-fixups.s b/llvm/test/MC/COFF/simple-fixups.s --- a/llvm/test/MC/COFF/simple-fixups.s +++ b/llvm/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/llvm/test/MC/COFF/symbol-alias.s b/llvm/test/MC/COFF/symbol-alias.s --- a/llvm/test/MC/COFF/symbol-alias.s +++ b/llvm/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/llvm/test/MC/COFF/symbol-fragment-offset-64.s b/llvm/test/MC/COFF/symbol-fragment-offset-64.s --- a/llvm/test/MC/COFF/symbol-fragment-offset-64.s +++ b/llvm/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/llvm/test/MC/COFF/symbol-fragment-offset.s b/llvm/test/MC/COFF/symbol-fragment-offset.s --- a/llvm/test/MC/COFF/symbol-fragment-offset.s +++ b/llvm/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/llvm/test/MC/COFF/timestamp.s b/llvm/test/MC/COFF/timestamp.s --- a/llvm/test/MC/COFF/timestamp.s +++ b/llvm/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/llvm/test/MC/COFF/tricky-names.ll b/llvm/test/MC/COFF/tricky-names.ll --- a/llvm/test/MC/COFF/tricky-names.ll +++ b/llvm/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/llvm/test/MC/COFF/weak.s b/llvm/test/MC/COFF/weak.s --- a/llvm/test/MC/COFF/weak.s +++ b/llvm/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/llvm/test/MC/ELF/ARM/clang-section.s b/llvm/test/MC/ELF/ARM/clang-section.s --- a/llvm/test/MC/ELF/ARM/clang-section.s +++ b/llvm/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/llvm/test/MC/ELF/ARM/execute-only-populated-text-section.s b/llvm/test/MC/ELF/ARM/execute-only-populated-text-section.s --- a/llvm/test/MC/ELF/ARM/execute-only-populated-text-section.s +++ b/llvm/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/llvm/test/MC/ELF/ARM/execute-only-section.s b/llvm/test/MC/ELF/ARM/execute-only-section.s --- a/llvm/test/MC/ELF/ARM/execute-only-section.s +++ b/llvm/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/llvm/test/MC/ELF/ARM/execute-only-text-section-data.s b/llvm/test/MC/ELF/ARM/execute-only-text-section-data.s --- a/llvm/test/MC/ELF/ARM/execute-only-text-section-data.s +++ b/llvm/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/llvm/test/MC/ELF/abs.s b/llvm/test/MC/ELF/abs.s --- a/llvm/test/MC/ELF/abs.s +++ b/llvm/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/llvm/test/MC/ELF/addrsig.s b/llvm/test/MC/ELF/addrsig.s --- a/llvm/test/MC/ELF/addrsig.s +++ b/llvm/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/llvm/test/MC/ELF/alias-reloc.s b/llvm/test/MC/ELF/alias-reloc.s --- a/llvm/test/MC/ELF/alias-reloc.s +++ b/llvm/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/llvm/test/MC/ELF/alias-to-local.s b/llvm/test/MC/ELF/alias-to-local.s --- a/llvm/test/MC/ELF/alias-to-local.s +++ b/llvm/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/llvm/test/MC/ELF/alias.s b/llvm/test/MC/ELF/alias.s --- a/llvm/test/MC/ELF/alias.s +++ b/llvm/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/llvm/test/MC/ELF/align-bss.s b/llvm/test/MC/ELF/align-bss.s --- a/llvm/test/MC/ELF/align-bss.s +++ b/llvm/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/llvm/test/MC/ELF/align-nops.s b/llvm/test/MC/ELF/align-nops.s --- a/llvm/test/MC/ELF/align-nops.s +++ b/llvm/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/llvm/test/MC/ELF/align-size.s b/llvm/test/MC/ELF/align-size.s --- a/llvm/test/MC/ELF/align-size.s +++ b/llvm/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/llvm/test/MC/ELF/align-text.s b/llvm/test/MC/ELF/align-text.s --- a/llvm/test/MC/ELF/align-text.s +++ b/llvm/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/llvm/test/MC/ELF/align.s b/llvm/test/MC/ELF/align.s --- a/llvm/test/MC/ELF/align.s +++ b/llvm/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/llvm/test/MC/ELF/basic-elf-32.s b/llvm/test/MC/ELF/basic-elf-32.s --- a/llvm/test/MC/ELF/basic-elf-32.s +++ b/llvm/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/llvm/test/MC/ELF/basic-elf-64.s b/llvm/test/MC/ELF/basic-elf-64.s --- a/llvm/test/MC/ELF/basic-elf-64.s +++ b/llvm/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/llvm/test/MC/ELF/call-abs.s b/llvm/test/MC/ELF/call-abs.s --- a/llvm/test/MC/ELF/call-abs.s +++ b/llvm/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/llvm/test/MC/ELF/cfi-adjust-cfa-offset.s b/llvm/test/MC/ELF/cfi-adjust-cfa-offset.s --- a/llvm/test/MC/ELF/cfi-adjust-cfa-offset.s +++ b/llvm/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/llvm/test/MC/ELF/cfi-advance-loc2.s b/llvm/test/MC/ELF/cfi-advance-loc2.s --- a/llvm/test/MC/ELF/cfi-advance-loc2.s +++ b/llvm/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/llvm/test/MC/ELF/cfi-def-cfa-offset.s b/llvm/test/MC/ELF/cfi-def-cfa-offset.s --- a/llvm/test/MC/ELF/cfi-def-cfa-offset.s +++ b/llvm/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/llvm/test/MC/ELF/cfi-def-cfa-register.s b/llvm/test/MC/ELF/cfi-def-cfa-register.s --- a/llvm/test/MC/ELF/cfi-def-cfa-register.s +++ b/llvm/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/llvm/test/MC/ELF/cfi-def-cfa.s b/llvm/test/MC/ELF/cfi-def-cfa.s --- a/llvm/test/MC/ELF/cfi-def-cfa.s +++ b/llvm/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/llvm/test/MC/ELF/cfi-escape.s b/llvm/test/MC/ELF/cfi-escape.s --- a/llvm/test/MC/ELF/cfi-escape.s +++ b/llvm/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/llvm/test/MC/ELF/cfi-large-model.s b/llvm/test/MC/ELF/cfi-large-model.s --- a/llvm/test/MC/ELF/cfi-large-model.s +++ b/llvm/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/llvm/test/MC/ELF/cfi-offset.s b/llvm/test/MC/ELF/cfi-offset.s --- a/llvm/test/MC/ELF/cfi-offset.s +++ b/llvm/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/llvm/test/MC/ELF/cfi-register.s b/llvm/test/MC/ELF/cfi-register.s --- a/llvm/test/MC/ELF/cfi-register.s +++ b/llvm/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/llvm/test/MC/ELF/cfi-rel-offset.s b/llvm/test/MC/ELF/cfi-rel-offset.s --- a/llvm/test/MC/ELF/cfi-rel-offset.s +++ b/llvm/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/llvm/test/MC/ELF/cfi-rel-offset2.s b/llvm/test/MC/ELF/cfi-rel-offset2.s --- a/llvm/test/MC/ELF/cfi-rel-offset2.s +++ b/llvm/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/llvm/test/MC/ELF/cfi-remember.s b/llvm/test/MC/ELF/cfi-remember.s --- a/llvm/test/MC/ELF/cfi-remember.s +++ b/llvm/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/llvm/test/MC/ELF/cfi-restore.s b/llvm/test/MC/ELF/cfi-restore.s --- a/llvm/test/MC/ELF/cfi-restore.s +++ b/llvm/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/llvm/test/MC/ELF/cfi-same-value.s b/llvm/test/MC/ELF/cfi-same-value.s --- a/llvm/test/MC/ELF/cfi-same-value.s +++ b/llvm/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/llvm/test/MC/ELF/cfi-sections.s b/llvm/test/MC/ELF/cfi-sections.s --- a/llvm/test/MC/ELF/cfi-sections.s +++ b/llvm/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/llvm/test/MC/ELF/cfi-signal-frame.s b/llvm/test/MC/ELF/cfi-signal-frame.s --- a/llvm/test/MC/ELF/cfi-signal-frame.s +++ b/llvm/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/llvm/test/MC/ELF/cfi-undefined.s b/llvm/test/MC/ELF/cfi-undefined.s --- a/llvm/test/MC/ELF/cfi-undefined.s +++ b/llvm/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/llvm/test/MC/ELF/cfi-window-save.s b/llvm/test/MC/ELF/cfi-window-save.s --- a/llvm/test/MC/ELF/cfi-window-save.s +++ b/llvm/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/llvm/test/MC/ELF/cfi-zero-addr-delta.s b/llvm/test/MC/ELF/cfi-zero-addr-delta.s --- a/llvm/test/MC/ELF/cfi-zero-addr-delta.s +++ b/llvm/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/llvm/test/MC/ELF/cfi.s b/llvm/test/MC/ELF/cfi.s --- a/llvm/test/MC/ELF/cfi.s +++ b/llvm/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/llvm/test/MC/ELF/cgprofile.s b/llvm/test/MC/ELF/cgprofile.s --- a/llvm/test/MC/ELF/cgprofile.s +++ b/llvm/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/llvm/test/MC/ELF/comdat-reloc.s b/llvm/test/MC/ELF/comdat-reloc.s --- a/llvm/test/MC/ELF/comdat-reloc.s +++ b/llvm/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/llvm/test/MC/ELF/comdat.s b/llvm/test/MC/ELF/comdat.s --- a/llvm/test/MC/ELF/comdat.s +++ b/llvm/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/llvm/test/MC/ELF/common.s b/llvm/test/MC/ELF/common.s --- a/llvm/test/MC/ELF/common.s +++ b/llvm/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/llvm/test/MC/ELF/common2.s b/llvm/test/MC/ELF/common2.s --- a/llvm/test/MC/ELF/common2.s +++ b/llvm/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/llvm/test/MC/ELF/debug-line.s b/llvm/test/MC/ELF/debug-line.s --- a/llvm/test/MC/ELF/debug-line.s +++ b/llvm/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/llvm/test/MC/ELF/debug-line2.s b/llvm/test/MC/ELF/debug-line2.s --- a/llvm/test/MC/ELF/debug-line2.s +++ b/llvm/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/llvm/test/MC/ELF/debug-loc.s b/llvm/test/MC/ELF/debug-loc.s --- a/llvm/test/MC/ELF/debug-loc.s +++ b/llvm/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/llvm/test/MC/ELF/diff.s b/llvm/test/MC/ELF/diff.s --- a/llvm/test/MC/ELF/diff.s +++ b/llvm/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/llvm/test/MC/ELF/dot-symbol-assignment.s b/llvm/test/MC/ELF/dot-symbol-assignment.s --- a/llvm/test/MC/ELF/dot-symbol-assignment.s +++ b/llvm/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/llvm/test/MC/ELF/empty-dwarf-lines.s b/llvm/test/MC/ELF/empty-dwarf-lines.s --- a/llvm/test/MC/ELF/empty-dwarf-lines.s +++ b/llvm/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/llvm/test/MC/ELF/empty.s b/llvm/test/MC/ELF/empty.s --- a/llvm/test/MC/ELF/empty.s +++ b/llvm/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/llvm/test/MC/ELF/entsize.ll b/llvm/test/MC/ELF/entsize.ll --- a/llvm/test/MC/ELF/entsize.ll +++ b/llvm/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/llvm/test/MC/ELF/entsize.s b/llvm/test/MC/ELF/entsize.s --- a/llvm/test/MC/ELF/entsize.s +++ b/llvm/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/llvm/test/MC/ELF/file-double.s b/llvm/test/MC/ELF/file-double.s --- a/llvm/test/MC/ELF/file-double.s +++ b/llvm/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/llvm/test/MC/ELF/file.s b/llvm/test/MC/ELF/file.s --- a/llvm/test/MC/ELF/file.s +++ b/llvm/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/llvm/test/MC/ELF/gen-dwarf.s b/llvm/test/MC/ELF/gen-dwarf.s --- a/llvm/test/MC/ELF/gen-dwarf.s +++ b/llvm/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/llvm/test/MC/ELF/global-offset.s b/llvm/test/MC/ELF/global-offset.s --- a/llvm/test/MC/ELF/global-offset.s +++ b/llvm/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/llvm/test/MC/ELF/got-relaxed-i386.s b/llvm/test/MC/ELF/got-relaxed-i386.s --- a/llvm/test/MC/ELF/got-relaxed-i386.s +++ b/llvm/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/llvm/test/MC/ELF/got-relaxed-no-relax.s b/llvm/test/MC/ELF/got-relaxed-no-relax.s --- a/llvm/test/MC/ELF/got-relaxed-no-relax.s +++ b/llvm/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/llvm/test/MC/ELF/got-relaxed-rex.s b/llvm/test/MC/ELF/got-relaxed-rex.s --- a/llvm/test/MC/ELF/got-relaxed-rex.s +++ b/llvm/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/llvm/test/MC/ELF/got-relaxed.s b/llvm/test/MC/ELF/got-relaxed.s --- a/llvm/test/MC/ELF/got-relaxed.s +++ b/llvm/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/llvm/test/MC/ELF/got.s b/llvm/test/MC/ELF/got.s --- a/llvm/test/MC/ELF/got.s +++ b/llvm/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/llvm/test/MC/ELF/ident.s b/llvm/test/MC/ELF/ident.s --- a/llvm/test/MC/ELF/ident.s +++ b/llvm/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/llvm/test/MC/ELF/ifunc-alias.s b/llvm/test/MC/ELF/ifunc-alias.s --- a/llvm/test/MC/ELF/ifunc-alias.s +++ b/llvm/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/llvm/test/MC/ELF/ifunc-reloc.s b/llvm/test/MC/ELF/ifunc-reloc.s --- a/llvm/test/MC/ELF/ifunc-reloc.s +++ b/llvm/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/llvm/test/MC/ELF/lcomm.s b/llvm/test/MC/ELF/lcomm.s --- a/llvm/test/MC/ELF/lcomm.s +++ b/llvm/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/llvm/test/MC/ELF/leb128.s b/llvm/test/MC/ELF/leb128.s --- a/llvm/test/MC/ELF/leb128.s +++ b/llvm/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/llvm/test/MC/ELF/local-reloc.s b/llvm/test/MC/ELF/local-reloc.s --- a/llvm/test/MC/ELF/local-reloc.s +++ b/llvm/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/llvm/test/MC/ELF/merge.s b/llvm/test/MC/ELF/merge.s --- a/llvm/test/MC/ELF/merge.s +++ b/llvm/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/llvm/test/MC/ELF/n_bytes.s b/llvm/test/MC/ELF/n_bytes.s --- a/llvm/test/MC/ELF/n_bytes.s +++ b/llvm/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/llvm/test/MC/ELF/no-reloc.s b/llvm/test/MC/ELF/no-reloc.s --- a/llvm/test/MC/ELF/no-reloc.s +++ b/llvm/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/llvm/test/MC/ELF/noexec.s b/llvm/test/MC/ELF/noexec.s --- a/llvm/test/MC/ELF/noexec.s +++ b/llvm/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/llvm/test/MC/ELF/norelocation.s b/llvm/test/MC/ELF/norelocation.s --- a/llvm/test/MC/ELF/norelocation.s +++ b/llvm/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/llvm/test/MC/ELF/org.s b/llvm/test/MC/ELF/org.s --- a/llvm/test/MC/ELF/org.s +++ b/llvm/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/llvm/test/MC/ELF/pic-diff.s b/llvm/test/MC/ELF/pic-diff.s --- a/llvm/test/MC/ELF/pic-diff.s +++ b/llvm/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/llvm/test/MC/ELF/plt.s b/llvm/test/MC/ELF/plt.s --- a/llvm/test/MC/ELF/plt.s +++ b/llvm/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/llvm/test/MC/ELF/pr19430.s b/llvm/test/MC/ELF/pr19430.s --- a/llvm/test/MC/ELF/pr19430.s +++ b/llvm/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/llvm/test/MC/ELF/pr19582.s b/llvm/test/MC/ELF/pr19582.s --- a/llvm/test/MC/ELF/pr19582.s +++ b/llvm/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/llvm/test/MC/ELF/pr9292.s b/llvm/test/MC/ELF/pr9292.s --- a/llvm/test/MC/ELF/pr9292.s +++ b/llvm/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/llvm/test/MC/ELF/reloc-same-name-section.s b/llvm/test/MC/ELF/reloc-same-name-section.s --- a/llvm/test/MC/ELF/reloc-same-name-section.s +++ b/llvm/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/llvm/test/MC/ELF/relocation-386.s b/llvm/test/MC/ELF/relocation-386.s --- a/llvm/test/MC/ELF/relocation-386.s +++ b/llvm/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/llvm/test/MC/ELF/relocation-pc.s b/llvm/test/MC/ELF/relocation-pc.s --- a/llvm/test/MC/ELF/relocation-pc.s +++ b/llvm/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/llvm/test/MC/ELF/relocation.s b/llvm/test/MC/ELF/relocation.s --- a/llvm/test/MC/ELF/relocation.s +++ b/llvm/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/llvm/test/MC/ELF/rename.s b/llvm/test/MC/ELF/rename.s --- a/llvm/test/MC/ELF/rename.s +++ b/llvm/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/llvm/test/MC/ELF/section-numeric-flag.s b/llvm/test/MC/ELF/section-numeric-flag.s --- a/llvm/test/MC/ELF/section-numeric-flag.s +++ b/llvm/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/llvm/test/MC/ELF/section-numeric-invalid-type.s b/llvm/test/MC/ELF/section-numeric-invalid-type.s --- a/llvm/test/MC/ELF/section-numeric-invalid-type.s +++ b/llvm/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/llvm/test/MC/ELF/section-numeric-type.s b/llvm/test/MC/ELF/section-numeric-type.s --- a/llvm/test/MC/ELF/section-numeric-type.s +++ b/llvm/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/llvm/test/MC/ELF/section-relro.ll b/llvm/test/MC/ELF/section-relro.ll --- a/llvm/test/MC/ELF/section-relro.ll +++ b/llvm/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/llvm/test/MC/ELF/section-sym.s b/llvm/test/MC/ELF/section-sym.s --- a/llvm/test/MC/ELF/section-sym.s +++ b/llvm/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/llvm/test/MC/ELF/section-sym2.s b/llvm/test/MC/ELF/section-sym2.s --- a/llvm/test/MC/ELF/section-sym2.s +++ b/llvm/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/llvm/test/MC/ELF/section-unique.s b/llvm/test/MC/ELF/section-unique.s --- a/llvm/test/MC/ELF/section-unique.s +++ b/llvm/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/llvm/test/MC/ELF/section.s b/llvm/test/MC/ELF/section.s --- a/llvm/test/MC/ELF/section.s +++ b/llvm/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/llvm/test/MC/ELF/set.s b/llvm/test/MC/ELF/set.s --- a/llvm/test/MC/ELF/set.s +++ b/llvm/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/llvm/test/MC/ELF/size.s b/llvm/test/MC/ELF/size.s --- a/llvm/test/MC/ELF/size.s +++ b/llvm/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/llvm/test/MC/ELF/sleb.s b/llvm/test/MC/ELF/sleb.s --- a/llvm/test/MC/ELF/sleb.s +++ b/llvm/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/llvm/test/MC/ELF/strtab-suffix-opt.s b/llvm/test/MC/ELF/strtab-suffix-opt.s --- a/llvm/test/MC/ELF/strtab-suffix-opt.s +++ b/llvm/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/llvm/test/MC/ELF/symbol-names.s b/llvm/test/MC/ELF/symbol-names.s --- a/llvm/test/MC/ELF/symbol-names.s +++ b/llvm/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/llvm/test/MC/ELF/symver-msvc.s b/llvm/test/MC/ELF/symver-msvc.s --- a/llvm/test/MC/ELF/symver-msvc.s +++ b/llvm/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/llvm/test/MC/ELF/symver-pr23914.s b/llvm/test/MC/ELF/symver-pr23914.s --- a/llvm/test/MC/ELF/symver-pr23914.s +++ b/llvm/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/llvm/test/MC/ELF/symver.s b/llvm/test/MC/ELF/symver.s --- a/llvm/test/MC/ELF/symver.s +++ b/llvm/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/llvm/test/MC/ELF/tls-i386.s b/llvm/test/MC/ELF/tls-i386.s --- a/llvm/test/MC/ELF/tls-i386.s +++ b/llvm/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/llvm/test/MC/ELF/tls.s b/llvm/test/MC/ELF/tls.s --- a/llvm/test/MC/ELF/tls.s +++ b/llvm/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/llvm/test/MC/ELF/type.s b/llvm/test/MC/ELF/type.s --- a/llvm/test/MC/ELF/type.s +++ b/llvm/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/llvm/test/MC/ELF/uleb-ehtable.s b/llvm/test/MC/ELF/uleb-ehtable.s --- a/llvm/test/MC/ELF/uleb-ehtable.s +++ b/llvm/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/llvm/test/MC/ELF/uleb.s b/llvm/test/MC/ELF/uleb.s --- a/llvm/test/MC/ELF/uleb.s +++ b/llvm/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/llvm/test/MC/ELF/undef.s b/llvm/test/MC/ELF/undef.s --- a/llvm/test/MC/ELF/undef.s +++ b/llvm/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/llvm/test/MC/ELF/version.s b/llvm/test/MC/ELF/version.s --- a/llvm/test/MC/ELF/version.s +++ b/llvm/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/llvm/test/MC/ELF/weak-diff.s b/llvm/test/MC/ELF/weak-diff.s --- a/llvm/test/MC/ELF/weak-diff.s +++ b/llvm/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/llvm/test/MC/ELF/weak-relocation.s b/llvm/test/MC/ELF/weak-relocation.s --- a/llvm/test/MC/ELF/weak-relocation.s +++ b/llvm/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/llvm/test/MC/ELF/weak.s b/llvm/test/MC/ELF/weak.s --- a/llvm/test/MC/ELF/weak.s +++ b/llvm/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/llvm/test/MC/ELF/weakref-plt.s b/llvm/test/MC/ELF/weakref-plt.s --- a/llvm/test/MC/ELF/weakref-plt.s +++ b/llvm/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/llvm/test/MC/ELF/weakref-reloc.s b/llvm/test/MC/ELF/weakref-reloc.s --- a/llvm/test/MC/ELF/weakref-reloc.s +++ b/llvm/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/llvm/test/MC/ELF/weakref.s b/llvm/test/MC/ELF/weakref.s --- a/llvm/test/MC/ELF/weakref.s +++ b/llvm/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/llvm/test/MC/ELF/x86_64-reloc-sizetest.s b/llvm/test/MC/ELF/x86_64-reloc-sizetest.s --- a/llvm/test/MC/ELF/x86_64-reloc-sizetest.s +++ b/llvm/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/llvm/test/MC/ELF/zero.s b/llvm/test/MC/ELF/zero.s --- a/llvm/test/MC/ELF/zero.s +++ b/llvm/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/llvm/test/MC/Hexagon/basic.ll b/llvm/test/MC/Hexagon/basic.ll --- a/llvm/test/MC/Hexagon/basic.ll +++ b/llvm/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/llvm/test/MC/Hexagon/elf-flags.s b/llvm/test/MC/Hexagon/elf-flags.s --- a/llvm/test/MC/Hexagon/elf-flags.s +++ b/llvm/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/llvm/test/MC/MSP430/reloc.s b/llvm/test/MC/MSP430/reloc.s --- a/llvm/test/MC/MSP430/reloc.s +++ b/llvm/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/llvm/test/MC/MachO/AArch64/classrefs.s b/llvm/test/MC/MachO/AArch64/classrefs.s --- a/llvm/test/MC/MachO/AArch64/classrefs.s +++ b/llvm/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/llvm/test/MC/MachO/AArch64/darwin-ARM64-local-label-diff.s b/llvm/test/MC/MachO/AArch64/darwin-ARM64-local-label-diff.s --- a/llvm/test/MC/MachO/AArch64/darwin-ARM64-local-label-diff.s +++ b/llvm/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/llvm/test/MC/MachO/AArch64/darwin-ARM64-reloc.s b/llvm/test/MC/MachO/AArch64/darwin-ARM64-reloc.s --- a/llvm/test/MC/MachO/AArch64/darwin-ARM64-reloc.s +++ b/llvm/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/llvm/test/MC/MachO/AArch64/data-in-code.s b/llvm/test/MC/MachO/AArch64/data-in-code.s --- a/llvm/test/MC/MachO/AArch64/data-in-code.s +++ b/llvm/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/llvm/test/MC/MachO/AArch64/ld64-workaround.s b/llvm/test/MC/MachO/AArch64/ld64-workaround.s --- a/llvm/test/MC/MachO/AArch64/ld64-workaround.s +++ b/llvm/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/llvm/test/MC/MachO/AArch64/mergeable.s b/llvm/test/MC/MachO/AArch64/mergeable.s --- a/llvm/test/MC/MachO/AArch64/mergeable.s +++ b/llvm/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/llvm/test/MC/MachO/AArch64/reloc-crash.s b/llvm/test/MC/MachO/AArch64/reloc-crash.s --- a/llvm/test/MC/MachO/AArch64/reloc-crash.s +++ b/llvm/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/llvm/test/MC/MachO/AArch64/reloc-crash2.s b/llvm/test/MC/MachO/AArch64/reloc-crash2.s --- a/llvm/test/MC/MachO/AArch64/reloc-crash2.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/build-version-encode.s b/llvm/test/MC/MachO/ARM/build-version-encode.s --- a/llvm/test/MC/MachO/ARM/build-version-encode.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/darwin-ARM-reloc.s b/llvm/test/MC/MachO/ARM/darwin-ARM-reloc.s --- a/llvm/test/MC/MachO/ARM/darwin-ARM-reloc.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/darwin-Thumb-reloc.s b/llvm/test/MC/MachO/ARM/darwin-Thumb-reloc.s --- a/llvm/test/MC/MachO/ARM/darwin-Thumb-reloc.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/data-in-code.s b/llvm/test/MC/MachO/ARM/data-in-code.s --- a/llvm/test/MC/MachO/ARM/data-in-code.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/empty-function-nop.ll b/llvm/test/MC/MachO/ARM/empty-function-nop.ll --- a/llvm/test/MC/MachO/ARM/empty-function-nop.ll +++ b/llvm/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/llvm/test/MC/MachO/ARM/ios-version-min-load-command.s b/llvm/test/MC/MachO/ARM/ios-version-min-load-command.s --- a/llvm/test/MC/MachO/ARM/ios-version-min-load-command.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/long-call-branch-island-relocation.s b/llvm/test/MC/MachO/ARM/long-call-branch-island-relocation.s --- a/llvm/test/MC/MachO/ARM/long-call-branch-island-relocation.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/no-subsections-reloc.s b/llvm/test/MC/MachO/ARM/no-subsections-reloc.s --- a/llvm/test/MC/MachO/ARM/no-subsections-reloc.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/nop-armv4-padding.s b/llvm/test/MC/MachO/ARM/nop-armv4-padding.s --- a/llvm/test/MC/MachO/ARM/nop-armv4-padding.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/nop-armv6t2-padding.s b/llvm/test/MC/MachO/ARM/nop-armv6t2-padding.s --- a/llvm/test/MC/MachO/ARM/nop-armv6t2-padding.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/nop-thumb-padding.s b/llvm/test/MC/MachO/ARM/nop-thumb-padding.s --- a/llvm/test/MC/MachO/ARM/nop-thumb-padding.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/nop-thumb2-padding.s b/llvm/test/MC/MachO/ARM/nop-thumb2-padding.s --- a/llvm/test/MC/MachO/ARM/nop-thumb2-padding.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/relax-thumb-ldr-literal.s b/llvm/test/MC/MachO/ARM/relax-thumb-ldr-literal.s --- a/llvm/test/MC/MachO/ARM/relax-thumb-ldr-literal.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/relax-thumb2-branches.s b/llvm/test/MC/MachO/ARM/relax-thumb2-branches.s --- a/llvm/test/MC/MachO/ARM/relax-thumb2-branches.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/static-movt-relocs.s b/llvm/test/MC/MachO/ARM/static-movt-relocs.s --- a/llvm/test/MC/MachO/ARM/static-movt-relocs.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/thumb-bl-jbits.s b/llvm/test/MC/MachO/ARM/thumb-bl-jbits.s --- a/llvm/test/MC/MachO/ARM/thumb-bl-jbits.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/thumb2-function-relative-load.s b/llvm/test/MC/MachO/ARM/thumb2-function-relative-load.s --- a/llvm/test/MC/MachO/ARM/thumb2-function-relative-load.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/thumb2-movt-fixup.s b/llvm/test/MC/MachO/ARM/thumb2-movt-fixup.s --- a/llvm/test/MC/MachO/ARM/thumb2-movt-fixup.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/thumb2-movw-fixup.s b/llvm/test/MC/MachO/ARM/thumb2-movw-fixup.s --- a/llvm/test/MC/MachO/ARM/thumb2-movw-fixup.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/tvos-version-min-load-command.s b/llvm/test/MC/MachO/ARM/tvos-version-min-load-command.s --- a/llvm/test/MC/MachO/ARM/tvos-version-min-load-command.s +++ b/llvm/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/llvm/test/MC/MachO/ARM/watchos-version-min-load-command.s b/llvm/test/MC/MachO/ARM/watchos-version-min-load-command.s --- a/llvm/test/MC/MachO/ARM/watchos-version-min-load-command.s +++ b/llvm/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/llvm/test/MC/MachO/absolute.s b/llvm/test/MC/MachO/absolute.s --- a/llvm/test/MC/MachO/absolute.s +++ b/llvm/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/llvm/test/MC/MachO/absolutize.s b/llvm/test/MC/MachO/absolutize.s --- a/llvm/test/MC/MachO/absolutize.s +++ b/llvm/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/llvm/test/MC/MachO/alias.s b/llvm/test/MC/MachO/alias.s --- a/llvm/test/MC/MachO/alias.s +++ b/llvm/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/llvm/test/MC/MachO/altentry.s b/llvm/test/MC/MachO/altentry.s --- a/llvm/test/MC/MachO/altentry.s +++ b/llvm/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/llvm/test/MC/MachO/bss.s b/llvm/test/MC/MachO/bss.s --- a/llvm/test/MC/MachO/bss.s +++ b/llvm/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/llvm/test/MC/MachO/build-version-with-sdk-version.s b/llvm/test/MC/MachO/build-version-with-sdk-version.s --- a/llvm/test/MC/MachO/build-version-with-sdk-version.s +++ b/llvm/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/llvm/test/MC/MachO/coal-sections-x86_64.s b/llvm/test/MC/MachO/coal-sections-x86_64.s --- a/llvm/test/MC/MachO/coal-sections-x86_64.s +++ b/llvm/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/llvm/test/MC/MachO/comm-1.s b/llvm/test/MC/MachO/comm-1.s --- a/llvm/test/MC/MachO/comm-1.s +++ b/llvm/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/llvm/test/MC/MachO/darwin-complex-difference.s b/llvm/test/MC/MachO/darwin-complex-difference.s --- a/llvm/test/MC/MachO/darwin-complex-difference.s +++ b/llvm/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/llvm/test/MC/MachO/darwin-x86_64-diff-reloc-assign-2.s b/llvm/test/MC/MachO/darwin-x86_64-diff-reloc-assign-2.s --- a/llvm/test/MC/MachO/darwin-x86_64-diff-reloc-assign-2.s +++ b/llvm/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/llvm/test/MC/MachO/darwin-x86_64-diff-reloc-assign.s b/llvm/test/MC/MachO/darwin-x86_64-diff-reloc-assign.s --- a/llvm/test/MC/MachO/darwin-x86_64-diff-reloc-assign.s +++ b/llvm/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/llvm/test/MC/MachO/darwin-x86_64-diff-relocs.s b/llvm/test/MC/MachO/darwin-x86_64-diff-relocs.s --- a/llvm/test/MC/MachO/darwin-x86_64-diff-relocs.s +++ b/llvm/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/llvm/test/MC/MachO/darwin-x86_64-nobase-relocs.s b/llvm/test/MC/MachO/darwin-x86_64-nobase-relocs.s --- a/llvm/test/MC/MachO/darwin-x86_64-nobase-relocs.s +++ b/llvm/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/llvm/test/MC/MachO/darwin-x86_64-reloc-offsets.s b/llvm/test/MC/MachO/darwin-x86_64-reloc-offsets.s --- a/llvm/test/MC/MachO/darwin-x86_64-reloc-offsets.s +++ b/llvm/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/llvm/test/MC/MachO/darwin-x86_64-reloc.s b/llvm/test/MC/MachO/darwin-x86_64-reloc.s --- a/llvm/test/MC/MachO/darwin-x86_64-reloc.s +++ b/llvm/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/llvm/test/MC/MachO/data.s b/llvm/test/MC/MachO/data.s --- a/llvm/test/MC/MachO/data.s +++ b/llvm/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/llvm/test/MC/MachO/debug_frame.s b/llvm/test/MC/MachO/debug_frame.s --- a/llvm/test/MC/MachO/debug_frame.s +++ b/llvm/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/llvm/test/MC/MachO/diff-with-two-sections.s b/llvm/test/MC/MachO/diff-with-two-sections.s --- a/llvm/test/MC/MachO/diff-with-two-sections.s +++ b/llvm/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/llvm/test/MC/MachO/direction_labels.s b/llvm/test/MC/MachO/direction_labels.s --- a/llvm/test/MC/MachO/direction_labels.s +++ b/llvm/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/llvm/test/MC/MachO/eh-frame-reloc.s b/llvm/test/MC/MachO/eh-frame-reloc.s --- a/llvm/test/MC/MachO/eh-frame-reloc.s +++ b/llvm/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/llvm/test/MC/MachO/file.s b/llvm/test/MC/MachO/file.s --- a/llvm/test/MC/MachO/file.s +++ b/llvm/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/llvm/test/MC/MachO/i386-large-relocations.s b/llvm/test/MC/MachO/i386-large-relocations.s --- a/llvm/test/MC/MachO/i386-large-relocations.s +++ b/llvm/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/llvm/test/MC/MachO/indirect-symbols.s b/llvm/test/MC/MachO/indirect-symbols.s --- a/llvm/test/MC/MachO/indirect-symbols.s +++ b/llvm/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/llvm/test/MC/MachO/jcc.s b/llvm/test/MC/MachO/jcc.s --- a/llvm/test/MC/MachO/jcc.s +++ b/llvm/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/llvm/test/MC/MachO/lcomm-attributes.s b/llvm/test/MC/MachO/lcomm-attributes.s --- a/llvm/test/MC/MachO/lcomm-attributes.s +++ b/llvm/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/llvm/test/MC/MachO/linker-option-2.s b/llvm/test/MC/MachO/linker-option-2.s --- a/llvm/test/MC/MachO/linker-option-2.s +++ b/llvm/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/llvm/test/MC/MachO/linker-options.ll b/llvm/test/MC/MachO/linker-options.ll --- a/llvm/test/MC/MachO/linker-options.ll +++ b/llvm/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/llvm/test/MC/MachO/loc.s b/llvm/test/MC/MachO/loc.s --- a/llvm/test/MC/MachO/loc.s +++ b/llvm/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/llvm/test/MC/MachO/osx-version-min-load-command-with-sdk.s b/llvm/test/MC/MachO/osx-version-min-load-command-with-sdk.s --- a/llvm/test/MC/MachO/osx-version-min-load-command-with-sdk.s +++ b/llvm/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/llvm/test/MC/MachO/osx-version-min-load-command.s b/llvm/test/MC/MachO/osx-version-min-load-command.s --- a/llvm/test/MC/MachO/osx-version-min-load-command.s +++ b/llvm/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/llvm/test/MC/MachO/pcrel-to-other-section.s b/llvm/test/MC/MachO/pcrel-to-other-section.s --- a/llvm/test/MC/MachO/pcrel-to-other-section.s +++ b/llvm/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/llvm/test/MC/MachO/relax-jumps.s b/llvm/test/MC/MachO/relax-jumps.s --- a/llvm/test/MC/MachO/relax-jumps.s +++ b/llvm/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/llvm/test/MC/MachO/relax-recompute-align.s b/llvm/test/MC/MachO/relax-recompute-align.s --- a/llvm/test/MC/MachO/relax-recompute-align.s +++ b/llvm/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/llvm/test/MC/MachO/reloc-diff.s b/llvm/test/MC/MachO/reloc-diff.s --- a/llvm/test/MC/MachO/reloc-diff.s +++ b/llvm/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/llvm/test/MC/MachO/reloc-pcrel-offset.s b/llvm/test/MC/MachO/reloc-pcrel-offset.s --- a/llvm/test/MC/MachO/reloc-pcrel-offset.s +++ b/llvm/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/llvm/test/MC/MachO/reloc-pcrel.s b/llvm/test/MC/MachO/reloc-pcrel.s --- a/llvm/test/MC/MachO/reloc-pcrel.s +++ b/llvm/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/llvm/test/MC/MachO/reloc.s b/llvm/test/MC/MachO/reloc.s --- a/llvm/test/MC/MachO/reloc.s +++ b/llvm/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/llvm/test/MC/MachO/section-align-1.s b/llvm/test/MC/MachO/section-align-1.s --- a/llvm/test/MC/MachO/section-align-1.s +++ b/llvm/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/llvm/test/MC/MachO/section-align-2.s b/llvm/test/MC/MachO/section-align-2.s --- a/llvm/test/MC/MachO/section-align-2.s +++ b/llvm/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/llvm/test/MC/MachO/section-flags.s b/llvm/test/MC/MachO/section-flags.s --- a/llvm/test/MC/MachO/section-flags.s +++ b/llvm/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/llvm/test/MC/MachO/string-table.s b/llvm/test/MC/MachO/string-table.s --- a/llvm/test/MC/MachO/string-table.s +++ b/llvm/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/llvm/test/MC/MachO/symbol-diff.s b/llvm/test/MC/MachO/symbol-diff.s --- a/llvm/test/MC/MachO/symbol-diff.s +++ b/llvm/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/llvm/test/MC/MachO/symbol-flags.s b/llvm/test/MC/MachO/symbol-flags.s --- a/llvm/test/MC/MachO/symbol-flags.s +++ b/llvm/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/llvm/test/MC/MachO/symbol-indirect.s b/llvm/test/MC/MachO/symbol-indirect.s --- a/llvm/test/MC/MachO/symbol-indirect.s +++ b/llvm/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/llvm/test/MC/MachO/symbols-1.s b/llvm/test/MC/MachO/symbols-1.s --- a/llvm/test/MC/MachO/symbols-1.s +++ b/llvm/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/llvm/test/MC/MachO/tbss.s b/llvm/test/MC/MachO/tbss.s --- a/llvm/test/MC/MachO/tbss.s +++ b/llvm/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/llvm/test/MC/MachO/tdata.s b/llvm/test/MC/MachO/tdata.s --- a/llvm/test/MC/MachO/tdata.s +++ b/llvm/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/llvm/test/MC/MachO/temp-labels.s b/llvm/test/MC/MachO/temp-labels.s --- a/llvm/test/MC/MachO/temp-labels.s +++ b/llvm/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/llvm/test/MC/MachO/thread_init_func.s b/llvm/test/MC/MachO/thread_init_func.s --- a/llvm/test/MC/MachO/thread_init_func.s +++ b/llvm/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/llvm/test/MC/MachO/tls.s b/llvm/test/MC/MachO/tls.s --- a/llvm/test/MC/MachO/tls.s +++ b/llvm/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/llvm/test/MC/MachO/tlv-bss.ll b/llvm/test/MC/MachO/tlv-bss.ll --- a/llvm/test/MC/MachO/tlv-bss.ll +++ b/llvm/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/llvm/test/MC/MachO/tlv-reloc.s b/llvm/test/MC/MachO/tlv-reloc.s --- a/llvm/test/MC/MachO/tlv-reloc.s +++ b/llvm/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/llvm/test/MC/MachO/tlv.s b/llvm/test/MC/MachO/tlv.s --- a/llvm/test/MC/MachO/tlv.s +++ b/llvm/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/llvm/test/MC/MachO/values.s b/llvm/test/MC/MachO/values.s --- a/llvm/test/MC/MachO/values.s +++ b/llvm/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/llvm/test/MC/MachO/variable-exprs.s b/llvm/test/MC/MachO/variable-exprs.s --- a/llvm/test/MC/MachO/variable-exprs.s +++ b/llvm/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/llvm/test/MC/MachO/weakdef.s b/llvm/test/MC/MachO/weakdef.s --- a/llvm/test/MC/MachO/weakdef.s +++ b/llvm/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/llvm/test/MC/MachO/x86-data-in-code.s b/llvm/test/MC/MachO/x86-data-in-code.s --- a/llvm/test/MC/MachO/x86-data-in-code.s +++ b/llvm/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/llvm/test/MC/MachO/x86_32-optimal_nop.s b/llvm/test/MC/MachO/x86_32-optimal_nop.s --- a/llvm/test/MC/MachO/x86_32-optimal_nop.s +++ b/llvm/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/llvm/test/MC/MachO/x86_32-scattered-reloc-fallback.s b/llvm/test/MC/MachO/x86_32-scattered-reloc-fallback.s --- a/llvm/test/MC/MachO/x86_32-scattered-reloc-fallback.s +++ b/llvm/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/llvm/test/MC/MachO/x86_32-sections.s b/llvm/test/MC/MachO/x86_32-sections.s --- a/llvm/test/MC/MachO/x86_32-sections.s +++ b/llvm/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/llvm/test/MC/MachO/x86_32-symbols.s b/llvm/test/MC/MachO/x86_32-symbols.s --- a/llvm/test/MC/MachO/x86_32-symbols.s +++ b/llvm/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/llvm/test/MC/MachO/x86_64-mergeable.s b/llvm/test/MC/MachO/x86_64-mergeable.s --- a/llvm/test/MC/MachO/x86_64-mergeable.s +++ b/llvm/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/llvm/test/MC/MachO/x86_64-reloc-arithmetic.s b/llvm/test/MC/MachO/x86_64-reloc-arithmetic.s --- a/llvm/test/MC/MachO/x86_64-reloc-arithmetic.s +++ b/llvm/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/llvm/test/MC/MachO/x86_64-sections.s b/llvm/test/MC/MachO/x86_64-sections.s --- a/llvm/test/MC/MachO/x86_64-sections.s +++ b/llvm/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/llvm/test/MC/MachO/x86_64-symbols.s b/llvm/test/MC/MachO/x86_64-symbols.s --- a/llvm/test/MC/MachO/x86_64-symbols.s +++ b/llvm/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/llvm/test/MC/MachO/zero-space.s b/llvm/test/MC/MachO/zero-space.s --- a/llvm/test/MC/MachO/zero-space.s +++ b/llvm/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/llvm/test/MC/MachO/zerofill-1.s b/llvm/test/MC/MachO/zerofill-1.s --- a/llvm/test/MC/MachO/zerofill-1.s +++ b/llvm/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/llvm/test/MC/MachO/zerofill-2.s b/llvm/test/MC/MachO/zerofill-2.s --- a/llvm/test/MC/MachO/zerofill-2.s +++ b/llvm/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/llvm/test/MC/MachO/zerofill-3.s b/llvm/test/MC/MachO/zerofill-3.s --- a/llvm/test/MC/MachO/zerofill-3.s +++ b/llvm/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/llvm/test/MC/MachO/zerofill-4.s b/llvm/test/MC/MachO/zerofill-4.s --- a/llvm/test/MC/MachO/zerofill-4.s +++ b/llvm/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/llvm/test/MC/MachO/zerofill-5.s b/llvm/test/MC/MachO/zerofill-5.s --- a/llvm/test/MC/MachO/zerofill-5.s +++ b/llvm/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/llvm/test/MC/MachO/zerofill-sect-align.s b/llvm/test/MC/MachO/zerofill-sect-align.s --- a/llvm/test/MC/MachO/zerofill-sect-align.s +++ b/llvm/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/llvm/test/MC/Mips/cfi-advance-loc.s b/llvm/test/MC/Mips/cfi-advance-loc.s --- a/llvm/test/MC/Mips/cfi-advance-loc.s +++ b/llvm/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/llvm/test/MC/Mips/directive-ent.s b/llvm/test/MC/Mips/directive-ent.s --- a/llvm/test/MC/Mips/directive-ent.s +++ b/llvm/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/llvm/test/MC/Mips/elf-N32.s b/llvm/test/MC/Mips/elf-N32.s --- a/llvm/test/MC/Mips/elf-N32.s +++ b/llvm/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/llvm/test/MC/Mips/elf-N64.s b/llvm/test/MC/Mips/elf-N64.s --- a/llvm/test/MC/Mips/elf-N64.s +++ b/llvm/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/llvm/test/MC/Mips/elf-debug-section.s b/llvm/test/MC/Mips/elf-debug-section.s --- a/llvm/test/MC/Mips/elf-debug-section.s +++ b/llvm/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/llvm/test/MC/Mips/elf-gprel-32-64.s b/llvm/test/MC/Mips/elf-gprel-32-64.s --- a/llvm/test/MC/Mips/elf-gprel-32-64.s +++ b/llvm/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/llvm/test/MC/Mips/elf-relsym.s b/llvm/test/MC/Mips/elf-relsym.s --- a/llvm/test/MC/Mips/elf-relsym.s +++ b/llvm/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/llvm/test/MC/Mips/elf-tls.s b/llvm/test/MC/Mips/elf-tls.s --- a/llvm/test/MC/Mips/elf-tls.s +++ b/llvm/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/llvm/test/MC/Mips/elf_basic.s b/llvm/test/MC/Mips/elf_basic.s --- a/llvm/test/MC/Mips/elf_basic.s +++ b/llvm/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/llvm/test/MC/Mips/elf_eflags.s b/llvm/test/MC/Mips/elf_eflags.s --- a/llvm/test/MC/Mips/elf_eflags.s +++ b/llvm/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/llvm/test/MC/Mips/elf_eflags_abicalls.s b/llvm/test/MC/Mips/elf_eflags_abicalls.s --- a/llvm/test/MC/Mips/elf_eflags_abicalls.s +++ b/llvm/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/llvm/test/MC/Mips/elf_eflags_micromips.s b/llvm/test/MC/Mips/elf_eflags_micromips.s --- a/llvm/test/MC/Mips/elf_eflags_micromips.s +++ b/llvm/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/llvm/test/MC/Mips/elf_eflags_micromips2.s b/llvm/test/MC/Mips/elf_eflags_micromips2.s --- a/llvm/test/MC/Mips/elf_eflags_micromips2.s +++ b/llvm/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/llvm/test/MC/Mips/elf_eflags_mips16.s b/llvm/test/MC/Mips/elf_eflags_mips16.s --- a/llvm/test/MC/Mips/elf_eflags_mips16.s +++ b/llvm/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/llvm/test/MC/Mips/elf_eflags_nan2008.s b/llvm/test/MC/Mips/elf_eflags_nan2008.s --- a/llvm/test/MC/Mips/elf_eflags_nan2008.s +++ b/llvm/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/llvm/test/MC/Mips/elf_eflags_nanlegacy.s b/llvm/test/MC/Mips/elf_eflags_nanlegacy.s --- a/llvm/test/MC/Mips/elf_eflags_nanlegacy.s +++ b/llvm/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/llvm/test/MC/Mips/elf_eflags_noreorder.s b/llvm/test/MC/Mips/elf_eflags_noreorder.s --- a/llvm/test/MC/Mips/elf_eflags_noreorder.s +++ b/llvm/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/llvm/test/MC/Mips/elf_eflags_pic0.s b/llvm/test/MC/Mips/elf_eflags_pic0.s --- a/llvm/test/MC/Mips/elf_eflags_pic0.s +++ b/llvm/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/llvm/test/MC/Mips/elf_eflags_pic2.s b/llvm/test/MC/Mips/elf_eflags_pic2.s --- a/llvm/test/MC/Mips/elf_eflags_pic2.s +++ b/llvm/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/llvm/test/MC/Mips/elf_header.s b/llvm/test/MC/Mips/elf_header.s --- a/llvm/test/MC/Mips/elf_header.s +++ b/llvm/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/llvm/test/MC/Mips/elf_reginfo.s b/llvm/test/MC/Mips/elf_reginfo.s --- a/llvm/test/MC/Mips/elf_reginfo.s +++ b/llvm/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/llvm/test/MC/Mips/elf_st_other.s b/llvm/test/MC/Mips/elf_st_other.s --- a/llvm/test/MC/Mips/elf_st_other.s +++ b/llvm/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/llvm/test/MC/Mips/end-directive.s b/llvm/test/MC/Mips/end-directive.s --- a/llvm/test/MC/Mips/end-directive.s +++ b/llvm/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/llvm/test/MC/Mips/higher-highest-addressing.s b/llvm/test/MC/Mips/higher-highest-addressing.s --- a/llvm/test/MC/Mips/higher-highest-addressing.s +++ b/llvm/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/llvm/test/MC/Mips/hilo-addressing.s b/llvm/test/MC/Mips/hilo-addressing.s --- a/llvm/test/MC/Mips/hilo-addressing.s +++ b/llvm/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/llvm/test/MC/Mips/micromips-alias.s b/llvm/test/MC/Mips/micromips-alias.s --- a/llvm/test/MC/Mips/micromips-alias.s +++ b/llvm/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/llvm/test/MC/Mips/micromips-ase-directive.s b/llvm/test/MC/Mips/micromips-ase-directive.s --- a/llvm/test/MC/Mips/micromips-ase-directive.s +++ b/llvm/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/llvm/test/MC/Mips/micromips-branch-fixup.s b/llvm/test/MC/Mips/micromips-branch-fixup.s --- a/llvm/test/MC/Mips/micromips-branch-fixup.s +++ b/llvm/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/llvm/test/MC/Mips/micromips-func-addr.s b/llvm/test/MC/Mips/micromips-func-addr.s --- a/llvm/test/MC/Mips/micromips-func-addr.s +++ b/llvm/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/llvm/test/MC/Mips/micromips-jump26.s b/llvm/test/MC/Mips/micromips-jump26.s --- a/llvm/test/MC/Mips/micromips-jump26.s +++ b/llvm/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/llvm/test/MC/Mips/micromips-label-test-sections.s b/llvm/test/MC/Mips/micromips-label-test-sections.s --- a/llvm/test/MC/Mips/micromips-label-test-sections.s +++ b/llvm/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/llvm/test/MC/Mips/micromips-label-test.s b/llvm/test/MC/Mips/micromips-label-test.s --- a/llvm/test/MC/Mips/micromips-label-test.s +++ b/llvm/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/llvm/test/MC/Mips/micromips-relocations.s b/llvm/test/MC/Mips/micromips-relocations.s --- a/llvm/test/MC/Mips/micromips-relocations.s +++ b/llvm/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/llvm/test/MC/Mips/micromips-tailr.s b/llvm/test/MC/Mips/micromips-tailr.s --- a/llvm/test/MC/Mips/micromips-tailr.s +++ b/llvm/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/llvm/test/MC/Mips/micromips32r6/relocations.s b/llvm/test/MC/Mips/micromips32r6/relocations.s --- a/llvm/test/MC/Mips/micromips32r6/relocations.s +++ b/llvm/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/llvm/test/MC/Mips/mips-pdr.s b/llvm/test/MC/Mips/mips-pdr.s --- a/llvm/test/MC/Mips/mips-pdr.s +++ b/llvm/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/llvm/test/MC/Mips/mips-rdata.s b/llvm/test/MC/Mips/mips-rdata.s --- a/llvm/test/MC/Mips/mips-rdata.s +++ b/llvm/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/llvm/test/MC/Mips/mips-reginfo-fp32.s b/llvm/test/MC/Mips/mips-reginfo-fp32.s --- a/llvm/test/MC/Mips/mips-reginfo-fp32.s +++ b/llvm/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/llvm/test/MC/Mips/mips-reginfo-fp64.s b/llvm/test/MC/Mips/mips-reginfo-fp64.s --- a/llvm/test/MC/Mips/mips-reginfo-fp64.s +++ b/llvm/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/llvm/test/MC/Mips/mips32r6/relocations.s b/llvm/test/MC/Mips/mips32r6/relocations.s --- a/llvm/test/MC/Mips/mips32r6/relocations.s +++ b/llvm/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/llvm/test/MC/Mips/mips64eb-fixups.s b/llvm/test/MC/Mips/mips64eb-fixups.s --- a/llvm/test/MC/Mips/mips64eb-fixups.s +++ b/llvm/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/llvm/test/MC/Mips/mips64r6/relocations.s b/llvm/test/MC/Mips/mips64r6/relocations.s --- a/llvm/test/MC/Mips/mips64r6/relocations.s +++ b/llvm/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/llvm/test/MC/Mips/mt/abiflag.s b/llvm/test/MC/Mips/mt/abiflag.s --- a/llvm/test/MC/Mips/mt/abiflag.s +++ b/llvm/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/llvm/test/MC/Mips/mt/module-directive.s b/llvm/test/MC/Mips/mt/module-directive.s --- a/llvm/test/MC/Mips/mt/module-directive.s +++ b/llvm/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/llvm/test/MC/Mips/mt/set-directive.s b/llvm/test/MC/Mips/mt/set-directive.s --- a/llvm/test/MC/Mips/mt/set-directive.s +++ b/llvm/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/llvm/test/MC/Mips/r-mips-got-disp.s b/llvm/test/MC/Mips/r-mips-got-disp.s --- a/llvm/test/MC/Mips/r-mips-got-disp.s +++ b/llvm/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/llvm/test/MC/Mips/reloc-directive-label-offset.s b/llvm/test/MC/Mips/reloc-directive-label-offset.s --- a/llvm/test/MC/Mips/reloc-directive-label-offset.s +++ b/llvm/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/llvm/test/MC/Mips/reloc-directive.s b/llvm/test/MC/Mips/reloc-directive.s --- a/llvm/test/MC/Mips/reloc-directive.s +++ b/llvm/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/llvm/test/MC/Mips/relocation-n64.s b/llvm/test/MC/Mips/relocation-n64.s --- a/llvm/test/MC/Mips/relocation-n64.s +++ b/llvm/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/llvm/test/MC/Mips/relocation.s b/llvm/test/MC/Mips/relocation.s --- a/llvm/test/MC/Mips/relocation.s +++ b/llvm/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/llvm/test/MC/Mips/section-size.s b/llvm/test/MC/Mips/section-size.s --- a/llvm/test/MC/Mips/section-size.s +++ b/llvm/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/llvm/test/MC/Mips/sort-relocation-table.s b/llvm/test/MC/Mips/sort-relocation-table.s --- a/llvm/test/MC/Mips/sort-relocation-table.s +++ b/llvm/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/llvm/test/MC/Mips/tls-symbols.s b/llvm/test/MC/Mips/tls-symbols.s --- a/llvm/test/MC/Mips/tls-symbols.s +++ b/llvm/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/llvm/test/MC/Mips/xgot.s b/llvm/test/MC/Mips/xgot.s --- a/llvm/test/MC/Mips/xgot.s +++ b/llvm/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/llvm/test/MC/PowerPC/lcomm.s b/llvm/test/MC/PowerPC/lcomm.s --- a/llvm/test/MC/PowerPC/lcomm.s +++ b/llvm/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/llvm/test/MC/PowerPC/ppc-llong.s b/llvm/test/MC/PowerPC/ppc-llong.s --- a/llvm/test/MC/PowerPC/ppc-llong.s +++ b/llvm/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/llvm/test/MC/PowerPC/ppc-reloc.s b/llvm/test/MC/PowerPC/ppc-reloc.s --- a/llvm/test/MC/PowerPC/ppc-reloc.s +++ b/llvm/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/llvm/test/MC/PowerPC/ppc-word.s b/llvm/test/MC/PowerPC/ppc-word.s --- a/llvm/test/MC/PowerPC/ppc-word.s +++ b/llvm/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/llvm/test/MC/PowerPC/ppc32-reloc-directive.s b/llvm/test/MC/PowerPC/ppc32-reloc-directive.s --- a/llvm/test/MC/PowerPC/ppc32-reloc-directive.s +++ b/llvm/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/llvm/test/MC/PowerPC/ppc64-abiversion.s b/llvm/test/MC/PowerPC/ppc64-abiversion.s --- a/llvm/test/MC/PowerPC/ppc64-abiversion.s +++ b/llvm/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/llvm/test/MC/PowerPC/ppc64-encoding-ISA31-pcrel-reloc.s b/llvm/test/MC/PowerPC/ppc64-encoding-ISA31-pcrel-reloc.s --- a/llvm/test/MC/PowerPC/ppc64-encoding-ISA31-pcrel-reloc.s +++ b/llvm/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/llvm/test/MC/PowerPC/ppc64-fixup-apply.s b/llvm/test/MC/PowerPC/ppc64-fixup-apply.s --- a/llvm/test/MC/PowerPC/ppc64-fixup-apply.s +++ b/llvm/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/llvm/test/MC/PowerPC/ppc64-fixup-explicit.s b/llvm/test/MC/PowerPC/ppc64-fixup-explicit.s --- a/llvm/test/MC/PowerPC/ppc64-fixup-explicit.s +++ b/llvm/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/llvm/test/MC/PowerPC/ppc64-fixups.s b/llvm/test/MC/PowerPC/ppc64-fixups.s --- a/llvm/test/MC/PowerPC/ppc64-fixups.s +++ b/llvm/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/llvm/test/MC/PowerPC/ppc64-initial-cfa.s b/llvm/test/MC/PowerPC/ppc64-initial-cfa.s --- a/llvm/test/MC/PowerPC/ppc64-initial-cfa.s +++ b/llvm/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/llvm/test/MC/PowerPC/ppc64-localentry.s b/llvm/test/MC/PowerPC/ppc64-localentry.s --- a/llvm/test/MC/PowerPC/ppc64-localentry.s +++ b/llvm/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/llvm/test/MC/PowerPC/ppc64-reloc-directive.s b/llvm/test/MC/PowerPC/ppc64-reloc-directive.s --- a/llvm/test/MC/PowerPC/ppc64-reloc-directive.s +++ b/llvm/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/llvm/test/MC/PowerPC/ppc64-relocs-01.s b/llvm/test/MC/PowerPC/ppc64-relocs-01.s --- a/llvm/test/MC/PowerPC/ppc64-relocs-01.s +++ b/llvm/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/llvm/test/MC/PowerPC/ppc64-tls-relocs-01.s b/llvm/test/MC/PowerPC/ppc64-tls-relocs-01.s --- a/llvm/test/MC/PowerPC/ppc64-tls-relocs-01.s +++ b/llvm/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/llvm/test/MC/PowerPC/st-other-crash.s b/llvm/test/MC/PowerPC/st-other-crash.s --- a/llvm/test/MC/PowerPC/st-other-crash.s +++ b/llvm/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/llvm/test/MC/PowerPC/tls-gd-obj.s b/llvm/test/MC/PowerPC/tls-gd-obj.s --- a/llvm/test/MC/PowerPC/tls-gd-obj.s +++ b/llvm/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/llvm/test/MC/PowerPC/tls-ie-obj.s b/llvm/test/MC/PowerPC/tls-ie-obj.s --- a/llvm/test/MC/PowerPC/tls-ie-obj.s +++ b/llvm/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/llvm/test/MC/PowerPC/tls-ld-obj.s b/llvm/test/MC/PowerPC/tls-ld-obj.s --- a/llvm/test/MC/PowerPC/tls-ld-obj.s +++ b/llvm/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/llvm/test/MC/PowerPC/tls-ld-v2-abi.s b/llvm/test/MC/PowerPC/tls-ld-v2-abi.s --- a/llvm/test/MC/PowerPC/tls-ld-v2-abi.s +++ b/llvm/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/llvm/test/MC/PowerPC/tls-le-v2-abi.s b/llvm/test/MC/PowerPC/tls-le-v2-abi.s --- a/llvm/test/MC/PowerPC/tls-le-v2-abi.s +++ b/llvm/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/llvm/test/MC/RISCV/align.s b/llvm/test/MC/RISCV/align.s --- a/llvm/test/MC/RISCV/align.s +++ b/llvm/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/llvm/test/MC/RISCV/compressed-relocations.s b/llvm/test/MC/RISCV/compressed-relocations.s --- a/llvm/test/MC/RISCV/compressed-relocations.s +++ b/llvm/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/llvm/test/MC/RISCV/elf-header.s b/llvm/test/MC/RISCV/elf-header.s --- a/llvm/test/MC/RISCV/elf-header.s +++ b/llvm/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/llvm/test/MC/RISCV/fde-reloc.s b/llvm/test/MC/RISCV/fde-reloc.s --- a/llvm/test/MC/RISCV/fde-reloc.s +++ b/llvm/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/llvm/test/MC/RISCV/fixups-compressed.s b/llvm/test/MC/RISCV/fixups-compressed.s --- a/llvm/test/MC/RISCV/fixups-compressed.s +++ b/llvm/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/llvm/test/MC/RISCV/fixups-expr.s b/llvm/test/MC/RISCV/fixups-expr.s --- a/llvm/test/MC/RISCV/fixups-expr.s +++ b/llvm/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/llvm/test/MC/RISCV/fixups.s b/llvm/test/MC/RISCV/fixups.s --- a/llvm/test/MC/RISCV/fixups.s +++ b/llvm/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/llvm/test/MC/RISCV/function-call.s b/llvm/test/MC/RISCV/function-call.s --- a/llvm/test/MC/RISCV/function-call.s +++ b/llvm/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/llvm/test/MC/RISCV/hilo-constaddr.s b/llvm/test/MC/RISCV/hilo-constaddr.s --- a/llvm/test/MC/RISCV/hilo-constaddr.s +++ b/llvm/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/llvm/test/MC/RISCV/linker-relaxation.s b/llvm/test/MC/RISCV/linker-relaxation.s --- a/llvm/test/MC/RISCV/linker-relaxation.s +++ b/llvm/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/llvm/test/MC/RISCV/option-nopic.s b/llvm/test/MC/RISCV/option-nopic.s --- a/llvm/test/MC/RISCV/option-nopic.s +++ b/llvm/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/llvm/test/MC/RISCV/option-pic.s b/llvm/test/MC/RISCV/option-pic.s --- a/llvm/test/MC/RISCV/option-pic.s +++ b/llvm/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/llvm/test/MC/RISCV/option-pushpop.s b/llvm/test/MC/RISCV/option-pushpop.s --- a/llvm/test/MC/RISCV/option-pushpop.s +++ b/llvm/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/llvm/test/MC/RISCV/option-relax.s b/llvm/test/MC/RISCV/option-relax.s --- a/llvm/test/MC/RISCV/option-relax.s +++ b/llvm/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/llvm/test/MC/RISCV/pseudo-jump.s b/llvm/test/MC/RISCV/pseudo-jump.s --- a/llvm/test/MC/RISCV/pseudo-jump.s +++ b/llvm/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/llvm/test/MC/RISCV/reloc-directive.s b/llvm/test/MC/RISCV/reloc-directive.s --- a/llvm/test/MC/RISCV/reloc-directive.s +++ b/llvm/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/llvm/test/MC/RISCV/relocations.s b/llvm/test/MC/RISCV/relocations.s --- a/llvm/test/MC/RISCV/relocations.s +++ b/llvm/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/llvm/test/MC/RISCV/rv32-relaxation.s b/llvm/test/MC/RISCV/rv32-relaxation.s --- a/llvm/test/MC/RISCV/rv32-relaxation.s +++ b/llvm/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/llvm/test/MC/RISCV/rv64-relaxation.s b/llvm/test/MC/RISCV/rv64-relaxation.s --- a/llvm/test/MC/RISCV/rv64-relaxation.s +++ b/llvm/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/llvm/test/MC/RISCV/tail-call.s b/llvm/test/MC/RISCV/tail-call.s --- a/llvm/test/MC/RISCV/tail-call.s +++ b/llvm/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/llvm/test/MC/Sparc/sparc-nop-data.s b/llvm/test/MC/Sparc/sparc-nop-data.s --- a/llvm/test/MC/Sparc/sparc-nop-data.s +++ b/llvm/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/llvm/test/MC/Sparc/sparc-pic.s b/llvm/test/MC/Sparc/sparc-pic.s --- a/llvm/test/MC/Sparc/sparc-pic.s +++ b/llvm/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/llvm/test/MC/Sparc/sparc-relocations.s b/llvm/test/MC/Sparc/sparc-relocations.s --- a/llvm/test/MC/Sparc/sparc-relocations.s +++ b/llvm/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/llvm/test/MC/Sparc/sparc-tls-relocations.s b/llvm/test/MC/Sparc/sparc-tls-relocations.s --- a/llvm/test/MC/Sparc/sparc-tls-relocations.s +++ b/llvm/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/llvm/test/MC/SystemZ/fixups-zEC12.s b/llvm/test/MC/SystemZ/fixups-zEC12.s --- a/llvm/test/MC/SystemZ/fixups-zEC12.s +++ b/llvm/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/llvm/test/MC/SystemZ/fixups.s b/llvm/test/MC/SystemZ/fixups.s --- a/llvm/test/MC/SystemZ/fixups.s +++ b/llvm/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/llvm/test/MC/SystemZ/word.s b/llvm/test/MC/SystemZ/word.s --- a/llvm/test/MC/SystemZ/word.s +++ b/llvm/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/llvm/test/MC/WebAssembly/custom-sections.ll b/llvm/test/MC/WebAssembly/custom-sections.ll --- a/llvm/test/MC/WebAssembly/custom-sections.ll +++ b/llvm/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/llvm/test/MC/WebAssembly/debug-info.ll b/llvm/test/MC/WebAssembly/debug-info.ll --- a/llvm/test/MC/WebAssembly/debug-info.ll +++ b/llvm/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/llvm/test/MC/WebAssembly/event-section.ll b/llvm/test/MC/WebAssembly/event-section.ll --- a/llvm/test/MC/WebAssembly/event-section.ll +++ b/llvm/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/llvm/test/MC/WebAssembly/file-headers.ll b/llvm/test/MC/WebAssembly/file-headers.ll --- a/llvm/test/MC/WebAssembly/file-headers.ll +++ b/llvm/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/llvm/test/MC/WebAssembly/func-address.ll b/llvm/test/MC/WebAssembly/func-address.ll --- a/llvm/test/MC/WebAssembly/func-address.ll +++ b/llvm/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/llvm/test/MC/WebAssembly/function-alias.ll b/llvm/test/MC/WebAssembly/function-alias.ll --- a/llvm/test/MC/WebAssembly/function-alias.ll +++ b/llvm/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/llvm/test/MC/WebAssembly/no-dead-strip.ll b/llvm/test/MC/WebAssembly/no-dead-strip.ll --- a/llvm/test/MC/WebAssembly/no-dead-strip.ll +++ b/llvm/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/llvm/test/MC/WebAssembly/reloc-code.ll b/llvm/test/MC/WebAssembly/reloc-code.ll --- a/llvm/test/MC/WebAssembly/reloc-code.ll +++ b/llvm/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/llvm/test/MC/WebAssembly/reloc-data.ll b/llvm/test/MC/WebAssembly/reloc-data.ll --- a/llvm/test/MC/WebAssembly/reloc-data.ll +++ b/llvm/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/llvm/test/MC/WebAssembly/sections.ll b/llvm/test/MC/WebAssembly/sections.ll --- a/llvm/test/MC/WebAssembly/sections.ll +++ b/llvm/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/llvm/test/MC/X86/AlignedBundling/section-alignment.s b/llvm/test/MC/X86/AlignedBundling/section-alignment.s --- a/llvm/test/MC/X86/AlignedBundling/section-alignment.s +++ b/llvm/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/llvm/test/MC/X86/align-branch-section-size.s b/llvm/test/MC/X86/align-branch-section-size.s --- a/llvm/test/MC/X86/align-branch-section-size.s +++ b/llvm/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/llvm/test/MC/X86/align-branch-section-type.s b/llvm/test/MC/X86/align-branch-section-type.s --- a/llvm/test/MC/X86/align-branch-section-type.s +++ b/llvm/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/llvm/test/MC/X86/cfi_def_cfa-crash.s b/llvm/test/MC/X86/cfi_def_cfa-crash.s --- a/llvm/test/MC/X86/cfi_def_cfa-crash.s +++ b/llvm/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/llvm/test/MC/X86/eval-fill.s b/llvm/test/MC/X86/eval-fill.s --- a/llvm/test/MC/X86/eval-fill.s +++ b/llvm/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/llvm/test/MC/X86/expand-var.s b/llvm/test/MC/X86/expand-var.s --- a/llvm/test/MC/X86/expand-var.s +++ b/llvm/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/llvm/test/MC/X86/fp-setup-macho.s b/llvm/test/MC/X86/fp-setup-macho.s --- a/llvm/test/MC/X86/fp-setup-macho.s +++ b/llvm/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/llvm/test/MC/X86/large-bss.s b/llvm/test/MC/X86/large-bss.s --- a/llvm/test/MC/X86/large-bss.s +++ b/llvm/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/llvm/test/MC/X86/no-elf-compact-unwind.s b/llvm/test/MC/X86/no-elf-compact-unwind.s --- a/llvm/test/MC/X86/no-elf-compact-unwind.s +++ b/llvm/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/llvm/test/MC/X86/reloc-directive.s b/llvm/test/MC/X86/reloc-directive.s --- a/llvm/test/MC/X86/reloc-directive.s +++ b/llvm/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/llvm/test/MC/X86/reloc-macho.s b/llvm/test/MC/X86/reloc-macho.s --- a/llvm/test/MC/X86/reloc-macho.s +++ b/llvm/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/llvm/test/MC/X86/reloc-undef-global.s b/llvm/test/MC/X86/reloc-undef-global.s --- a/llvm/test/MC/X86/reloc-undef-global.s +++ b/llvm/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/llvm/test/MC/X86/x86-evenDirective.s b/llvm/test/MC/X86/x86-evenDirective.s --- a/llvm/test/MC/X86/x86-evenDirective.s +++ b/llvm/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/llvm/test/MC/X86/x86_64-signed-reloc.s b/llvm/test/MC/X86/x86_64-signed-reloc.s --- a/llvm/test/MC/X86/x86_64-signed-reloc.s +++ b/llvm/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/llvm/test/tools/llvm-ifs/func.ifs b/llvm/test/tools/llvm-ifs/func.ifs --- a/llvm/test/tools/llvm-ifs/func.ifs +++ b/llvm/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/llvm/test/tools/llvm-ifs/object-function-size-weak-combo.ifs b/llvm/test/tools/llvm-ifs/object-function-size-weak-combo.ifs --- a/llvm/test/tools/llvm-ifs/object-function-size-weak-combo.ifs +++ b/llvm/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/llvm/test/tools/llvm-ifs/object.ifs b/llvm/test/tools/llvm-ifs/object.ifs --- a/llvm/test/tools/llvm-ifs/object.ifs +++ b/llvm/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/llvm/test/tools/llvm-readobj/ELF/AArch64/dwarf-cfi.s b/llvm/test/tools/llvm-readobj/ELF/AArch64/dwarf-cfi.s --- a/llvm/test/tools/llvm-readobj/ELF/AArch64/dwarf-cfi.s +++ b/llvm/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/llvm/test/tools/llvm-readobj/ELF/ARM/dwarf-cfi.s b/llvm/test/tools/llvm-readobj/ELF/ARM/dwarf-cfi.s --- a/llvm/test/tools/llvm-readobj/ELF/ARM/dwarf-cfi.s +++ b/llvm/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/llvm/test/tools/llvm-readobj/wasm/wasm-imports.test b/llvm/test/tools/llvm-readobj/wasm/wasm-imports.test --- a/llvm/test/tools/llvm-readobj/wasm/wasm-imports.test +++ b/llvm/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. diff --git a/llvm/tools/llvm-readobj/llvm-readobj.cpp b/llvm/tools/llvm-readobj/llvm-readobj.cpp --- a/llvm/tools/llvm-readobj/llvm-readobj.cpp +++ b/llvm/tools/llvm-readobj/llvm-readobj.cpp @@ -689,6 +689,12 @@ } cl::ParseCommandLineOptions(argc, argv, "LLVM Object Reader\n"); + + // Default to print help if no filename is specified. + if (opts::InputFilenames.empty()) { + cl::PrintHelpMessage(false, true); + return 0; + } if (opts::All) { opts::FileHeaders = true; @@ -714,10 +720,6 @@ opts::SectionHeaders = true; } - // Default to stdin if no filename is specified. - if (opts::InputFilenames.empty()) - opts::InputFilenames.push_back("-"); - ScopedPrinter Writer(fouts()); for (const std::string &I : opts::InputFilenames) dumpInput(I, Writer);