]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: accept whitespace around prefix separator
authorJan Beulich <jbeulich@suse.com>
Fri, 26 Jul 2024 05:59:53 +0000 (07:59 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 26 Jul 2024 05:59:53 +0000 (07:59 +0200)
commitc97f0d71ea9cc5c3bf63aacef34b5ebc95dd3b9a
tree9f7d70150178f6232bc3473b1271bba86c4387af
parent1cd36be7c960ce2f2db0cdaedd57058df9247e05
x86: accept whitespace around prefix separator

... and prediction suffix comma. Other than documented /**/ comments
currently aren't really converted to a single space, at least not for
x86 in its most common configurations. That'll be fixed subsequently, at
which point blanks may appear where so far none were expected.
Furthermore not permitting blanks around these separators wasn't quite
logical anyway - such constructs are composite ones, and hence
components ought to have been permitted to be separated by whitespace
from the very beginning. Furthermore note how, due to the scrubber being
overly aggressive in removing whitespace, some similar construct with a
prefix were already accepted.

Note how certain other checks in parse_insn() can be simplified as a
result.

While there for the prediction suffix also make checks case-insensitive
and check for a proper trailing separator.
gas/config/tc-i386.c
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/separator.d [new file with mode: 0644]
gas/testsuite/gas/i386/separator.s [new file with mode: 0644]