summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/mips/mips.exp
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2010-07-05 23:57:27 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2010-07-05 23:57:27 +0000
commit75043e43f1caf215dddba6d6c953cddb92c05477 (patch)
tree3328be2b6253e3c337b3e1fb83a0fb6769399c9b /gas/testsuite/gas/mips/mips.exp
parent0abaed75f09640d70673e72bb7826d14ffcedb91 (diff)
downloadbinutils-redhat-75043e43f1caf215dddba6d6c953cddb92c05477.tar.gz
* gas/mips/mips.exp (run_dump_test_arch): Check for the presence
of an architecture-specific test first and use it if found, before falling back to the generic one.
Diffstat (limited to 'gas/testsuite/gas/mips/mips.exp')
-rw-r--r--gas/testsuite/gas/mips/mips.exp7
1 files changed, 6 insertions, 1 deletions
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index f14c6ffea4..842cfbf2e2 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -271,7 +271,12 @@ proc mips_arch_list_matching {args} {
# Invoke "run_dump_test" for test NAME, with extra assembler and
# disassembler flags to test architecture ARCH.
proc run_dump_test_arch { name arch } {
- global subdir
+ global subdir srcdir
+
+ set archname "${arch}@${name}"
+ if { [file exists "$srcdir/$subdir/${archname}.d"] } {
+ set name $archname
+ }
if [catch {run_dump_test $name \
"{name {([mips_arch_displayname $arch])}}