x86: minor improvements to optimize_imm() (part III)
authorJan Beulich <jbeulich@suse.com>
Mon, 31 Oct 2022 16:56:06 +0000 (17:56 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 31 Oct 2022 16:56:06 +0000 (17:56 +0100)
commit8f0212acb19da47fa9d9feeaae42e71c8817cafc
treee87ebfd50f0099aaa587de359f3effba3f50f96d
parent5bab16fdf1775c8abd16376458c5843fbe1d4314
x86: minor improvements to optimize_imm() (part III)

Earlier tidying still missed an opportunity: There's no need for the
"anyimm" static variable. Instead of using it in the loop to mask
"allowed" (which is necessary to satisfy operand_type_or()'s assertions)
simply use "mask", requiring it to be calculated first. That way the
post-loop masking by "mask" ahead of the operand_type_all_zero() can be
dropped.
gas/config/tc-i386.c
opcodes/i386-gen.c
opcodes/i386-init.h