Add builtin_cpu for cannonlake and new isa features.
authorJulia Koval <julia.koval@intel.com>
Thu, 15 Mar 2018 07:52:36 +0000 (08:52 +0100)
committerJulia Koval <jkoval@gcc.gnu.org>
Thu, 15 Mar 2018 07:52:36 +0000 (08:52 +0100)
commitc36b04c1461c2825f30760043fb216237d07ce39
tree018a85fcb4446503b229cce972817d20c95714f5
parent9bb45a958d5281b3979f538a05ffa80c6833c4f7
Add builtin_cpu for cannonlake and new isa features.

gcc/
* config/i386/i386.c (F_AVX512VBMI2, F_GFNI, F_VPCLMULQDQ,
F_AVX512VNNI, F_AVX512BITALG): New.

gcc/testsuite/
* gcc.target/i386/builtin_target.c (check_intel_cpu_model): Add
cannonlake.
(check_features): Add avx512vbmi2, gfni, vpclmulqdq, avx512vnni,
avx512bitalg.

libgcc/
* config/i386/cpuinfo.c (get_available_features): Add
FEATURE_AVX512VBMI2, FEATURE_GFNI, FEATURE_VPCLMULQDQ,
FEATURE_AVX512VNNI, FEATURE_AVX512BITALG.
* config/i386/cpuinfo.h (processor_features) Add
FEATURE_AVX512VBMI2, FEATURE_GFNI, FEATURE_VPCLMULQDQ,
FEATURE_AVX512VNNI, FEATURE_AVX512BITALG.

From-SVN: r258551
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/builtin_target.c
libgcc/ChangeLog
libgcc/config/i386/cpuinfo.c
libgcc/config/i386/cpuinfo.h