[lld] r372649 - [mips] Reformat test case to simplify addition new tests. NFC
Simon Atanasyan via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 13:32:27 PDT 2019
Author: atanasyan
Date: Mon Sep 23 13:32:27 2019
New Revision: 372649
URL: http://llvm.org/viewvc/llvm-project?rev=372649&view=rev
Log:
[mips] Reformat test case to simplify addition new tests. NFC
Modified:
lld/trunk/test/ELF/emulation-mips.s
Modified: lld/trunk/test/ELF/emulation-mips.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/emulation-mips.s?rev=372649&r1=372648&r2=372649&view=diff
==============================================================================
--- lld/trunk/test/ELF/emulation-mips.s (original)
+++ lld/trunk/test/ELF/emulation-mips.s Mon Sep 23 13:32:27 2019
@@ -1,22 +1,26 @@
# REQUIRES: mips
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %tmips
# RUN: ld.lld -m elf32btsmip -e _start %tmips -o %t2mips
-# RUN: llvm-readobj --file-headers %t2mips | FileCheck --check-prefix=MIPS %s
+# RUN: llvm-readobj --file-headers %t2mips \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPS %s
# RUN: ld.lld %tmips -e _start -o %t3mips
-# RUN: llvm-readobj --file-headers %t3mips | FileCheck --check-prefix=MIPS %s
+# RUN: llvm-readobj --file-headers %t3mips \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPS %s
# RUN: echo 'OUTPUT_FORMAT(elf32-tradbigmips)' > %tmips.script
# RUN: ld.lld %tmips.script -e _start %tmips -o %t4mips
-# RUN: llvm-readobj --file-headers %t4mips | FileCheck --check-prefix=MIPS %s
+# RUN: llvm-readobj --file-headers %t4mips \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPS %s
# RUN: echo 'OUTPUT_FORMAT(elf32-bigmips)' > %tmips2.script
# RUN: ld.lld %tmips2.script -e _start %tmips -o %t5mips
-# RUN: llvm-readobj --file-headers %t5mips | FileCheck --check-prefix=MIPS %s
+# RUN: llvm-readobj --file-headers %t5mips \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPS %s
# MIPS: ElfHeader {
# MIPS-NEXT: Ident {
# MIPS-NEXT: Magic: (7F 45 4C 46)
# MIPS-NEXT: Class: 32-bit (0x1)
# MIPS-NEXT: DataEncoding: BigEndian (0x2)
# MIPS-NEXT: FileVersion: 1
-# MIPS-NEXT: OS/ABI: SystemV (0x0)
+# MIPS-NEXT: OS/ABI: [[OSABI]]
# MIPS-NEXT: ABIVersion: 1
# MIPS-NEXT: Unused: (00 00 00 00 00 00 00)
# MIPS-NEXT: }
@@ -34,21 +38,25 @@
# RUN: llvm-mc -filetype=obj -triple=mipsel-unknown-linux %s -o %tmipsel
# RUN: ld.lld -m elf32ltsmip -e _start %tmipsel -o %t2mipsel
-# RUN: llvm-readobj --file-headers %t2mipsel | FileCheck --check-prefix=MIPSEL %s
+# RUN: llvm-readobj --file-headers %t2mipsel \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPSEL %s
# RUN: ld.lld -melf32ltsmip -e _start %tmipsel -o %t2mipsel
-# RUN: llvm-readobj --file-headers %t2mipsel | FileCheck --check-prefix=MIPSEL %s
+# RUN: llvm-readobj --file-headers %t2mipsel \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPSEL %s
# RUN: ld.lld %tmipsel -e _start -o %t3mipsel
-# RUN: llvm-readobj --file-headers %t3mipsel | FileCheck --check-prefix=MIPSEL %s
+# RUN: llvm-readobj --file-headers %t3mipsel \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPSEL %s
# RUN: echo 'OUTPUT_FORMAT(elf32-tradlittlemips)' > %tmipsel.script
# RUN: ld.lld %tmipsel.script -e _start %tmipsel -o %t4mipsel
-# RUN: llvm-readobj --file-headers %t4mipsel | FileCheck --check-prefix=MIPSEL %s
+# RUN: llvm-readobj --file-headers %t4mipsel \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPSEL %s
# MIPSEL: ElfHeader {
# MIPSEL-NEXT: Ident {
# MIPSEL-NEXT: Magic: (7F 45 4C 46)
# MIPSEL-NEXT: Class: 32-bit (0x1)
# MIPSEL-NEXT: DataEncoding: LittleEndian (0x1)
# MIPSEL-NEXT: FileVersion: 1
-# MIPSEL-NEXT: OS/ABI: SystemV (0x0)
+# MIPSEL-NEXT: OS/ABI: [[OSABI]]
# MIPSEL-NEXT: ABIVersion: 1
# MIPSEL-NEXT: Unused: (00 00 00 00 00 00 00)
# MIPSEL-NEXT: }
@@ -66,19 +74,22 @@
# RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux-gnuabin32 %s -o %tmipsn32
# RUN: ld.lld -m elf32btsmipn32 -e _start %tmipsn32 -o %t2mipsn32
-# RUN: llvm-readobj --file-headers %t2mipsn32 | FileCheck --check-prefix=MIPSN32 %s
+# RUN: llvm-readobj --file-headers %t2mipsn32 \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPSN32 %s
# RUN: ld.lld %tmipsn32 -e _start -o %t3mipsn32
-# RUN: llvm-readobj --file-headers %t3mipsn32 | FileCheck --check-prefix=MIPSN32 %s
+# RUN: llvm-readobj --file-headers %t3mipsn32 \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPSN32 %s
# RUN: echo 'OUTPUT_FORMAT(elf32-ntradbigmips)' > %tmipsn32.script
# RUN: ld.lld %tmipsn32.script -e _start %tmipsn32 -o %t4mipsn32
-# RUN: llvm-readobj --file-headers %t4mipsn32 | FileCheck --check-prefix=MIPSN32 %s
+# RUN: llvm-readobj --file-headers %t4mipsn32 \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPSN32 %s
# MIPSN32: ElfHeader {
# MIPSN32-NEXT: Ident {
# MIPSN32-NEXT: Magic: (7F 45 4C 46)
# MIPSN32-NEXT: Class: 32-bit (0x1)
# MIPSN32-NEXT: DataEncoding: BigEndian (0x2)
# MIPSN32-NEXT: FileVersion: 1
-# MIPSN32-NEXT: OS/ABI: SystemV (0x0)
+# MIPSN32-NEXT: OS/ABI: [[OSABI]]
# MIPSN32-NEXT: ABIVersion: 1
# MIPSN32-NEXT: Unused: (00 00 00 00 00 00 00)
# MIPSN32-NEXT: }
@@ -96,21 +107,25 @@
# RUN: llvm-mc -filetype=obj -triple=mips64el-unknown-linux-gnuabin32 %s -o %tmipsn32el
# RUN: ld.lld -m elf32ltsmipn32 -e _start %tmipsn32el -o %t2mipsn32el
-# RUN: llvm-readobj --file-headers %t2mipsn32el | FileCheck --check-prefix=MIPSN32EL %s
+# RUN: llvm-readobj --file-headers %t2mipsn32el \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPSN32EL %s
# RUN: ld.lld -melf32ltsmipn32 -e _start %tmipsn32el -o %t2mipsn32el
-# RUN: llvm-readobj --file-headers %t2mipsn32el | FileCheck --check-prefix=MIPSN32EL %s
+# RUN: llvm-readobj --file-headers %t2mipsn32el \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPSN32EL %s
# RUN: ld.lld %tmipsn32el -e _start -o %t3mipsn32el
-# RUN: llvm-readobj --file-headers %t3mipsn32el | FileCheck --check-prefix=MIPSN32EL %s
+# RUN: llvm-readobj --file-headers %t3mipsn32el \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPSN32EL %s
# RUN: echo 'OUTPUT_FORMAT(elf32-ntradlittlemips)' > %tmipsn32el.script
# RUN: ld.lld %tmipsn32el.script -e _start %tmipsn32el -o %t4mipsn32el
-# RUN: llvm-readobj --file-headers %t4mipsn32el | FileCheck --check-prefix=MIPSN32EL %s
+# RUN: llvm-readobj --file-headers %t4mipsn32el \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPSN32EL %s
# MIPSN32EL: ElfHeader {
# MIPSN32EL-NEXT: Ident {
# MIPSN32EL-NEXT: Magic: (7F 45 4C 46)
# MIPSN32EL-NEXT: Class: 32-bit (0x1)
# MIPSN32EL-NEXT: DataEncoding: LittleEndian (0x1)
# MIPSN32EL-NEXT: FileVersion: 1
-# MIPSN32EL-NEXT: OS/ABI: SystemV (0x0)
+# MIPSN32EL-NEXT: OS/ABI: [[OSABI]]
# MIPSN32EL-NEXT: ABIVersion: 1
# MIPSN32EL-NEXT: Unused: (00 00 00 00 00 00 00)
# MIPSN32EL-NEXT: }
@@ -129,19 +144,22 @@
# RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux -position-independent \
# RUN: %s -o %tmips64
# RUN: ld.lld -m elf64btsmip -e _start %tmips64 -o %t2mips64
-# RUN: llvm-readobj --file-headers %t2mips64 | FileCheck --check-prefix=MIPS64 %s
+# RUN: llvm-readobj --file-headers %t2mips64 \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPS64 %s
# RUN: ld.lld %tmips64 -e _start -o %t3mips64
-# RUN: llvm-readobj --file-headers %t3mips64 | FileCheck --check-prefix=MIPS64 %s
+# RUN: llvm-readobj --file-headers %t3mips64 \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPS64 %s
# RUN: echo 'OUTPUT_FORMAT(elf64-tradbigmips)' > %tmips64.script
# RUN: ld.lld %tmips64.script -e _start %tmips64 -o %t4mips64
-# RUN: llvm-readobj --file-headers %t4mips64 | FileCheck --check-prefix=MIPS64 %s
+# RUN: llvm-readobj --file-headers %t4mips64 \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPS64 %s
# MIPS64: ElfHeader {
# MIPS64-NEXT: Ident {
# MIPS64-NEXT: Magic: (7F 45 4C 46)
# MIPS64-NEXT: Class: 64-bit (0x2)
# MIPS64-NEXT: DataEncoding: BigEndian (0x2)
# MIPS64-NEXT: FileVersion: 1
-# MIPS64-NEXT: OS/ABI: SystemV (0x0)
+# MIPS64-NEXT: OS/ABI: [[OSABI]]
# MIPS64-NEXT: ABIVersion: 0
# MIPS64-NEXT: Unused: (00 00 00 00 00 00 00)
# MIPS64-NEXT: }
@@ -160,19 +178,22 @@
# RUN: llvm-mc -filetype=obj -triple=mips64el-unknown-linux \
# RUN: -position-independent %s -o %tmips64el
# RUN: ld.lld -m elf64ltsmip -e _start %tmips64el -o %t2mips64el
-# RUN: llvm-readobj --file-headers %t2mips64el | FileCheck --check-prefix=MIPS64EL %s
+# RUN: llvm-readobj --file-headers %t2mips64el \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPS64EL %s
# RUN: ld.lld %tmips64el -e _start -o %t3mips64el
-# RUN: llvm-readobj --file-headers %t3mips64el | FileCheck --check-prefix=MIPS64EL %s
+# RUN: llvm-readobj --file-headers %t3mips64el \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPS64EL %s
# RUN: echo 'OUTPUT_FORMAT(elf64-tradlittlemips)' > %tmips64el.script
# RUN: ld.lld %tmips64el.script -e _start %tmips64el -o %t4mips64el
-# RUN: llvm-readobj --file-headers %t4mips64el | FileCheck --check-prefix=MIPS64EL %s
+# RUN: llvm-readobj --file-headers %t4mips64el \
+# RUN: | FileCheck -DOSABI=SystemV --check-prefix=MIPS64EL %s
# MIPS64EL: ElfHeader {
# MIPS64EL-NEXT: Ident {
# MIPS64EL-NEXT: Magic: (7F 45 4C 46)
# MIPS64EL-NEXT: Class: 64-bit (0x2)
# MIPS64EL-NEXT: DataEncoding: LittleEndian (0x1)
# MIPS64EL-NEXT: FileVersion: 1
-# MIPS64EL-NEXT: OS/ABI: SystemV (0x0)
+# MIPS64EL-NEXT: OS/ABI: [[OSABI]]
# MIPS64EL-NEXT: ABIVersion: 0
# MIPS64EL-NEXT: Unused: (00 00 00 00 00 00 00)
# MIPS64EL-NEXT: }
More information about the llvm-commits
mailing list