libgcc has enum processor_features { FEATURE_CMOV = 0, ... FEATURE_AVX512BITALG, FEATURE_AVX512BF16 }; i386-builtins.c has /* This is the order of bit-fields in __processor_features in cpuinfo.c */ enum processor_features { ... F_AVX512BITALG, F_AVX512VP2INTERSECT, <<< Missing from libgcc. F_AVX512BF16, F_MAX };
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>: https://gcc.gnu.org/g:453954451be68d22462442268a29f54809182d2b commit r11-505-g453954451be68d22462442268a29f54809182d2b Author: H.J. Lu <hjl.tools@gmail.com> Date: Tue May 19 14:42:12 2020 -0700 x86: Add FEATURE_AVX512VP2INTERSECT and update GFNI check Add FEATURE_AVX512VP2INTERSECT to libgcc so that enum processor_features in libgcc matches enum processor_features in i386-builtins.c. Update GFNI check to support processors with SSE and AVX versions of GFNI. PR target/95212 PR target/95220 * config/i386/cpuinfo.c (get_available_features): Fix FEATURE_GFNI check. Also check FEATURE_AVX512VP2INTERSECT. * config/i386/cpuinfo.h (processor_features): Add FEATURE_AVX512VP2INTERSECT.
The releases/gcc-10 branch has been updated by H.J. Lu <hjl@gcc.gnu.org>: https://gcc.gnu.org/g:e54fa81e16eb5633ed09c816311135ecc434f105 commit r10-8158-ge54fa81e16eb5633ed09c816311135ecc434f105 Author: H.J. Lu <hjl.tools@gmail.com> Date: Tue May 19 14:42:12 2020 -0700 x86: Add FEATURE_AVX512VP2INTERSECT and update GFNI check Add FEATURE_AVX512VP2INTERSECT to libgcc so that enum processor_features in libgcc matches enum processor_features in i386-builtins.c. Update GFNI check to support processors with SSE and AVX versions of GFNI. Backport from master PR target/95212 PR target/95220 * config/i386/cpuinfo.c (get_available_features): Fix FEATURE_GFNI check. Also check FEATURE_AVX512VP2INTERSECT. * config/i386/cpuinfo.h (processor_features): Add FEATURE_AVX512VP2INTERSECT.
Fixed for GCC 11 and 10.2.
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>: https://gcc.gnu.org/g:5855bdfa06fb25c0880af89cb2bfdcdf342beac2 commit r11-549-g5855bdfa06fb25c0880af89cb2bfdcdf342beac2 Author: H.J. Lu <hjl.tools@gmail.com> Date: Thu May 21 05:32:53 2020 -0700 libgcc: Move FEATURE_AVX512VP2INTERSECT after FEATURE_AVX512BF16 Move FEATURE_AVX512VP2INTERSECT after FEATURE_AVX512BF16 to avoid changing libgcc ABI. gcc/ PR target/95212 * config/i386/i386-builtins.c (processor_features): Move F_AVX512VP2INTERSECT after F_AVX512BF16. (isa_names_table): Likewise. libgcc/ PR target/95212 * config/i386/cpuinfo.h (processor_features): Move FEATURE_AVX512VP2INTERSECT after FEATURE_AVX512BF16.
The releases/gcc-10 branch has been updated by H.J. Lu <hjl@gcc.gnu.org>: https://gcc.gnu.org/g:9b7d71fdedcc360ad4fe8322ecb522cb7bf8a0f7 commit r10-8165-g9b7d71fdedcc360ad4fe8322ecb522cb7bf8a0f7 Author: H.J. Lu <hjl.tools@gmail.com> Date: Thu May 21 05:32:53 2020 -0700 libgcc: Move FEATURE_AVX512VP2INTERSECT after FEATURE_AVX512BF16 Move FEATURE_AVX512VP2INTERSECT after FEATURE_AVX512BF16 to avoid changing libgcc ABI. gcc/ PR target/95212 * config/i386/i386-builtins.c (processor_features): Move F_AVX512VP2INTERSECT after F_AVX512BF16. (isa_names_table): Likewise. libgcc/ PR target/95212 * config/i386/cpuinfo.h (processor_features): Move FEATURE_AVX512VP2INTERSECT after FEATURE_AVX512BF16. (cherry picked from commit 5855bdfa06fb25c0880af89cb2bfdcdf342beac2)