[PATCH 7/9] x86: move ImmExt processing
Jan Beulich
jbeulich@suse.com
Wed Jun 24 12:14:25 GMT 2020
With abuses of ImmExt gone, all templates using it have operands. Move
its main invocation into process_operands(), matching its secondary one
for the SSE2AVX case.
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -4866,11 +4866,6 @@ md_assemble (char *line)
&& !i.types[j].bitfield.xmmword)
i.reg_operands--;
- /* ImmExt should be processed after SSE2AVX. */
- if (!i.tm.opcode_modifier.sse2avx
- && i.tm.opcode_modifier.immext)
- process_immext ();
-
/* For insns with operands there are more diddles to do to the opcode. */
if (i.operands)
{
@@ -7449,6 +7444,9 @@ process_operands (void)
i.prefix[REX_PREFIX] = 0;
i.rex_encoding = 0;
}
+ /* ImmExt should be processed after SSE2AVX. */
+ else if (i.tm.opcode_modifier.immext)
+ process_immext ();
if (i.tm.opcode_modifier.sse2avx && i.tm.opcode_modifier.vexvvvv)
{
More information about the Binutils
mailing list