aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorYuri Rumyantsev <ysrumyan@gmail.com>2015-08-14 09:11:01 +0000
committerIlya Enkovich <ienkovich@gcc.gnu.org>2015-08-14 09:11:01 +0000
commit3e0f334989315c09c4d819ae0387e9f6ac23dcda (patch)
tree3e17404aac04444dfaf53e5e24d61d0d0b35b04b /libgcc
parentbaf3fbad0de4fd24bb8ed34f4b8bde9715fee33f (diff)
downloadgcc-3e0f334989315c09c4d819ae0387e9f6ac23dcda.zip
gcc-3e0f334989315c09c4d819ae0387e9f6ac23dcda.tar.gz
gcc-3e0f334989315c09c4d819ae0387e9f6ac23dcda.tar.bz2
driver-i386.c (host_detect_local_cpu): Add support for skylake.
gcc/ * config/i386/driver-i386.c (host_detect_local_cpu): Add support for skylake. * config/i386/i386.c (PTA_SKYLAKE): New macros. (processor_alias_table): Add skylake description. (enum processor_model): Add skylake processor. (arch_names_table): Add skylake record. * doc/invoke.texi: Add skylake item. gcc/testsuite/ * gcc.target/i386/builtin_target.c: Add skylake check. libgcc/ * config/i386/cpuinfo.c (enum processor_subtypes): Add skylake. (get_intel_cpu): Likewise. From-SVN: r226884
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog5
-rw-r--r--libgcc/config/i386/cpuinfo.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 085dc05..5ce8f72 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
+
+ * config/i386/cpuinfo.c (enum processor_subtypes): Add skylake.
+ (get_intel_cpu): Likewise.
+
2015-08-12 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/cpuinfo.c (processor_types): Add INTEL_KNL.
diff --git a/libgcc/config/i386/cpuinfo.c b/libgcc/config/i386/cpuinfo.c
index b7b11de..1436775 100644
--- a/libgcc/config/i386/cpuinfo.c
+++ b/libgcc/config/i386/cpuinfo.c
@@ -77,6 +77,7 @@ enum processor_subtypes
INTEL_COREI7_IVYBRIDGE,
INTEL_COREI7_HASWELL,
INTEL_COREI7_BROADWELL,
+ INTEL_COREI7_SKYLAKE,
CPU_SUBTYPE_MAX
};
@@ -245,6 +246,12 @@ 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_BROADWELL;
break;
+ case 0x4e:
+ case 0x5e:
+ /* Skylake. */
+ __cpu_model.__cpu_type = INTEL_COREI7;
+ __cpu_model.__cpu_subtype = INTEL_COREI7_SKYLAKE;
+ break;
case 0x17:
case 0x1d:
/* Penryn. */