From 5efb1045972d8bdb317a7c83ba9d9f016aceb023 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 10 Nov 2023 16:00:06 +0000 Subject: [PATCH] GAS/MIPS: Fix testcase module-defer-warn2 for r2+ triples --- gas/testsuite/gas/mips/mips.exp | 3 ++- gas/testsuite/gas/mips/module-defer-warn2-r2.d | 5 +++++ gas/testsuite/gas/mips/module-defer-warn2-r2.l | 2 ++ gas/testsuite/gas/mips/module-defer-warn2.d | 5 +++++ 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 gas/testsuite/gas/mips/module-defer-warn2-r2.d create mode 100644 gas/testsuite/gas/mips/module-defer-warn2-r2.l create mode 100644 gas/testsuite/gas/mips/module-defer-warn2.d diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index 96f7c554eeb..86753e57b79 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 00000000000..ddaa2a9508e --- /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 00000000000..5f22ef4d413 --- /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 00000000000..5c2d1d7fa8e --- /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 -- 2.30.2