public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* gas testsuite: adjust recently added tests for hppa
@ 2021-02-12  8:27 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2021-02-12  8:27 UTC (permalink / raw)
  To: binutils

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.

diff --git a/gas/testsuite/gas/all/pr27381.err b/gas/testsuite/gas/all/pr27381.err
index f414210c798..493180d59ca 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 b75523fc6d0..949b624d86a 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 2d5954f91ed..3eb1e5362ad 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 6d831b0d5f9..51274bdabe7 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 6f5e2eae17f..fdbeb224f03 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

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-12  8:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-12  8:27 gas testsuite: adjust recently added tests for hppa Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).