]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: swap operands in OUT-with-immediate template
authorJan Beulich <jbeulich@suse.com>
Fri, 13 Jun 2025 11:46:06 +0000 (13:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 13 Jun 2025 11:46:06 +0000 (13:46 +0200)
commit620dc0f52376d4d3a24c608c297205e1f56cb0e2
tree28ad010d97819bfcb461ef26aa7b689634a5f43b
parent412164f0a99a827a04394c7731c25084e794bcf4
x86: swap operands in OUT-with-immediate template

In a number of places we assume that immediates come first in the set of
operands. It is mere luck that so far OUT, having operands the other way
around, wasn't negatively impacted by this.

Leverage this to have a few loops start from the first non-immediate
operand (or in one case to stop there). Note, however, that
process_immext() inserts an immediate last, so especially all output_*()
functions cannot be changed in the same way.
gas/config/tc-i386.c
opcodes/i386-opc.tbl
opcodes/i386-tbl.h