This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed] MIPS/GAS/testsuite: Convert ISA override list tests to dump tests
- From: "Maciej W. Rozycki" <macro at imgtec dot com>
- To: <binutils at sourceware dot org>
- Date: Wed, 10 May 2017 20:18:01 +0100
- Subject: [committed] MIPS/GAS/testsuite: Convert ISA override list tests to dump tests
- Authentication-results: sourceware.org; auth=none
And remove the zillion duplicate sources. Also `mips1@isa-override-2.l'
is the same as `r3000@isa-override-2.l', so remove the latter too, now
that `r3000@isa-override-2.d' can name a file to match stderr output
against.
gas/
* testsuite/gas/mips/isa-override-2.d: New test.
* testsuite/gas/mips/mips1@isa-override-2.d: New test.
* testsuite/gas/mips/r3000@isa-override-2.d: New test.
* testsuite/gas/mips/r3900@isa-override-2.d: New test.
* testsuite/gas/mips/mips2@isa-override-2.d: New test.
* testsuite/gas/mips/mips32@isa-override-2.d: New test.
* testsuite/gas/mips/mips32r2@isa-override-2.d: New test.
* testsuite/gas/mips/mips32r3@isa-override-2.d: New test.
* testsuite/gas/mips/mips32r5@isa-override-2.d: New test.
* testsuite/gas/mips/mips32r6@isa-override-2.d: New test.
* testsuite/gas/mips/octeon3@isa-override-2.d: New test.
* testsuite/gas/mips/r3000@isa-override-2.l: Remove list test.
* testsuite/gas/mips/mips1@isa-override-2.s: Remove test source.
* testsuite/gas/mips/r3000@isa-override-2.s: Remove test source.
* testsuite/gas/mips/r3900@isa-override-2.s: Remove test source.
* testsuite/gas/mips/mips2@isa-override-2.s: Remove test source.
* testsuite/gas/mips/mips32@isa-override-2.s: Remove test
source.
* testsuite/gas/mips/mips32r2@isa-override-2.s: Remove test
source.
* testsuite/gas/mips/mips32r3@isa-override-2.s: Remove test
source.
* testsuite/gas/mips/mips32r5@isa-override-2.s: Remove test
source.
* testsuite/gas/mips/mips32r6@isa-override-2.s: Remove test
source.
* testsuite/gas/mips/octeon3@isa-override-2.s: Remove test
source.
* gas/testsuite/gas/mips/mips.exp: Fold corresponding list tests
into the new tests.
---
binutils-mips-gas-test-isa-override-2-dump.diff
Index: binutils/gas/testsuite/gas/mips/isa-override-2.d
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/isa-override-2.d 2017-05-10 19:08:07.280988011 +0100
@@ -0,0 +1,4 @@
+#name: MIPS ISA override code generation 2
+#as: -32
+#source: isa-override-2.s
+#error-output: isa-override-2.l
Index: binutils/gas/testsuite/gas/mips/mips.exp
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/mips.exp 2017-05-10 18:54:31.500566619 +0100
+++ binutils/gas/testsuite/gas/mips/mips.exp 2017-05-10 19:08:07.292085644 +0100
@@ -1875,7 +1875,7 @@ if { [istarget mips*-*-vxworks*] } {
run_dump_test "option-pic-relax-5"
run_dump_test_arches "isa-override-1" "" [mips_arch_list_matching mips1]
- run_list_test_arches "isa-override-2" "-32" [mips_arch_list_matching mips1]
+ run_dump_test_arches "isa-override-2" "" [mips_arch_list_matching mips1]
run_dump_test "debug-label-end-1"
run_dump_test "debug-label-end-2"
Index: binutils/gas/testsuite/gas/mips/mips1@isa-override-2.d
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/mips1@isa-override-2.d 2017-05-10 19:08:07.311573954 +0100
@@ -0,0 +1,4 @@
+#name: MIPS ISA override code generation 2
+#as: -32
+#source: isa-override-2.s
+#error-output: mips1@isa-override-2.l
Index: binutils/gas/testsuite/gas/mips/mips1@isa-override-2.s
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/mips1@isa-override-2.s 2017-05-10 18:54:31.652118012 +0100
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,18 +0,0 @@
- .text
- .globl foo
- .ent foo
-foo:
- dli $2, 0x9000000080000000
- .set push
- .set mips3
- dli $2, 0x9000000080000000
- .set mips0
- dli $2, 0x9000000080000000
- .set mips3
- .set pop
- dli $2, 0x9000000080000000
- .end foo
-
-# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
- .align 4, 0
- .space 16
Index: binutils/gas/testsuite/gas/mips/mips2@isa-override-2.d
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/mips2@isa-override-2.d 2017-05-10 19:08:07.335805649 +0100
@@ -0,0 +1,4 @@
+#name: MIPS ISA override code generation 2
+#as: -32
+#source: isa-override-2.s
+#error-output: mips2@isa-override-2.l
Index: binutils/gas/testsuite/gas/mips/mips2@isa-override-2.s
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/mips2@isa-override-2.s 2017-05-10 18:54:31.857306601 +0100
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,18 +0,0 @@
- .text
- .globl foo
- .ent foo
-foo:
- dli $2, 0x9000000080000000
- .set push
- .set mips3
- dli $2, 0x9000000080000000
- .set mips0
- dli $2, 0x9000000080000000
- .set mips3
- .set pop
- dli $2, 0x9000000080000000
- .end foo
-
-# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
- .align 4, 0
- .space 16
Index: binutils/gas/testsuite/gas/mips/mips32@isa-override-2.d
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/mips32@isa-override-2.d 2017-05-10 19:08:07.357204965 +0100
@@ -0,0 +1,4 @@
+#name: MIPS ISA override code generation 2
+#as: -32
+#source: isa-override-2.s
+#error-output: mips32@isa-override-2.l
Index: binutils/gas/testsuite/gas/mips/mips32@isa-override-2.s
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/mips32@isa-override-2.s 2017-05-10 18:54:31.934121799 +0100
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,18 +0,0 @@
- .text
- .globl foo
- .ent foo
-foo:
- dli $2, 0x9000000080000000
- .set push
- .set mips3
- dli $2, 0x9000000080000000
- .set mips0
- dli $2, 0x9000000080000000
- .set mips3
- .set pop
- dli $2, 0x9000000080000000
- .end foo
-
-# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
- .align 4, 0
- .space 16
Index: binutils/gas/testsuite/gas/mips/mips32r2@isa-override-2.d
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/mips32r2@isa-override-2.d 2017-05-10 19:08:07.388408516 +0100
@@ -0,0 +1,4 @@
+#name: MIPS ISA override code generation 2
+#as: -32
+#source: isa-override-2.s
+#error-output: mips32r2@isa-override-2.l
Index: binutils/gas/testsuite/gas/mips/mips32r2@isa-override-2.s
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/mips32r2@isa-override-2.s 2017-05-10 18:54:31.961305103 +0100
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,18 +0,0 @@
- .text
- .globl foo
- .ent foo
-foo:
- dli $2, 0x9000000080000000
- .set push
- .set mips3
- dli $2, 0x9000000080000000
- .set mips0
- dli $2, 0x9000000080000000
- .set mips3
- .set pop
- dli $2, 0x9000000080000000
- .end foo
-
-# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
- .align 4, 0
- .space 16
Index: binutils/gas/testsuite/gas/mips/mips32r3@isa-override-2.d
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/mips32r3@isa-override-2.d 2017-05-10 19:08:07.413065145 +0100
@@ -0,0 +1,4 @@
+#name: MIPS ISA override code generation 2
+#as: -32
+#source: isa-override-2.s
+#error-output: mips32r3@isa-override-2.l
Index: binutils/gas/testsuite/gas/mips/mips32r3@isa-override-2.s
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/mips32r3@isa-override-2.s 2017-05-10 18:54:31.992508180 +0100
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,18 +0,0 @@
- .text
- .globl foo
- .ent foo
-foo:
- dli $2, 0x9000000080000000
- .set push
- .set mips3
- dli $2, 0x9000000080000000
- .set mips0
- dli $2, 0x9000000080000000
- .set mips3
- .set pop
- dli $2, 0x9000000080000000
- .end foo
-
-# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
- .align 4, 0
- .space 16
Index: binutils/gas/testsuite/gas/mips/mips32r5@isa-override-2.d
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/mips32r5@isa-override-2.d 2017-05-10 19:08:07.440468314 +0100
@@ -0,0 +1,4 @@
+#name: MIPS ISA override code generation 2
+#as: -32
+#source: isa-override-2.s
+#error-output: mips32r5@isa-override-2.l
Index: binutils/gas/testsuite/gas/mips/mips32r5@isa-override-2.s
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/mips32r5@isa-override-2.s 2017-05-10 18:54:32.035789022 +0100
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,18 +0,0 @@
- .text
- .globl foo
- .ent foo
-foo:
- dli $2, 0x9000000080000000
- .set push
- .set mips3
- dli $2, 0x9000000080000000
- .set mips0
- dli $2, 0x9000000080000000
- .set mips3
- .set pop
- dli $2, 0x9000000080000000
- .end foo
-
-# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
- .align 4, 0
- .space 16
Index: binutils/gas/testsuite/gas/mips/mips32r6@isa-override-2.d
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/mips32r6@isa-override-2.d 2017-05-10 19:08:07.467065754 +0100
@@ -0,0 +1,4 @@
+#name: MIPS ISA override code generation 2
+#as: -32
+#source: isa-override-2.s
+#error-output: mips32r6@isa-override-2.l
Index: binutils/gas/testsuite/gas/mips/mips32r6@isa-override-2.s
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/mips32r6@isa-override-2.s 2017-05-10 18:54:32.097593935 +0100
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,18 +0,0 @@
- .text
- .globl foo
- .ent foo
-foo:
- dli $2, 0x9000000080000000
- .set push
- .set mips3
- dli $2, 0x9000000080000000
- .set mips0
- dli $2, 0x9000000080000000
- .set mips3
- .set pop
- dli $2, 0x9000000080000000
- .end foo
-
-# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
- .align 4, 0
- .space 16
Index: binutils/gas/testsuite/gas/mips/octeon3@isa-override-2.d
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/octeon3@isa-override-2.d 2017-05-10 19:08:07.489452912 +0100
@@ -0,0 +1,4 @@
+#name: MIPS ISA override code generation 2
+#as: -32
+#source: isa-override-2.s
+#error-output: octeon3@isa-override-2.l
Index: binutils/gas/testsuite/gas/mips/octeon3@isa-override-2.s
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/octeon3@isa-override-2.s 2017-05-10 18:54:32.121965537 +0100
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,18 +0,0 @@
- .text
- .globl foo
- .ent foo
-foo:
- dli $2, 0x9000000080000000
- .set push
- .set mips3
- dli $2, 0x9000000080000000
- .set mips0
- dli $2, 0x9000000080000000
- .set mips3
- .set pop
- dli $2, 0x9000000080000000
- .end foo
-
-# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
- .align 4, 0
- .space 16
Index: binutils/gas/testsuite/gas/mips/r3000@isa-override-2.d
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/r3000@isa-override-2.d 2017-05-10 19:08:07.526286166 +0100
@@ -0,0 +1,4 @@
+#name: MIPS ISA override code generation 2
+#as: -32
+#source: isa-override-2.s
+#error-output: mips1@isa-override-2.l
Index: binutils/gas/testsuite/gas/mips/r3000@isa-override-2.l
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/r3000@isa-override-2.l 2017-05-06 01:47:36.000000000 +0100
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,4 +0,0 @@
-.*: Assembler messages:
-.*:5: Error: opcode not supported on this processor: mips1 \(mips1\) `dli \$2,0x9000000080000000'
-.*:10: Error: opcode not supported on this processor: mips1 \(mips1\) `dli \$2,0x9000000080000000'
-.*:13: Error: opcode not supported on this processor: mips1 \(mips1\) `dli \$2,0x9000000080000000'
Index: binutils/gas/testsuite/gas/mips/r3000@isa-override-2.s
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/r3000@isa-override-2.s 2017-05-10 18:54:32.149366417 +0100
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,18 +0,0 @@
- .text
- .globl foo
- .ent foo
-foo:
- dli $2, 0x9000000080000000
- .set push
- .set mips3
- dli $2, 0x9000000080000000
- .set mips0
- dli $2, 0x9000000080000000
- .set mips3
- .set pop
- dli $2, 0x9000000080000000
- .end foo
-
-# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
- .align 4, 0
- .space 16
Index: binutils/gas/testsuite/gas/mips/r3900@isa-override-2.d
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/r3900@isa-override-2.d 2017-05-10 19:08:07.547625460 +0100
@@ -0,0 +1,4 @@
+#name: MIPS ISA override code generation 2
+#as: -32
+#source: isa-override-2.s
+#error-output: r3900@isa-override-2.l
Index: binutils/gas/testsuite/gas/mips/r3900@isa-override-2.s
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/r3900@isa-override-2.s 2017-05-10 18:54:32.175936150 +0100
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,18 +0,0 @@
- .text
- .globl foo
- .ent foo
-foo:
- dli $2, 0x9000000080000000
- .set push
- .set mips3
- dli $2, 0x9000000080000000
- .set mips0
- dli $2, 0x9000000080000000
- .set mips3
- .set pop
- dli $2, 0x9000000080000000
- .end foo
-
-# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
- .align 4, 0
- .space 16