Fix: AVX512VP2INTERSECT should imply AVX512DQ.
authorliuhongt <hongtao.liu@intel.com>
Fri, 28 Aug 2020 07:01:18 +0000 (15:01 +0800)
committerliuhongt <hongtao.liu@intel.com>
Fri, 28 Aug 2020 07:44:54 +0000 (15:44 +0800)
gcc/ChangeLog

* common/config/i386/i386-common.c (ix86_handle_option): Set
AVX512DQ when AVX512VP2INTERSECT exists.

gcc/common/config/i386/i386-common.c

index bb14305ad7b7fa6ddcc78b842825cd3a882e9a18..5305145a8c9f1bf816ef9d2e7158b9a427dc41b1 100644 (file)
@@ -906,8 +906,8 @@ ix86_handle_option (struct gcc_options *opts,
          opts->x_ix86_isa_flags2 |= OPTION_MASK_ISA2_AVX512VP2INTERSECT_SET;
          opts->x_ix86_isa_flags2_explicit |=
            OPTION_MASK_ISA2_AVX512VP2INTERSECT_SET;
-         opts->x_ix86_isa_flags |= OPTION_MASK_ISA_AVX512F_SET;
-         opts->x_ix86_isa_flags_explicit |= OPTION_MASK_ISA_AVX512F_SET;
+         opts->x_ix86_isa_flags |= OPTION_MASK_ISA_AVX512DQ_SET;
+         opts->x_ix86_isa_flags_explicit |= OPTION_MASK_ISA_AVX512DQ_SET;
        }
       else
        {