From: Simon Atanasyan Date: Thu, 3 Oct 2019 12:08:04 +0000 (+0000) Subject: [mips] Use llvm-readobj `-A` flag in test cases. NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=329896719f4b6a86946a8794e0be158a712fa709;p=llvm [mips] Use llvm-readobj `-A` flag in test cases. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373589 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/Mips/micromips-ase-function-attribute.ll b/test/CodeGen/Mips/micromips-ase-function-attribute.ll index fe82b7c5b6c..cd78166d372 100644 --- a/test/CodeGen/Mips/micromips-ase-function-attribute.ll +++ b/test/CodeGen/Mips/micromips-ase-function-attribute.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=mips-unknown-linux -filetype=obj %s -o - | \ -; RUN: llvm-readobj --mips-abi-flags | \ +; RUN: llvm-readobj -A | \ ; RUN: FileCheck --check-prefix=ASE-MICROMIPS %s define void @_Z3foov() #0 { diff --git a/test/MC/Mips/crc/module-crc.s b/test/MC/Mips/crc/module-crc.s index 92c428e67ff..66c54647cf4 100644 --- a/test/MC/Mips/crc/module-crc.s +++ b/test/MC/Mips/crc/module-crc.s @@ -3,7 +3,7 @@ # # RUN: llvm-mc %s -triple=mips-unknown-linux-gnu -mcpu=mips32r6 \ # RUN: -filetype=obj -o - | \ -# RUN: llvm-readobj --mips-abi-flags - | \ +# RUN: llvm-readobj -A - | \ # RUN: FileCheck %s -check-prefix=CHECK-OBJ # CHECK-ASM: .module crc diff --git a/test/MC/Mips/crc/module-nocrc.s b/test/MC/Mips/crc/module-nocrc.s index c67279194c8..193ed360b57 100644 --- a/test/MC/Mips/crc/module-nocrc.s +++ b/test/MC/Mips/crc/module-nocrc.s @@ -2,7 +2,7 @@ # RUN: FileCheck %s -check-prefix=CHECK-ASM # # RUN: llvm-mc %s -arch=mips -mcpu=mips32r6 -filetype=obj -o - -mattr=+crc | \ -# RUN: llvm-readobj --mips-abi-flags - | \ +# RUN: llvm-readobj -A - | \ # RUN: FileCheck %s -check-prefix=CHECK-OBJ # CHECK-ASM: .module nocrc diff --git a/test/MC/Mips/ginv/module-ginv.s b/test/MC/Mips/ginv/module-ginv.s index 07f1bc4d40e..8adcd90b23f 100644 --- a/test/MC/Mips/ginv/module-ginv.s +++ b/test/MC/Mips/ginv/module-ginv.s @@ -3,7 +3,7 @@ # # RUN: llvm-mc %s -triple=mips-unknown-linux-gnu -mcpu=mips32r6 \ # RUN: -filetype=obj -o - | \ -# RUN: llvm-readobj --mips-abi-flags - | \ +# RUN: llvm-readobj -A - | \ # RUN: FileCheck %s -check-prefix=CHECK-OBJ # CHECK-ASM: .module ginv diff --git a/test/MC/Mips/ginv/module-noginv.s b/test/MC/Mips/ginv/module-noginv.s index 2ed4fd9c314..611d72c52d5 100644 --- a/test/MC/Mips/ginv/module-noginv.s +++ b/test/MC/Mips/ginv/module-noginv.s @@ -2,7 +2,7 @@ # RUN: FileCheck %s -check-prefix=CHECK-ASM # # RUN: llvm-mc %s -arch=mips -mcpu=mips32r6 -filetype=obj -o - -mattr=+ginv | \ -# RUN: llvm-readobj --mips-abi-flags - | \ +# RUN: llvm-readobj -A - | \ # RUN: FileCheck %s -check-prefix=CHECK-OBJ # CHECK-ASM: .module noginv diff --git a/test/MC/Mips/micromips-ase-directive.s b/test/MC/Mips/micromips-ase-directive.s index f3ac60057dc..fef40ecc3ee 100644 --- a/test/MC/Mips/micromips-ase-directive.s +++ b/test/MC/Mips/micromips-ase-directive.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -triple=mips-unknown-linux -filetype=obj %s -o - | \ -# RUN: llvm-readobj --mips-abi-flags | \ +# RUN: llvm-readobj -A | \ # RUN: FileCheck --check-prefix=ASE-MICROMIPS %s .set micromips diff --git a/test/MC/Mips/mips_abi_flags_xx.s b/test/MC/Mips/mips_abi_flags_xx.s index 94101ae0c8f..f8386b49774 100644 --- a/test/MC/Mips/mips_abi_flags_xx.s +++ b/test/MC/Mips/mips_abi_flags_xx.s @@ -2,19 +2,19 @@ # RUN: FileCheck %s -check-prefix=CHECK-ASM # # RUN: llvm-mc %s -triple mips-unknown-linux-gnu -filetype=obj -o - | \ -# RUN: llvm-readobj --sections --section-data --section-relocations --mips-abi-flags - | \ +# RUN: llvm-readobj --sections --section-data --section-relocations -A - | \ # RUN: FileCheck %s -check-prefixes=CHECK-OBJ,CHECK-OBJ-32R1,CHECK-OBJ-MIPS # RUN: llvm-mc /dev/null -triple mips-unknown-linux-gnu -mattr=fpxx -filetype=obj -o - | \ -# RUN: llvm-readobj --sections --section-data --section-relocations --mips-abi-flags - | \ +# RUN: llvm-readobj --sections --section-data --section-relocations -A - | \ # RUN: FileCheck %s -check-prefixes=CHECK-OBJ,CHECK-OBJ-32R1,CHECK-OBJ-MIPS # RUN: llvm-mc /dev/null -triple mips-unknown-linux-gnu -mcpu=mips32r6 -mattr=fpxx -filetype=obj -o - | \ -# RUN: llvm-readobj --sections --section-data --section-relocations --mips-abi-flags - | \ +# RUN: llvm-readobj --sections --section-data --section-relocations -A - | \ # RUN: FileCheck %s -check-prefixes=CHECK-OBJ,CHECK-OBJ-32R6,CHECK-OBJ-MIPS # RUN: llvm-mc /dev/null -triple mips64-unknown-linux-gnu -mcpu=octeon -filetype=obj -o - | \ -# RUN: llvm-readobj --sections --section-data --section-relocations --mips-abi-flags - | \ +# RUN: llvm-readobj --sections --section-data --section-relocations -A - | \ # RUN: FileCheck %s -check-prefixes=CHECK-OBJ,CHECK-OBJ-64R2,CHECK-OBJ-OCTEON # CHECK-ASM: .module fp=xx diff --git a/test/MC/Mips/mips_abi_flags_xx_set.s b/test/MC/Mips/mips_abi_flags_xx_set.s index f2445eba777..8e4e2dbcf53 100644 --- a/test/MC/Mips/mips_abi_flags_xx_set.s +++ b/test/MC/Mips/mips_abi_flags_xx_set.s @@ -2,7 +2,7 @@ # RUN: FileCheck %s -check-prefix=CHECK-ASM # # RUN: llvm-mc %s -triple mips-unknown-linux-gnu -filetype=obj -o - | \ -# RUN: llvm-readobj --sections --section-data --section-relocations --mips-abi-flags - | \ +# RUN: llvm-readobj --sections --section-data --section-relocations -A - | \ # RUN: FileCheck %s -check-prefix=CHECK-OBJ # CHECK-ASM: .module fp=xx diff --git a/test/MC/Mips/module-hardfloat.s b/test/MC/Mips/module-hardfloat.s index f29fbc09353..5738a09a91b 100644 --- a/test/MC/Mips/module-hardfloat.s +++ b/test/MC/Mips/module-hardfloat.s @@ -2,7 +2,7 @@ # RUN: FileCheck %s -check-prefix=CHECK-ASM # # RUN: llvm-mc %s -triple mips-unknown-linux-gnu -filetype=obj -o - | \ -# RUN: llvm-readobj --mips-abi-flags - | \ +# RUN: llvm-readobj -A - | \ # RUN: FileCheck %s -check-prefix=CHECK-OBJ # CHECK-ASM: .module hardfloat diff --git a/test/MC/Mips/module-softfloat.s b/test/MC/Mips/module-softfloat.s index 77e62e38e20..94ab7be63dc 100644 --- a/test/MC/Mips/module-softfloat.s +++ b/test/MC/Mips/module-softfloat.s @@ -2,7 +2,7 @@ # RUN: FileCheck %s -check-prefix=CHECK-ASM # # RUN: llvm-mc %s -arch=mips -mcpu=mips32 -filetype=obj -o - | \ -# RUN: llvm-readobj --mips-abi-flags - | \ +# RUN: llvm-readobj -A - | \ # RUN: FileCheck %s -check-prefix=CHECK-OBJ # CHECK-ASM: .module softfloat diff --git a/test/MC/Mips/mt/abiflag.s b/test/MC/Mips/mt/abiflag.s index 2d03c5d1106..d067c55587c 100644 --- a/test/MC/Mips/mt/abiflag.s +++ b/test/MC/Mips/mt/abiflag.s @@ -1,5 +1,5 @@ # RUN: llvm-mc < %s -arch=mips -mcpu=mips32r2 -mattr=+mt -filetype=obj -o - \ -# RUN: | llvm-readobj --mips-abi-flags | FileCheck %s +# RUN: | llvm-readobj -A | FileCheck %s # Test that the usage of the MT ASE is recorded in .MIPS.abiflags diff --git a/test/MC/Mips/mt/module-directive.s b/test/MC/Mips/mt/module-directive.s index 0d9ab97b455..1bbe9114754 100644 --- a/test/MC/Mips/mt/module-directive.s +++ b/test/MC/Mips/mt/module-directive.s @@ -1,5 +1,5 @@ # RUN: llvm-mc < %s -arch=mips -mcpu=mips32r2 -filetype=obj -o - | \ -# RUN: llvm-readobj --mips-abi-flags | FileCheck --check-prefix=CHECK-OBJ %s +# RUN: llvm-readobj -A | FileCheck --check-prefix=CHECK-OBJ %s # RUN: llvm-mc < %s -arch=mips -mcpu=mips32r2 -filetype=asm -o - | \ # RUN: FileCheck --check-prefix=CHECK-ASM %s diff --git a/test/MC/Mips/mt/set-directive.s b/test/MC/Mips/mt/set-directive.s index 9088655d8c5..5d18486059d 100644 --- a/test/MC/Mips/mt/set-directive.s +++ b/test/MC/Mips/mt/set-directive.s @@ -1,5 +1,5 @@ # RUN: llvm-mc < %s -arch=mips -mcpu=mips32r2 -filetype=obj -o - | \ -# RUN: llvm-readobj --mips-abi-flags | FileCheck %s --check-prefix=CHECK-OBJ +# RUN: llvm-readobj -A | FileCheck %s --check-prefix=CHECK-OBJ # RUN: llvm-mc < %s -arch=mips -mcpu=mips32r2 -filetype=asm -o - | \ # RUN: FileCheck %s --check-prefix=CHECK-ASM diff --git a/test/MC/Mips/virt/module-novirt.s b/test/MC/Mips/virt/module-novirt.s index 0f531dbbc80..6b953d0c585 100644 --- a/test/MC/Mips/virt/module-novirt.s +++ b/test/MC/Mips/virt/module-novirt.s @@ -2,7 +2,7 @@ # RUN: FileCheck %s -check-prefix=CHECK-ASM # # RUN: llvm-mc %s -arch=mips -mcpu=mips32r5 -filetype=obj -o - -mattr=+virt | \ -# RUN: llvm-readobj --mips-abi-flags - | \ +# RUN: llvm-readobj -A - | \ # RUN: FileCheck %s -check-prefix=CHECK-OBJ # CHECK-ASM: .module novirt diff --git a/test/MC/Mips/virt/module-virt.s b/test/MC/Mips/virt/module-virt.s index ae38b83d848..1fb035df878 100644 --- a/test/MC/Mips/virt/module-virt.s +++ b/test/MC/Mips/virt/module-virt.s @@ -3,7 +3,7 @@ # # RUN: llvm-mc %s -triple=mips-unknown-linux-gnu -mcpu=mips32r5 \ # RUN: -filetype=obj -o - | \ -# RUN: llvm-readobj --mips-abi-flags - | \ +# RUN: llvm-readobj -A - | \ # RUN: FileCheck %s -check-prefix=CHECK-OBJ # CHECK-ASM: .module virt diff --git a/test/Object/Mips/abi-flags.yaml b/test/Object/Mips/abi-flags.yaml index b5142fd3303..ce8234a9a0d 100644 --- a/test/Object/Mips/abi-flags.yaml +++ b/test/Object/Mips/abi-flags.yaml @@ -1,5 +1,5 @@ # RUN: yaml2obj %s > %t -# RUN: llvm-readobj --mips-abi-flags %t | FileCheck -check-prefix=OBJ %s +# RUN: llvm-readobj -A %t | FileCheck -check-prefix=OBJ %s # RUN: obj2yaml %t | FileCheck -check-prefix=YAML %s # OBJ: MIPS ABI Flags { diff --git a/test/tools/llvm-readobj/mips-abiflags.test b/test/tools/llvm-readobj/mips-abiflags.test index c06d147397e..f014c10340f 100644 --- a/test/tools/llvm-readobj/mips-abiflags.test +++ b/test/tools/llvm-readobj/mips-abiflags.test @@ -1,6 +1,6 @@ -RUN: llvm-readobj --mips-abi-flags %p/Inputs/abiflags.obj.elf-mipsel | \ +RUN: llvm-readobj -A %p/Inputs/abiflags.obj.elf-mipsel | \ RUN: FileCheck -check-prefix=EL64 %s -RUN: llvm-readobj --mips-abi-flags %p/Inputs/abiflags.obj.elf-mips | \ +RUN: llvm-readobj -A %p/Inputs/abiflags.obj.elf-mips | \ RUN: FileCheck -check-prefix=BE32 %s EL64: MIPS ABI Flags {