This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed 3/4] MIPS/GAS/testsuite: Run SAVE/RESTORE tests across all MIPS16e architectures
- From: "Maciej W. Rozycki" <macro at imgtec dot com>
- To: <binutils at sourceware dot org>
- Date: Tue, 27 Jun 2017 04:29:02 +0100
- Subject: [committed 3/4] MIPS/GAS/testsuite: Run SAVE/RESTORE tests across all MIPS16e architectures
- Authentication-results: sourceware.org; auth=none
- References: <alpine.DEB.2.00.1706270335430.31404@tp.orcam.me.uk>
gas/
* testsuite/gas/mips/mips16e-save.d: Remove `-mmips:isa32
-mmips:16' from `objdump' flags and `-march=mips32 -mips16' from
`as' flags.
* testsuite/gas/mips/mips16e-save-err.d: Remove `-march=mips32'
from `as' flags.
* testsuite/gas/mips/mips16e-save.s: Remove the `.set mips16'
pseudo-op.
* testsuite/gas/mips/mips16e-save-err.s: Likewise.
* testsuite/gas/mips/mips.exp: Run SAVE/RESTORE tests across all
MIPS16e architectures.
---
binutils-mips16-gas-test-save-restore-arches.diff
Index: binutils/gas/testsuite/gas/mips/mips.exp
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/mips.exp 2017-06-20 01:29:16.686175643 +0100
+++ binutils/gas/testsuite/gas/mips/mips.exp 2017-06-20 02:29:34.928247821 +0100
@@ -1383,8 +1383,9 @@ if { [istarget mips*-*-vxworks*] } {
run_dump_test "mips16-stabs"
run_dump_test "mips16e-jrc"
- run_dump_test "mips16e-save"
- run_dump_test "mips16e-save-err"
+ run_dump_test_arches "mips16e-save" [mips_arch_list_matching mips16e-32]
+ run_dump_test_arches "mips16e-save-err" \
+ [mips_arch_list_matching mips16e-32]
run_dump_test "mips16e2-lui"
run_dump_test "mips16-intermix"
Index: binutils/gas/testsuite/gas/mips/mips16e-save-err.d
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/mips16e-save-err.d 2017-06-20 01:29:16.691248498 +0100
+++ binutils/gas/testsuite/gas/mips/mips16e-save-err.d 2017-06-20 02:29:34.932276206 +0100
@@ -1,3 +1,3 @@
#name: MIPS16e SAVE/RESTORE errors
-#as: -march=mips32 -32
+#as: -32
#error-output: mips16e-save-err.l
Index: binutils/gas/testsuite/gas/mips/mips16e-save-err.s
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/mips16e-save-err.s 2017-06-20 01:28:37.000000000 +0100
+++ binutils/gas/testsuite/gas/mips/mips16e-save-err.s 2017-06-20 02:29:34.949405121 +0100
@@ -1,4 +1,4 @@
- .set mips16
+
save $3,100 # error
save $4 # error
save $4,100,200 # error
Index: binutils/gas/testsuite/gas/mips/mips16e-save.d
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/mips16e-save.d 2017-06-20 01:28:36.000000000 +0100
+++ binutils/gas/testsuite/gas/mips/mips16e-save.d 2017-06-20 02:29:35.190951114 +0100
@@ -1,5 +1,5 @@
-#objdump: -dr -mmips:isa32 -mmips:16
-#as: -march=mips32 -mips16 -32
+#objdump: -dr
+#as: -32
#name: MIPS16e SAVE/RESTORE
.*: +file format .*mips.*
Index: binutils/gas/testsuite/gas/mips/mips16e-save.s
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/mips16e-save.s 2017-06-20 01:28:37.000000000 +0100
+++ binutils/gas/testsuite/gas/mips/mips16e-save.s 2017-06-20 02:29:52.681186841 +0100
@@ -1,6 +1,5 @@
# Test the generation of the mips16e save instruction
- .set mips16
.text
func:
# Un-extended version