aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorYunQiang Su <yunqiang.su@cipunited.com>2023-11-15 13:44:42 +0000
committerNick Clifton <nickc@redhat.com>2023-11-15 13:44:42 +0000
commit56172576da018d55fc03b25ba73e17cc6625dc36 (patch)
tree930de9c57948cf01c276f60bccfd5af6933032d0 /gas/testsuite
parent862776f26a59516467c98091994c3dac90383159 (diff)
downloadgdb-56172576da018d55fc03b25ba73e17cc6625dc36.zip
gdb-56172576da018d55fc03b25ba73e17cc6625dc36.tar.gz
gdb-56172576da018d55fc03b25ba73e17cc6625dc36.tar.bz2
GAS/MIPS: add "--defsym r6=" for default when it's r6
* testsuite/gas/mips/mips.exp (mips_arch_create): Add "--defsym r6=" to as_flags for r6 targets.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/mips/mips.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index dd52d5a..777ae65 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -163,6 +163,11 @@ proc mips_arch_create {arch gprsize extends props as_flags objdump_flags
set archdata(as_flags) ""
set archdata(objdump_flags) ""
+ if { [string compare $arch mips32r6] == 0
+ || [string compare $arch mips64r6] == 0} {
+ set archdata(as_flags) "--defsym r6="
+ }
+
set mips_arches(default) [array get archdata]
break
}