x86-64: allow HLE store of accumulator to absolute 32-bit address
authorJan Beulich <jbeulich@suse.com>
Mon, 12 Dec 2022 12:52:47 +0000 (13:52 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 12 Dec 2022 12:52:47 +0000 (13:52 +0100)
commite2b983d47e725a1c1340b535a8ec44bb406ff0ee
tree2141ab85fa91725af1faecd59758aa9924e17d09
parent9db83a32776e946ab9738dd5a2bd3a4018641feb
x86-64: allow HLE store of accumulator to absolute 32-bit address

In commit 1212781b35c9 ("ix86: allow HLE store of accumulator to
absolute address") I was wrong to exclude 64-bit code. Dropping the
check also leads to better diagnostics in 64-bit code ("MOV", after
all, isn't invalid with "XRELEASE").

While there also limit the amount of further checks done: The operand
type checks that were there were effectively redundant with other ones
anyway, plus it's quite fine to also have "xrelease mov <disp>, %eax"
look for the next MOV template (in fact again also improving
diagnostics).
gas/config/tc-i386.c
gas/testsuite/gas/i386/x86-64-hle-intel.d
gas/testsuite/gas/i386/x86-64-hle.d
gas/testsuite/gas/i386/x86-64-hle.s