From 60edf8bbba843187e6b4700f41707bb9dd9cec14 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Thu, 22 Jun 2017 19:46:10 +0000 Subject: [PATCH] driver-i386.c (host_detect_local_cpu): Add Kaby Lake models to skylake case. gcc/ 2017-06-22 Matt Turner * config/i386/driver-i386.c (host_detect_local_cpu): Add Kaby Lake models to skylake case. Assume skylake for unknown models with clflushopt. gcc/testsuite/ 2017-06-22 Matt Turner * gcc.target/i386/builtin_target.c: Add Kaby Lake models to skylake check. libgcc/ 2017-06-22 Matt Turner * config/i386/cpuinfo.c (get_intel_cpu): Add Kaby Lake models to skylake case. From-SVN: r249574 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/driver-i386.c | 6 ++++++ gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/i386/builtin_target.c | 3 +++ libgcc/ChangeLog | 5 +++++ libgcc/config/i386/cpuinfo.c | 3 +++ 6 files changed, 28 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 03a824f6b3f..087126dcd43 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-06-22 Matt Turner + + * config/i386/driver-i386.c (host_detect_local_cpu): Add Kaby + Lake models to skylake case. Assume skylake for unknown + models with clflushopt. + 2017-06-22 Jeff Law * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c index 6c812514239..570c49031bd 100644 --- a/gcc/config/i386/driver-i386.c +++ b/gcc/config/i386/driver-i386.c @@ -781,6 +781,9 @@ const char *host_detect_local_cpu (int argc, const char **argv) case 0x4e: case 0x5e: /* Skylake. */ + case 0x8e: + case 0x9e: + /* Kaby Lake. */ cpu = "skylake"; break; case 0x57: @@ -794,6 +797,9 @@ const char *host_detect_local_cpu (int argc, const char **argv) /* Assume Knights Landing. */ if (has_avx512f) cpu = "knl"; + /* Assume Skylake. */ + else if (has_clflushopt) + cpu = "skylake"; /* Assume Broadwell. */ else if (has_adx) cpu = "broadwell"; diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cc8cef25603..b41c8d9c441 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-06-22 Matt Turner + + * gcc.target/i386/builtin_target.c: Add Kaby Lake models to + skylake check. + 2017-06-22 Carl Love * gcc.target/powerpc/builtins-3.c (vmulosh, vmulouh, vmulesh, diff --git a/gcc/testsuite/gcc.target/i386/builtin_target.c b/gcc/testsuite/gcc.target/i386/builtin_target.c index 374f0292453..9c190eb7ebc 100644 --- a/gcc/testsuite/gcc.target/i386/builtin_target.c +++ b/gcc/testsuite/gcc.target/i386/builtin_target.c @@ -88,6 +88,9 @@ check_intel_cpu_model (unsigned int family, unsigned int model, case 0x4e: case 0x5e: /* Skylake. */ + case 0x8e: + case 0x9e: + /* Kaby Lake. */ assert (__builtin_cpu_is ("corei7")); assert (__builtin_cpu_is ("skylake")); break; diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 0fc1d60fb91..1b5d2b5a17d 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2017-06-22 Matt Turner + + * config/i386/cpuinfo.c (get_intel_cpu): Add Kaby Lake models to + skylake case. + 2017-06-21 Richard Biener PR gcov-profile/81080 diff --git a/libgcc/config/i386/cpuinfo.c b/libgcc/config/i386/cpuinfo.c index a1dc011525f..b008fb6e396 100644 --- a/libgcc/config/i386/cpuinfo.c +++ b/libgcc/config/i386/cpuinfo.c @@ -183,6 +183,9 @@ get_intel_cpu (unsigned int family, unsigned int model, unsigned int brand_id) case 0x4e: case 0x5e: /* Skylake. */ + case 0x8e: + case 0x9e: + /* Kaby Lake. */ __cpu_model.__cpu_type = INTEL_COREI7; __cpu_model.__cpu_subtype = INTEL_COREI7_SKYLAKE; break; -- 2.30.2