x86: drop redundant calculation of EVEX broadcast size
authorJan Beulich <jbeulich@suse.com>
Fri, 3 Mar 2023 07:46:13 +0000 (08:46 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 Mar 2023 07:46:13 +0000 (08:46 +0100)
In commit a5748e0d8c50 ("x86/Intel: allow MASM representation of
embedded broadcast") I replaced the calculation of i.broadcast.bytes in
check_VecOperands() not paying attention to the immediately following
call to get_broadcast_bytes() doing exactly that (again) first thing.

gas/config/tc-i386.c

index a9314f560b71a0af0892cd6955a0f5945296ecc0..9ceef278008a591262d87692887e459538466619 100644 (file)
@@ -6409,9 +6409,6 @@ check_VecOperands (const insn_template *t)
          return 1;
        }
 
-      if (i.broadcast.type)
-       i.broadcast.bytes = ((1 << (t->opcode_modifier.broadcast - 1))
-                            * i.broadcast.type);
       operand_type_set (&type, 0);
       switch (get_broadcast_bytes (t, false))
        {