aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunQiang Su <yunqiang.su@cipunited.com>2023-11-10 16:00:06 +0000
committerNick Clifton <nickc@redhat.com>2023-11-10 16:00:06 +0000
commit5efb1045972d8bdb317a7c83ba9d9f016aceb023 (patch)
tree909e2b28f66e1761ad0a3029684899a1ab25eb07
parentb05efa39b47995db08c5537e4504271c8727702a (diff)
downloadgdb-5efb1045972d8bdb317a7c83ba9d9f016aceb023.zip
gdb-5efb1045972d8bdb317a7c83ba9d9f016aceb023.tar.gz
gdb-5efb1045972d8bdb317a7c83ba9d9f016aceb023.tar.bz2
GAS/MIPS: Fix testcase module-defer-warn2 for r2+ triples
-rw-r--r--gas/testsuite/gas/mips/mips.exp3
-rw-r--r--gas/testsuite/gas/mips/module-defer-warn2-r2.d5
-rw-r--r--gas/testsuite/gas/mips/module-defer-warn2-r2.l2
-rw-r--r--gas/testsuite/gas/mips/module-defer-warn2.d5
4 files changed, 14 insertions, 1 deletions
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index 96f7c55..86753e5 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -2059,7 +2059,8 @@ if { [istarget mips*-*-vxworks*] } {
run_dump_test "module-override"
run_dump_test "module-defer-warn1"
- run_list_test "module-defer-warn2" "-32"
+ run_dump_test "module-defer-warn2"
+ run_dump_test "module-defer-warn2-r2"
foreach testopt [list -mfp32 -mfpxx -mfp64 "-mfp64-noodd" \
-msingle-float -msoft-float] {
diff --git a/gas/testsuite/gas/mips/module-defer-warn2-r2.d b/gas/testsuite/gas/mips/module-defer-warn2-r2.d
new file mode 100644
index 0000000..ddaa2a9
--- /dev/null
+++ b/gas/testsuite/gas/mips/module-defer-warn2-r2.d
@@ -0,0 +1,5 @@
+#name: .module deferred warnings 2 (R2+)
+#source: module-defer-warn2.s
+#as: -32
+#noskip: mipsisa32r?* mipsisa64r?*
+#error_output: module-defer-warn2-r2.l
diff --git a/gas/testsuite/gas/mips/module-defer-warn2-r2.l b/gas/testsuite/gas/mips/module-defer-warn2-r2.l
new file mode 100644
index 0000000..5f22ef4
--- /dev/null
+++ b/gas/testsuite/gas/mips/module-defer-warn2-r2.l
@@ -0,0 +1,2 @@
+.*: Assembler messages:
+.*:2: Error: `gp=64' used with a 32-bit.*
diff --git a/gas/testsuite/gas/mips/module-defer-warn2.d b/gas/testsuite/gas/mips/module-defer-warn2.d
new file mode 100644
index 0000000..5c2d1d7
--- /dev/null
+++ b/gas/testsuite/gas/mips/module-defer-warn2.d
@@ -0,0 +1,5 @@
+#name: .module deferred warnings 2 (pre-R2)
+#source: module-defer-warn2.s
+#as: -32
+#skip: mipsisa32r?* mipsisa64r?*
+#error_output: module-defer-warn2.l