GAS/MIPS: Fix testcase module-defer-warn2 for r2+ triples
authorYunQiang Su <yunqiang.su@cipunited.com>
Fri, 10 Nov 2023 16:00:06 +0000 (16:00 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 10 Nov 2023 16:00:06 +0000 (16:00 +0000)
gas/testsuite/gas/mips/mips.exp
gas/testsuite/gas/mips/module-defer-warn2-r2.d [new file with mode: 0644]
gas/testsuite/gas/mips/module-defer-warn2-r2.l [new file with mode: 0644]
gas/testsuite/gas/mips/module-defer-warn2.d [new file with mode: 0644]

index 96f7c554eeb20cf86acb6580eddebf03ccf9ef89..86753e57b79c80dc0894812eaeb07cacb03c6f8f 100644 (file)
@@ -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 (file)
index 0000000..ddaa2a9
--- /dev/null
@@ -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 (file)
index 0000000..5f22ef4
--- /dev/null
@@ -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 (file)
index 0000000..5c2d1d7
--- /dev/null
@@ -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