x86: don't use 32-bit LEA as NOP surrogate in 64-bit code
authorJan Beulich <jbeulich@suse.com>
Mon, 23 Oct 2023 08:30:30 +0000 (10:30 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 23 Oct 2023 08:30:30 +0000 (10:30 +0200)
commitd164359dbc14c8ae4c7a117d236f5b7de4af671a
tree8f093e045bfab0c787da700addd9d3dc0f48e53a
parentd12c7ab814cdb61da22c8d362e109ed55982a74b
x86: don't use 32-bit LEA as NOP surrogate in 64-bit code

Except for the shared 1- and 2-byte cases, the LEA uses corrupt %rsi
(by zero-extending %esi to %rsi). Introduce separate 64-bit patterns
which keep %rsi intact.
gas/config/tc-i386.c
gas/testsuite/gas/i386/ilp32/x86-64-nops-1-pentium.d
gas/testsuite/gas/i386/x86-64-nops-1-pentium.d