From: Kirill Yukhin Date: Mon, 5 Oct 2015 13:16:07 +0000 (+0000) Subject: cpuinfo.c (get_intel_cpu): Detect "skylake-avx512". X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a192b5a9a83597f2b4b0817919f324f5c5b8fb7;p=gcc.git cpuinfo.c (get_intel_cpu): Detect "skylake-avx512". 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e16c517b493..f6f920307b1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-10-05 Kirill Yukhin + + * gcc.target/i386/builtin_target.c: Add check for "skylake-avx512". + 2015-10-05 Christian Bruel * gcc.target/arm/attr_thumb-static2.c: Cleanup directives. diff --git a/gcc/testsuite/gcc.target/i386/builtin_target.c b/gcc/testsuite/gcc.target/i386/builtin_target.c index a9a8753ce04..82357a7f674 100644 --- a/gcc/testsuite/gcc.target/i386/builtin_target.c +++ b/gcc/testsuite/gcc.target/i386/builtin_target.c @@ -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. */ diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index f09b962d64c..bb3a722b511 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,7 @@ +2015-10-05 Kirill Yukhin + + * config/i386/cpuinfo.c (get_intel_cpu): Detect "skylake-avx512". + 2015-10-03 Max Filippov * config.host (xtensa*-*-uclinux*): New configuration. diff --git a/libgcc/config/i386/cpuinfo.c b/libgcc/config/i386/cpuinfo.c index 40ed84cf6cb..0cbbc853056 100644 --- a/libgcc/config/i386/cpuinfo.c +++ b/libgcc/config/i386/cpuinfo.c @@ -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. */