This patch adds Knights Landing support to __builtin_cpu_is.
gcc/testsuite/
* gcc.target/i386/builtin_target.c (check_intel_cpu_model):
Check Knights Landing support.
libgcc/
* config/i386/cpuinfo.c (processor_types): Add INTEL_KNL.
(get_intel_cpu): Add Knights Landing support.
From-SVN: r226817
+2015-08-12 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gcc.target/i386/builtin_target.c (check_intel_cpu_model):
+ Check Knights Landing support.
+
2015-08-12 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/47461
/* Silvermont. */
assert (__builtin_cpu_is ("silvermont"));
break;
+ case 0x57:
+ /* Knights Landing. */
+ assert (__builtin_cpu_is ("knl"));
+ break;
case 0x1a:
case 0x1e:
case 0x1f:
+2015-08-12 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/i386/cpuinfo.c (processor_types): Add INTEL_KNL.
+ (get_intel_cpu): Add Knights Landing support.
+
2015-08-11 Uros Bizjak <ubizjak@gmail.com>
PR target/66954
AMDFAM10H,
AMDFAM15H,
INTEL_SILVERMONT,
+ INTEL_KNL,
AMD_BTVER1,
AMD_BTVER2,
CPU_TYPE_MAX
/* Silvermont. */
__cpu_model.__cpu_type = INTEL_SILVERMONT;
break;
+ case 0x57:
+ /* Knights Landing. */
+ __cpu_model.__cpu_type = INTEL_KNL;
+ break;
case 0x1a:
case 0x1e:
case 0x1f: