[committed] MIPS/GAS/testsuite: Use a helper variable for IRIX/non-IRIX test selection

Message ID alpine.LFD.2.21.2007221104100.234068@eddie.linux-mips.org
State New
Headers show
Series
  • [committed] MIPS/GAS/testsuite: Use a helper variable for IRIX/non-IRIX test selection
Related show

Commit Message

Maciej W. Rozycki July 22, 2020, 11:47 a.m.
Define a helper variable for IRIX/non-IRIX test selection and use it 
with the PR 14798 test case.

	gas/
	* testsuite/gas/mips/mips.exp: Use a helper variable for 
	IRIX/non-IRIX test selection.
---
 gas/testsuite/gas/mips/mips.exp |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

binutils-mips-gas-test-imips.diff

Patch

Index: binutils/gas/testsuite/gas/mips/mips.exp
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/mips.exp
+++ binutils/gas/testsuite/gas/mips/mips.exp
@@ -575,6 +575,7 @@  if { [istarget mips*-*-vxworks*] } {
     } {
 	set el ""
     }
+    set imips [expr [istarget *-*-irix*] ? {"-irix"} : {""}]
 
     run_dump_test_arches "dot-1"	[mips_arch_list_matching mips1]
     run_dump_test_arches "abs"		[mips_arch_list_matching mips1]
@@ -2088,10 +2089,6 @@  if { [istarget mips*-*-vxworks*] } {
     run_dump_test_arches "llpscp-32" [mips_arch_list_matching mips32r6]
     run_dump_test_arch "llpscp-64" "" mips64r6
 
-    if [istarget *-*-irix*] {
-	run_dump_test "pr14798-irix"
-    } else {
-	run_dump_test "pr14798"
-    }
+    run_dump_test "pr14798${imips}"
     run_dump_test "insn-isa-mode"
 }