x86: allow unary operators to start a memory operand
authorJan Beulich <jbeulich@suse.com>
Mon, 7 Jun 2021 10:04:24 +0000 (12:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 7 Jun 2021 10:04:24 +0000 (12:04 +0200)
commit014fbcda4c662c275532eb0e0e7ef57f46bd7321
tree6731012674c8d09b313da22e71e5bee039c5d0fc
parent9d299bea8cca3bfd91a3c7a47510c52a9e829858
x86: allow unary operators to start a memory operand

So far only - was permitted, but +, !, and ~ ought to be treated the
same.

Rather than adding them to digit_chars[], which was at least odd to have
held - so far, drop this array and its wrapper macro for being used just
once.

While adjusting this logic, also include [ in the characters which may
start a displacement expression - gas generally treats [] as equivalent
to ().
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/unary.d [new file with mode: 0644]
gas/testsuite/gas/i386/unary.s [new file with mode: 0644]