From 6ba09730375b47c0442b3638d02d75fb3430425c Mon Sep 17 00:00:00 2001 From: liuhongt Date: Fri, 28 Aug 2020 15:01:18 +0800 Subject: [PATCH] Fix: AVX512VP2INTERSECT should imply AVX512DQ. gcc/ChangeLog * common/config/i386/i386-common.c (ix86_handle_option): Set AVX512DQ when AVX512VP2INTERSECT exists. --- gcc/common/config/i386/i386-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/common/config/i386/i386-common.c b/gcc/common/config/i386/i386-common.c index bb14305ad7b..5305145a8c9 100644 --- a/gcc/common/config/i386/i386-common.c +++ b/gcc/common/config/i386/i386-common.c @@ -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 { -- 2.30.2