From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1386) id 4470D3858416; Fri, 3 Mar 2023 07:47:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4470D3858416 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jan Beulich To: bfd-cvs@sourceware.org Subject: [binutils-gdb] x86: drop redundant calculation of EVEX broadcast size X-Act-Checkin: binutils-gdb X-Git-Author: Jan Beulich X-Git-Refname: refs/heads/master X-Git-Oldrev: e9339bee560db6893f2d08c1e54a3eb9f775fd1d X-Git-Newrev: 43da3d648ed237496f33dd620a1ee4b4f4538018 Message-Id: <20230303074701.4470D3858416@sourceware.org> Date: Fri, 3 Mar 2023 07:47:01 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2023 07:47:01 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D43da3d648ed2= 37496f33dd620a1ee4b4f4538018 commit 43da3d648ed237496f33dd620a1ee4b4f4538018 Author: Jan Beulich Date: Fri Mar 3 08:46:13 2023 +0100 x86: drop redundant calculation of EVEX broadcast size =20 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. Diff: --- gas/config/tc-i386.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index a9314f560b7..9ceef278008 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -6409,9 +6409,6 @@ check_VecOperands (const insn_template *t) return 1; } =20 - if (i.broadcast.type) - i.broadcast.bytes =3D ((1 << (t->opcode_modifier.broadcast - 1)) - * i.broadcast.type); operand_type_set (&type, 0); switch (get_broadcast_bytes (t, false)) {