]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas macro arg1 test
authorAlan Modra <amodra@gmail.com>
Tue, 13 Aug 2024 02:53:03 +0000 (12:23 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 13 Aug 2024 03:20:46 +0000 (12:50 +0930)
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.

gas/testsuite/gas/macros/arg1.d
gas/testsuite/gas/macros/arg1.s

index 0a9d8b10fdbe95bd2319135aca02e146ab9f131c..adb24c9ac65f3612607541fe01a85c78688ef171 100644 (file)
@@ -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 .*
index e0cb0bddc3290c72762cf4c3007d0717ac7058ee..7eecc97f17c41af6d17d03bf8054d8f788e219f9 100644 (file)
@@ -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