]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: move reg_operands adjustment
authorJan Beulich <jbeulich@suse.com>
Fri, 27 Jan 2023 08:23:38 +0000 (09:23 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Jan 2023 08:23:38 +0000 (09:23 +0100)
commit31b4cda3d55258784dec140d44b0a66f14294ff6
treea37e5e1f03f04346161209413b9df11595140ebf
parent95dfdd858c97198ee5f2573c49d0769d1ef60e68
x86: move reg_operands adjustment

Ideally we'd do away with this somewhat questionable adjustment (leaving
i.types[] untouched). That's non-trivial though as it looks, so only
- move the logic into process_operands(), putting it closer to related
  logic and eliminating a conditional for operand-less insns,
- make it consistent (i.e. also affect %xmm0), eliminating an ugly
  special case later in the function.
gas/config/tc-i386.c