[binutils-gdb] gas macro arg1 test
Alan Modra
amodra@sourceware.org
Tue Aug 13 03:21:54 GMT 2024
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=429ac18107acdd759096b7924c111d0c7ea036dd
commit 429ac18107acdd759096b7924c111d0c7ea036dd
Author: Alan Modra <amodra@gmail.com>
Date: Tue Aug 13 12:23:03 2024 +0930
gas macro arg1 test
A number of targets pad out the data section, and there are targets
that have 2 or 4 octets per byte. And some even that don't have '#'
as a line comment char. tic6x-elf fails the test with "Error: too
many positional arguments".
* testsuite/gas/macros/arg1.s: Pad out data section. Use C style
comments.
* testsuite/gas/macros/arg1.d: Adjust to suit. Don't run on
multi-octet per byte targes. xfail tic6x.
Diff:
---
gas/testsuite/gas/macros/arg1.d | 6 ++++--
gas/testsuite/gas/macros/arg1.s | 5 +++--
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/gas/testsuite/gas/macros/arg1.d b/gas/testsuite/gas/macros/arg1.d
index 0a9d8b10fdb..adb24c9ac65 100644
--- a/gas/testsuite/gas/macros/arg1.d
+++ b/gas/testsuite/gas/macros/arg1.d
@@ -1,7 +1,9 @@
#objdump: -s -j .data
+# tic30 and tic4x have 4 octets per byte, tic54x has 2 octets per byte
+#notarget: tic30-*-* tic4x-*-* tic54x-*-*
+#xfail: tic6x-*-*
.*: .*
Contents of section .data:
- 0000 10111213 1415 ......
-#pass
+ 0000 10111213 14150000 00000000 00000000 .*
diff --git a/gas/testsuite/gas/macros/arg1.s b/gas/testsuite/gas/macros/arg1.s
index e0cb0bddc32..7eecc97f17c 100644
--- a/gas/testsuite/gas/macros/arg1.s
+++ b/gas/testsuite/gas/macros/arg1.s
@@ -1,5 +1,5 @@
-# Test expression argument with inner white spaces and a white space
-# before argument added by C preprocessor.
+/* Test expression argument with inner white spaces and a white space
+ before argument added by C preprocessor. */
.macro test arg1, arg2, arg3
.byte \arg1
@@ -10,3 +10,4 @@
.data
test 0x10 + 0, 0x10 + 1, 0x10 + 2
test 0x10 + 3, 0x10 + 4, 0x15
+ .byte 0,0,0,0,0,0,0,0,0,0
More information about the Binutils-cvs
mailing list