]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
bfin: correct macro use in gas testsuite
authorJan Beulich <jbeulich@suse.com>
Fri, 19 Jul 2024 09:56:20 +0000 (11:56 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 19 Jul 2024 09:56:20 +0000 (11:56 +0200)
Whitespace in macro arguments either needs quoting / parenthesizing to
reliably not be mistaken for an argument separator, or respective macro
parameters need to be marked as covering all remaining arguments. The
latter really isn't an option here.

gas/testsuite/gas/bfin/allinsn16.s

index 4a1636d674e0d6751492942657233a2024c18e63..bf00cb5e6033e0dd15c4efb77967af4b284d2966 100644 (file)
 # iterate 0x20 times
 .macro _dw b, i, e
        .if \i < \e
-               __dw \b, \i, \i + 0x40
-               _dw \b, \i + 0x40, \e
+               __dw \b, \i, (\i + 0x40)
+               _dw \b, (\i + 0x40), \e
        .endif
 .endm
 
 # iterate 0x4 times
 .macro dw b, i, e
        .if \i < \e
-               _dw \b, \i, \i + 0x800
-               dw \b, \i + 0x800, \e
+               _dw \b, \i, (\i + 0x800)
+               dw \b, (\i + 0x800), \e
        .endif
 .endm