cpuinfo.c (get_intel_cpu): Detect "skylake-avx512".
authorKirill Yukhin <kirill.yukhin@intel.com>
Mon, 5 Oct 2015 13:16:07 +0000 (13:16 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Mon, 5 Oct 2015 13:16:07 +0000 (13:16 +0000)
libgcc/
* config/i386/cpuinfo.c (get_intel_cpu): Detect "skylake-avx512".
gcc/testsuite/
* gcc.target/i386/builtin_target.c: Add check for "skylake-avx512".

From-SVN: r228481

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/builtin_target.c
libgcc/ChangeLog
libgcc/config/i386/cpuinfo.c

index e16c517b493a447e1b86a8d44a21d77aab02fc7d..f6f920307b1e51b36cc9494075b72a5d97547d3e 100644 (file)
@@ -1,3 +1,7 @@
+2015-10-05  Kirill Yukhin  <kirill.yukhin@intel.com>
+
+       * gcc.target/i386/builtin_target.c: Add check for "skylake-avx512".
+
 2015-10-05  Christian Bruel  <christian.bruel@st.com>
 
        * gcc.target/arm/attr_thumb-static2.c: Cleanup directives.
index a9a8753ce04079bfda5bd428fd130ead4a98cac2..82357a7f674c3879ccc3c423f039e44aec333da0 100644 (file)
@@ -91,6 +91,11 @@ check_intel_cpu_model (unsigned int family, unsigned int model,
              assert (__builtin_cpu_is ("corei7"));
              assert (__builtin_cpu_is ("skylake"));
              break;
+           case 0x55:
+             /* Skylake with AVX-512 support.  */
+             assert (__builtin_cpu_is ("corei7"));
+             assert (__builtin_cpu_is ("skylake-avx512"));
+             break;
            case 0x17:
            case 0x1d:
              /* Penryn.  */
index f09b962d64cc407cc55f48cc9b5978ed7a9703a7..bb3a722b511809e76c511393be8f6d829b9ed554 100644 (file)
@@ -1,3 +1,7 @@
+2015-10-05  Kirill Yukhin  <kirill.yukhin@intel.com>
+
+       * config/i386/cpuinfo.c (get_intel_cpu): Detect "skylake-avx512".
+
 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
 
        * config.host (xtensa*-*-uclinux*): New configuration.
index 40ed84cf6cbcb36e6f067c4ede5f7a9d3ff81be6..0cbbc85305683dc1598d085ba29103434d3e7193 100644 (file)
@@ -78,6 +78,7 @@ enum processor_subtypes
   INTEL_COREI7_HASWELL,
   INTEL_COREI7_BROADWELL,
   INTEL_COREI7_SKYLAKE,
+  INTEL_COREI7_SKYLAKE_AVX512,
   CPU_SUBTYPE_MAX
 };
 
@@ -260,6 +261,11 @@ get_intel_cpu (unsigned int family, unsigned int model, unsigned int brand_id)
              __cpu_model.__cpu_type = INTEL_COREI7;
              __cpu_model.__cpu_subtype = INTEL_COREI7_SKYLAKE;
              break;
+           case 0x55:
+             /* Skylake with AVX-512 support.  */
+             __cpu_model.__cpu_type = INTEL_COREI7;
+             __cpu_model.__cpu_subtype = INTEL_COREI7_SKYLAKE_AVX512;
+             break;
            case 0x17:
            case 0x1d:
              /* Penryn.  */