summaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorvekumar <vekumar@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-30 13:20:42 +0000
committervekumar <vekumar@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-30 13:20:42 +0000
commit47ce082f1ca805fb87915d50d737c505801e9b4b (patch)
tree298eff63d77d888024ef4e7571a1247a4a0fcfb5 /libgcc
parente1fff88161e88a5d73aedcb215829fc9fc426722 (diff)
downloadgcc-47ce082f1ca805fb87915d50d737c505801e9b4b.tar.gz
libgcc changes for AMD znver1.
2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com> * config/i386/i386.c (get_builtin_code_for_version): Set priority for PROCESSOR_ZNVER1. (enum processor_model): Add M_AMDFAM17H_znver1. (struct arch_names_table): Likewise. * doc/extend.texi: ADD znver1. 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com> * config/i386/cpuinfo.c (enum processor_types): Add AMDFAM17H. (processor_subtypes): Add znver1. (get_amd_cpu): Detect znver1. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229575 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog6
-rw-r--r--libgcc/config/i386/cpuinfo.c8
2 files changed, 14 insertions, 0 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 5ce44ec8bee..d964b243879 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,9 @@
+2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
+
+ * config/i386/cpuinfo.c (enum processor_types): Add AMDFAM17H.
+ (processor_subtypes): Add znver1.
+ (get_amd_cpu): Detect znver1.
+
2015-10-29 Christophe Lyon <christophe.lyon@linaro.org>
* config.host (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*):
diff --git a/libgcc/config/i386/cpuinfo.c b/libgcc/config/i386/cpuinfo.c
index 1313ca3a704..b0ebfcf7fc7 100644
--- a/libgcc/config/i386/cpuinfo.c
+++ b/libgcc/config/i386/cpuinfo.c
@@ -59,6 +59,7 @@ enum processor_types
INTEL_KNL,
AMD_BTVER1,
AMD_BTVER2,
+ AMDFAM17H,
CPU_TYPE_MAX
};
@@ -74,6 +75,7 @@ enum processor_subtypes
AMDFAM15H_BDVER2,
AMDFAM15H_BDVER3,
AMDFAM15H_BDVER4,
+ AMDFAM17H_ZNVER1,
INTEL_COREI7_IVYBRIDGE,
INTEL_COREI7_HASWELL,
INTEL_COREI7_BROADWELL,
@@ -177,6 +179,12 @@ get_amd_cpu (unsigned int family, unsigned int model)
case 0x16:
__cpu_model.__cpu_type = AMD_BTVER2;
break;
+ case 0x17:
+ __cpu_model.__cpu_type = AMDFAM17H;
+ /* AMD family 17h version 1. */
+ if (model <= 0x1f)
+ __cpu_model.__cpu_subtype = AMDFAM17H_ZNVER1;
+ break;
default:
break;
}