x86: Add FEATURE_AVX512VP2INTERSECT and update GFNI check
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 19 May 2020 21:42:12 +0000 (14:42 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 19 May 2020 21:42:22 +0000 (14:42 -0700)
commit453954451be68d22462442268a29f54809182d2b
tree6d6bc2e593ce79f784e3cb700200b96a4dc01374
parent74744bb1f2847b5b9ce3e97e0fec9c23bb0e499f
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.
libgcc/ChangeLog
libgcc/config/i386/cpuinfo.c
libgcc/config/i386/cpuinfo.h