i386: Fix AVX512 and AVX10 option issues
commita1f8e65dee2d9e929cd083f36501d08bdc9c8072
authorHaochen Jiang <haochen.jiang@intel.com>
Thu, 23 Nov 2023 02:03:17 +0000 (23 10:03 +0800)
committerHaochen Jiang <haochen.jiang@intel.com>
Fri, 24 Nov 2023 02:02:14 +0000 (24 10:02 +0800)
tree0d92b1038a1b3c237855991aeb08144d984a5480
parentd89903ff29473e6e64f032ecee5c72d1584546dc
i386: Fix AVX512 and AVX10 option issues

gcc/ChangeLog:

PR target/112643
* config/i386/driver-i386.cc (check_avx10_avx512_features):
Renamed to ...
(check_avx512_features): this and remove avx10 check.
(host_detect_local_cpu): Never append -mno-avx10.1-{256,512} to
avoid emitting warnings when building GCC with native arch.
* config/i386/i386-builtin.def (BDESC): Add missing AVX512VL for
128/256 bit builtin for AVX512VP2INTERSECT.
* config/i386/i386-options.cc (ix86_option_override_internal):
Also check whether the AVX512 flags is set when trying to reset.
* config/i386/i386.h
(PTA_SKYLAKE_AVX512): Add missing PTA_EVEX512.
(PTA_ZNVER4): Ditto.
gcc/config/i386/driver-i386.cc
gcc/config/i386/i386-builtin.def
gcc/config/i386/i386-options.cc
gcc/config/i386/i386.h