public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] Revert "x86: Don't check if AVX512 template requires AVX512VL"
@ 2023-06-22 19:38 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2023-06-22 19:38 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a61cb9dbc6a8be0922ec5992cf125a5cd389e016

commit a61cb9dbc6a8be0922ec5992cf125a5cd389e016
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Thu Jun 22 12:37:51 2023 -0700

    Revert "x86: Don't check if AVX512 template requires AVX512VL"
    
    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 = 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 = 0; op < t->operands; ++op)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-22 19:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-22 19:38 [binutils-gdb] Revert "x86: Don't check if AVX512 template requires AVX512VL" H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).