]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: simplify / consolidate check_{word,long,qword}_reg()
authorJan Beulich <jbeulich@suse.com>
Fri, 24 May 2024 09:51:21 +0000 (11:51 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 May 2024 09:51:21 +0000 (11:51 +0200)
commitfb40ea39def796409eaf7f4e35bb143cbbeba0b7
treef52ac69c3edd422c334ceb76ed61348746393274
parentacd86c81f04405719471410302fe7f8e407d539c
x86: simplify / consolidate check_{word,long,qword}_reg()

These run after template matching. Therefore operands are already known
to match the template in use. With the loop bodies skipping anything not
a GPR in the actual operands, there's therefore no need to check the
template's operand type for permitting Reg or Accum.

At the same time bring the three functions in sync for the "byte" part
of the logic, as far as checking the template for other sizes (qword
specifically) goes. Plus drop a stale comment from check_qword_reg(),
when all three are now behaving the same in this regard.
gas/config/tc-i386.c