x86: respect {nooptimize} for LEA
authorJan Beulich <jbeulich@suse.com>
Fri, 3 Feb 2023 07:22:12 +0000 (08:22 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 Feb 2023 07:22:12 +0000 (08:22 +0100)
commit739d764954b69fafd4fa7b238cf95149a86b2bda
treee267b3aed6da3972a3c525d22dbb06c55d02e2d0
parent691963912563534ed4eb4dd5d1b4349e3cd74ece
x86: respect {nooptimize} for LEA

Dropping a meaningless segment prefix occurs outside of
optimize_encoding() and hence needs explicit checking for a request to
avoid any optimizations.
gas/config/tc-i386.c
gas/testsuite/gas/i386/lea-optimize.d
gas/testsuite/gas/i386/lea.d
gas/testsuite/gas/i386/lea.e
gas/testsuite/gas/i386/lea.s
gas/testsuite/gas/i386/lea16-optimize.d
gas/testsuite/gas/i386/lea16-optimize2.d
gas/testsuite/gas/i386/lea16.d