This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb/binutils-2_28-branch] MIPS/GAS/testsuite: Convert branch local list tests to dump tests
- From: Maciej W.Rozycki <macro at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 30 Jan 2017 17:24:23 -0000
- Subject: [binutils-gdb/binutils-2_28-branch] MIPS/GAS/testsuite: Convert branch local list tests to dump tests
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=47003d3a4069d6a0ecc769cbb2ab1e6fd12b73bf
commit 47003d3a4069d6a0ecc769cbb2ab1e6fd12b73bf
Author: Maciej W. Rozycki <macro@imgtec.com>
Date: Mon Jan 30 17:10:31 2017 +0000
MIPS/GAS/testsuite: Convert branch local list tests to dump tests
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.
(cherry picked from commit 7795a8f8bdde2fa5c0e0639b92280314b32ec78d)
Diff:
---
gas/ChangeLog | 11 +++++++++++
gas/testsuite/gas/mips/branch-local-2.d | 3 +++
gas/testsuite/gas/mips/branch-local-3.d | 3 +++
gas/testsuite/gas/mips/branch-local-n32-2.d | 3 +++
gas/testsuite/gas/mips/branch-local-n32-3.d | 3 +++
gas/testsuite/gas/mips/branch-local-n64-2.d | 3 +++
gas/testsuite/gas/mips/branch-local-n64-3.d | 3 +++
gas/testsuite/gas/mips/mips.exp | 18 ++++++------------
8 files changed, 35 insertions(+), 12 deletions(-)
diff --git a/gas/ChangeLog b/gas/ChangeLog
index bc406af..c693e2f 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,14 @@
+2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
+
+ * 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.
+
2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
PR gas/20649
diff --git a/gas/testsuite/gas/mips/branch-local-2.d b/gas/testsuite/gas/mips/branch-local-2.d
new file mode 100644
index 0000000..46b58b9
--- /dev/null
+++ b/gas/testsuite/gas/mips/branch-local-2.d
@@ -0,0 +1,3 @@
+#name: MIPS branch local symbol relocation 2
+#as: -32
+#error-output: branch-local-2.l
diff --git a/gas/testsuite/gas/mips/branch-local-3.d b/gas/testsuite/gas/mips/branch-local-3.d
new file mode 100644
index 0000000..f750e33
--- /dev/null
+++ b/gas/testsuite/gas/mips/branch-local-3.d
@@ -0,0 +1,3 @@
+#name: MIPS branch local symbol relocation 3
+#as: -32
+#error-output: branch-local-3.l
diff --git a/gas/testsuite/gas/mips/branch-local-n32-2.d b/gas/testsuite/gas/mips/branch-local-n32-2.d
new file mode 100644
index 0000000..53b76f4
--- /dev/null
+++ b/gas/testsuite/gas/mips/branch-local-n32-2.d
@@ -0,0 +1,3 @@
+#name: MIPS branch local symbol relocation 2 (n32)
+#as: -n32 -march=from-abi
+#error-output: branch-local-n32-2.l
diff --git a/gas/testsuite/gas/mips/branch-local-n32-3.d b/gas/testsuite/gas/mips/branch-local-n32-3.d
new file mode 100644
index 0000000..8ef63ef
--- /dev/null
+++ b/gas/testsuite/gas/mips/branch-local-n32-3.d
@@ -0,0 +1,3 @@
+#name: MIPS branch local symbol relocation 3 (n32)
+#as: -n32 -march=from-abi
+#error-output: branch-local-n32-3.l
diff --git a/gas/testsuite/gas/mips/branch-local-n64-2.d b/gas/testsuite/gas/mips/branch-local-n64-2.d
new file mode 100644
index 0000000..b14b1bd
--- /dev/null
+++ b/gas/testsuite/gas/mips/branch-local-n64-2.d
@@ -0,0 +1,3 @@
+#name: MIPS branch local symbol relocation 2 (n64)
+#as: -64 -march=from-abi
+#error-output: branch-local-n64-2.l
diff --git a/gas/testsuite/gas/mips/branch-local-n64-3.d b/gas/testsuite/gas/mips/branch-local-n64-3.d
new file mode 100644
index 0000000..e12f153
--- /dev/null
+++ b/gas/testsuite/gas/mips/branch-local-n64-3.d
@@ -0,0 +1,3 @@
+#name: MIPS branch local symbol relocation 3 (n64)
+#as: -64 -march=from-abi
+#error-output: branch-local-n64-3.l
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index 106bd7b..4580fbf 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -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"