aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-02-12 11:41:16 +1030
committerAlan Modra <amodra@gmail.com>2021-02-12 18:54:19 +1030
commit3c1d41015b700c1eca3bb23f52440fa1b1328d9f (patch)
tree7d7ea00ae52586c0cdbecc6beb4f11d43ed0412e /gas
parent528a4f87c60a239b015847f69a957b6910ab3f22 (diff)
downloadgdb-3c1d41015b700c1eca3bb23f52440fa1b1328d9f.zip
gdb-3c1d41015b700c1eca3bb23f52440fa1b1328d9f.tar.gz
gdb-3c1d41015b700c1eca3bb23f52440fa1b1328d9f.tar.bz2
gas testsuite: adjust recently added tests for hppa
Some hppa gas targets treat anything starting in the first column as a label, so directives can't start there. Also, binutils_assemble and run_dump_test cleverly edit test source to suit the hppa .comm directive which has a different syntax to most targets. The editing means we can't match source file names in dumps. Finally, hppa gas complains if instructions are emitted without a ".text" or similar directive. * testsuite/gas/all/pr27381.err: Don't match source file name. * testsuite/gas/all/pr27381.s: Don't start directive in first column. * testsuite/gas/all/pr27384.err: Don't match source file name. Adjust line number. * testsuite/gas/all/pr27384.s: Add ".text" directive. * testsuite/gas/elf/pr27355.err: Don't match source file name.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog9
-rw-r--r--gas/testsuite/gas/all/pr27381.err4
-rw-r--r--gas/testsuite/gas/all/pr27381.s2
-rw-r--r--gas/testsuite/gas/all/pr27384.err6
-rw-r--r--gas/testsuite/gas/all/pr27384.s2
-rw-r--r--gas/testsuite/gas/elf/pr27355.err10
6 files changed, 21 insertions, 12 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index e640fec..6e70129 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,12 @@
+2021-02-12 Alan Modra <amodra@gmail.com>
+
+ * testsuite/gas/all/pr27381.err: Don't match source file name.
+ * testsuite/gas/all/pr27381.s: Don't start directive in first column.
+ * testsuite/gas/all/pr27384.err: Don't match source file name.
+ Adjust line number.
+ * testsuite/gas/all/pr27384.s: Add ".text" directive.
+ * testsuite/gas/elf/pr27355.err: Don't match source file name.
+
2021-02-11 Alan Modra <amodra@gmail.com>
* NEWS: Mention arm-symbianelf removal.
diff --git a/gas/testsuite/gas/all/pr27381.err b/gas/testsuite/gas/all/pr27381.err
index f414210..493180d 100644
--- a/gas/testsuite/gas/all/pr27381.err
+++ b/gas/testsuite/gas/all/pr27381.err
@@ -1,2 +1,2 @@
-.*pr27381.s: Assembler messages:
-.*pr27381.s:1: Error: unable to include `/etc/'
+.*: Assembler messages:
+.*:1: Error: unable to include `/etc/'
diff --git a/gas/testsuite/gas/all/pr27381.s b/gas/testsuite/gas/all/pr27381.s
index b75523f..949b624 100644
--- a/gas/testsuite/gas/all/pr27381.s
+++ b/gas/testsuite/gas/all/pr27381.s
@@ -1 +1 @@
-.incbin "/etc/"
+ .incbin "/etc/"
diff --git a/gas/testsuite/gas/all/pr27384.err b/gas/testsuite/gas/all/pr27384.err
index 2d5954f..3eb1e53 100644
--- a/gas/testsuite/gas/all/pr27384.err
+++ b/gas/testsuite/gas/all/pr27384.err
@@ -1,4 +1,4 @@
-.*pr27384.s: Assembler messages:
-.*pr27384.s:2: Error: bad or irreducible absolute expression
-.*pr27384.s:2: Error: new paper width is too small
+.*: Assembler messages:
+.*:3: Error: bad or irreducible absolute expression
+.*:3: Error: new paper width is too small
#pass
diff --git a/gas/testsuite/gas/all/pr27384.s b/gas/testsuite/gas/all/pr27384.s
index 6d831b0..51274bd 100644
--- a/gas/testsuite/gas/all/pr27384.s
+++ b/gas/testsuite/gas/all/pr27384.s
@@ -1,4 +1,4 @@
+ .text
.nop
.Psize f,-7
.nop
-
diff --git a/gas/testsuite/gas/elf/pr27355.err b/gas/testsuite/gas/elf/pr27355.err
index 6f5e2ea..fdbeb22 100644
--- a/gas/testsuite/gas/elf/pr27355.err
+++ b/gas/testsuite/gas/elf/pr27355.err
@@ -1,5 +1,5 @@
-.*pr27355.s: Assembler messages:
-.*pr27355.s:1: Error: bad expression
-.*pr27355.s:2: Error: bad or irreducible absolute expression
-.*pr27355.s:3: Error: bad or irreducible absolute expression
-.*pr27355.s:3: Error: missing string
+.*: Assembler messages:
+.*:1: Error: bad expression
+.*:2: Error: bad or irreducible absolute expression
+.*:3: Error: bad or irreducible absolute expression
+.*:3: Error: missing string