x86: move ImmExt processing
authorJan Beulich <jbeulich@suse.com>
Thu, 25 Jun 2020 07:30:09 +0000 (09:30 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Jun 2020 07:30:09 +0000 (09:30 +0200)
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.

gas/ChangeLog
gas/config/tc-i386.c

index 12a593bbb0198cd431e5e0bcc1959362127fb0bc..8fc1d8417c961bae02d17dcb08d4765a98d4bb5f 100644 (file)
@@ -1,3 +1,9 @@
+2020-06-25  Jan Beulich  <jbeulich@suse.com>
+
+       * config/tc-i386.c (md_assemble): Move call to process_immext()
+       ...
+       (process_operands): ... here.
+
 2020-06-25  Jan Beulich  <jbeulich@suse.com>
 
        * config/tc-i386.c (process_suffix): Skip ambiguous operand size
index 66da7199c08422fc78410c1942a9aadb06e10491..5bbc74c12778fdb0c5e0edb47f67fa73508464df 100644 (file)
@@ -4867,11 +4867,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)
     {
@@ -7450,6 +7445,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)
     {
This page took 0.03013 seconds and 4 git commands to generate.