aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-08-13 12:23:03 +0930
committerAlan Modra <amodra@gmail.com>2024-08-13 12:50:46 +0930
commit429ac18107acdd759096b7924c111d0c7ea036dd (patch)
tree6b3821f39b29765c3fc00cd04e4f104e3e94f4fa
parentcfe96ff03ac34a4cdbd257aaefdf7415652044fe (diff)
downloadbinutils-429ac18107acdd759096b7924c111d0c7ea036dd.zip
binutils-429ac18107acdd759096b7924c111d0c7ea036dd.tar.gz
binutils-429ac18107acdd759096b7924c111d0c7ea036dd.tar.bz2
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.
-rw-r--r--gas/testsuite/gas/macros/arg1.d6
-rw-r--r--gas/testsuite/gas/macros/arg1.s5
2 files changed, 7 insertions, 4 deletions
diff --git a/gas/testsuite/gas/macros/arg1.d b/gas/testsuite/gas/macros/arg1.d
index 0a9d8b1..adb24c9 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 e0cb0bd..7eecc97 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