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