From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1039) id 4207A3858418; Thu, 22 Jun 2023 19:38:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4207A3858418 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: H.J. Lu To: bfd-cvs@sourceware.org Subject: [binutils-gdb] Revert "x86: Don't check if AVX512 template requires AVX512VL" X-Act-Checkin: binutils-gdb X-Git-Author: H.J. Lu X-Git-Refname: refs/heads/master X-Git-Oldrev: d4d5b571954a2bde2a14772d9b18027a9048eb2d X-Git-Newrev: a61cb9dbc6a8be0922ec5992cf125a5cd389e016 Message-Id: <20230622193807.4207A3858418@sourceware.org> Date: Thu, 22 Jun 2023 19:38:07 +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: Thu, 22 Jun 2023 19:38:07 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Da61cb9dbc6a8= be0922ec5992cf125a5cd389e016 commit a61cb9dbc6a8be0922ec5992cf125a5cd389e016 Author: H.J. Lu Date: Thu Jun 22 12:37:51 2023 -0700 Revert "x86: Don't check if AVX512 template requires AVX512VL" =20 This reverts commit c7face14225296a2f5d3ebeb8ace88c166d80c3e. Diff: --- gas/config/tc-i386.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index dcafac0c0cd..de35ee2a2c6 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -6288,10 +6288,11 @@ check_VecOperands (const insn_template *t) /* Templates allowing for ZMMword as well as YMMword and/or XMMword for any one operand are implicity requiring AVX512VL support if the actual operand size is YMMword or XMMword. Since this function runs after - template matching, there's no need to check for YMMword/XMMword nor - AVX512VL in the template. */ + template matching, there's no need to check for YMMword/XMMword in + the template. */ cpu =3D cpu_flags_and (t->cpu_flags, avx512); if (!cpu_flags_all_zero (&cpu) + && !t->cpu_flags.bitfield.cpuavx512vl && !cpu_arch_flags.bitfield.cpuavx512vl) { for (op =3D 0; op < t->operands; ++op)