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 e16c517..f6f9203 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 a9a8753..82357a7 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 f09b962..bb3a722 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 40ed84c..0cbbc85 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.  */