Commit 60edf8bb by Matt Turner Committed by Uros Bizjak

driver-i386.c (host_detect_local_cpu): Add Kaby Lake models to skylake case.

gcc/

2017-06-22  Matt Turner  <mattst88@gmail.com>

	* 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  <mattst88@gmail.com>

	* gcc.target/i386/builtin_target.c: Add Kaby Lake models to
	skylake check.

libgcc/

2017-06-22  Matt Turner  <mattst88@gmail.com>

	* config/i386/cpuinfo.c (get_intel_cpu): Add Kaby Lake models to
	skylake case.

From-SVN: r249574
parent 4333d74b
2017-06-22 Matt Turner <mattst88@gmail.com>
* 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 <law@redhat.com> 2017-06-22 Jeff Law <law@redhat.com>
* config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle
......
...@@ -781,6 +781,9 @@ const char *host_detect_local_cpu (int argc, const char **argv) ...@@ -781,6 +781,9 @@ const char *host_detect_local_cpu (int argc, const char **argv)
case 0x4e: case 0x4e:
case 0x5e: case 0x5e:
/* Skylake. */ /* Skylake. */
case 0x8e:
case 0x9e:
/* Kaby Lake. */
cpu = "skylake"; cpu = "skylake";
break; break;
case 0x57: case 0x57:
...@@ -794,6 +797,9 @@ const char *host_detect_local_cpu (int argc, const char **argv) ...@@ -794,6 +797,9 @@ const char *host_detect_local_cpu (int argc, const char **argv)
/* Assume Knights Landing. */ /* Assume Knights Landing. */
if (has_avx512f) if (has_avx512f)
cpu = "knl"; cpu = "knl";
/* Assume Skylake. */
else if (has_clflushopt)
cpu = "skylake";
/* Assume Broadwell. */ /* Assume Broadwell. */
else if (has_adx) else if (has_adx)
cpu = "broadwell"; cpu = "broadwell";
......
2017-06-22 Matt Turner <mattst88@gmail.com>
* gcc.target/i386/builtin_target.c: Add Kaby Lake models to
skylake check.
2017-06-22 Carl Love <cel@us.ibm.com> 2017-06-22 Carl Love <cel@us.ibm.com>
* gcc.target/powerpc/builtins-3.c (vmulosh, vmulouh, vmulesh, * gcc.target/powerpc/builtins-3.c (vmulosh, vmulouh, vmulesh,
......
...@@ -88,6 +88,9 @@ check_intel_cpu_model (unsigned int family, unsigned int model, ...@@ -88,6 +88,9 @@ check_intel_cpu_model (unsigned int family, unsigned int model,
case 0x4e: case 0x4e:
case 0x5e: case 0x5e:
/* Skylake. */ /* Skylake. */
case 0x8e:
case 0x9e:
/* Kaby Lake. */
assert (__builtin_cpu_is ("corei7")); assert (__builtin_cpu_is ("corei7"));
assert (__builtin_cpu_is ("skylake")); assert (__builtin_cpu_is ("skylake"));
break; break;
......
2017-06-22 Matt Turner <mattst88@gmail.com>
* config/i386/cpuinfo.c (get_intel_cpu): Add Kaby Lake models to
skylake case.
2017-06-21 Richard Biener <rguenther@suse.de> 2017-06-21 Richard Biener <rguenther@suse.de>
PR gcov-profile/81080 PR gcov-profile/81080
......
...@@ -183,6 +183,9 @@ get_intel_cpu (unsigned int family, unsigned int model, unsigned int brand_id) ...@@ -183,6 +183,9 @@ get_intel_cpu (unsigned int family, unsigned int model, unsigned int brand_id)
case 0x4e: case 0x4e:
case 0x5e: case 0x5e:
/* Skylake. */ /* Skylake. */
case 0x8e:
case 0x9e:
/* Kaby Lake. */
__cpu_model.__cpu_type = INTEL_COREI7; __cpu_model.__cpu_type = INTEL_COREI7;
__cpu_model.__cpu_subtype = INTEL_COREI7_SKYLAKE; __cpu_model.__cpu_subtype = INTEL_COREI7_SKYLAKE;
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment