From: Alan Modra Date: Tue, 13 Aug 2024 02:53:03 +0000 (+0930) Subject: gas macro arg1 test X-Git-Tag: gdb-16-branchpoint~1160 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=429ac18107acdd759096b7924c111d0c7ea036dd;p=thirdparty%2Fbinutils-gdb.git 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 --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