This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed] MIPS/GAS/testsuite: Convert branch local list tests to dump tests
- From: "Maciej W. Rozycki" <macro at imgtec dot com>
- To: <binutils at sourceware dot org>
- Date: Mon, 30 Jan 2017 17:25:01 +0000
- Subject: [committed] MIPS/GAS/testsuite: Convert branch local list tests to dump tests
- Authentication-results: sourceware.org; auth=none
gas/
* testsuite/gas/mips/branch-local-2.d: New test.
* testsuite/gas/mips/branch-local-3.d: New test.
* testsuite/gas/mips/branch-local-n32-2.d: New test.
* testsuite/gas/mips/branch-local-n32-3.d: New test.
* testsuite/gas/mips/branch-local-n64-2.d: New test.
* testsuite/gas/mips/branch-local-n64-3.d: New test.
* testsuite/gas/mips/mips.exp: Fold corresponding list tests
into the new tests.
---
No functional change. Committed to master and backported to 2.28 (for
the next change).
Maciej
binutils-mips-gas-branch-local-test-dump.diff
Index: binutils/gas/testsuite/gas/mips/branch-local-2.d
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/branch-local-2.d 2017-01-29 23:04:05.395260603 +0000
@@ -0,0 +1,3 @@
+#name: MIPS branch local symbol relocation 2
+#as: -32
+#error-output: branch-local-2.l
Index: binutils/gas/testsuite/gas/mips/branch-local-3.d
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/branch-local-3.d 2017-01-29 23:05:30.054806961 +0000
@@ -0,0 +1,3 @@
+#name: MIPS branch local symbol relocation 3
+#as: -32
+#error-output: branch-local-3.l
Index: binutils/gas/testsuite/gas/mips/branch-local-n32-2.d
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/branch-local-n32-2.d 2017-01-29 23:06:37.127515217 +0000
@@ -0,0 +1,3 @@
+#name: MIPS branch local symbol relocation 2 (n32)
+#as: -n32 -march=from-abi
+#error-output: branch-local-n32-2.l
Index: binutils/gas/testsuite/gas/mips/branch-local-n32-3.d
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/branch-local-n32-3.d 2017-01-29 23:07:50.852784968 +0000
@@ -0,0 +1,3 @@
+#name: MIPS branch local symbol relocation 3 (n32)
+#as: -n32 -march=from-abi
+#error-output: branch-local-n32-3.l
Index: binutils/gas/testsuite/gas/mips/branch-local-n64-2.d
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/branch-local-n64-2.d 2017-01-29 23:08:22.692514057 +0000
@@ -0,0 +1,3 @@
+#name: MIPS branch local symbol relocation 2 (n64)
+#as: -64 -march=from-abi
+#error-output: branch-local-n64-2.l
Index: binutils/gas/testsuite/gas/mips/branch-local-n64-3.d
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/branch-local-n64-3.d 2017-01-29 23:08:41.233194597 +0000
@@ -0,0 +1,3 @@
+#name: MIPS branch local symbol relocation 3 (n64)
+#as: -64 -march=from-abi
+#error-output: branch-local-n64-3.l
Index: binutils/gas/testsuite/gas/mips/mips.exp
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/mips.exp 2017-01-29 23:01:54.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/mips.exp 2017-01-29 23:08:56.340789700 +0000
@@ -625,23 +625,17 @@ if { [istarget mips*-*-vxworks*] } {
run_dump_test "branch-weak-6"
run_dump_test "branch-weak-7"
run_dump_test "branch-local-1"
- run_list_test "branch-local-2" "-32" \
- "MIPS branch local symbol relocation 2"
- run_list_test "branch-local-3" "-32" \
- "MIPS branch local symbol relocation 3"
+ run_dump_test "branch-local-2"
+ run_dump_test "branch-local-3"
run_dump_test "branch-local-4"
if $has_newabi {
run_dump_test "branch-local-n32-1"
- run_list_test "branch-local-n32-2" "-n32 -march=from-abi" \
- "MIPS branch local symbol relocation 2 (n32)"
- run_list_test "branch-local-n32-3" "-n32 -march=from-abi" \
- "MIPS branch local symbol relocation 3 (n32)"
+ run_dump_test "branch-local-n32-2"
+ run_dump_test "branch-local-n32-3"
run_dump_test "branch-local-n32-4"
run_dump_test "branch-local-n64-1"
- run_list_test "branch-local-n64-2" "-64 -march=from-abi" \
- "MIPS branch local symbol relocation 2 (n64)"
- run_list_test "branch-local-n64-3" "-64 -march=from-abi" \
- "MIPS branch local symbol relocation 3 (n64)"
+ run_dump_test "branch-local-n64-2"
+ run_dump_test "branch-local-n64-3"
run_dump_test "branch-local-n64-4"
}
run_dump_test "branch-addend"