aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGanesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>2014-08-04 09:27:31 +0000
committerGanesh Gopalasubramanian <gganesh@gcc.gnu.org>2014-08-04 09:27:31 +0000
commitd478ac59ee07d9d70a11083c662f78d5a48de5f9 (patch)
treeeb15928f77858fd171d31bb7ae7b387a035c0f71 /gcc
parentb085b0e9fe53565eb8b1a8402dd50a8d57d6af93 (diff)
downloadgcc-d478ac59ee07d9d70a11083c662f78d5a48de5f9.zip
gcc-d478ac59ee07d9d70a11083c662f78d5a48de5f9.tar.gz
gcc-d478ac59ee07d9d70a11083c662f78d5a48de5f9.tar.bz2
Compute extend family info for AMD CPU and update for BTVER2
From-SVN: r213544
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/driver-i386.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 67957ea..2be35a9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
+
+ * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
+ family information. Handle BTVER2 cpu with cpuid family value.
+
2014-08-04 Tom de Vries <tom@codesourcery.com>
* doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c
index 1c6385f..f82fd0b 100644
--- a/gcc/config/i386/driver-i386.c
+++ b/gcc/config/i386/driver-i386.c
@@ -432,7 +432,8 @@ const char *host_detect_local_cpu (int argc, const char **argv)
model = (eax >> 4) & 0x0f;
family = (eax >> 8) & 0x0f;
- if (vendor == signature_INTEL_ebx)
+ if (vendor == signature_INTEL_ebx
+ || vendor == signature_AMD_ebx)
{
unsigned int extended_model, extended_family;
@@ -576,7 +577,7 @@ const char *host_detect_local_cpu (int argc, const char **argv)
if (name == signature_NSC_ebx)
processor = PROCESSOR_GEODE;
- else if (has_movbe)
+ else if (has_movbe && family == 22)
processor = PROCESSOR_BTVER2;
else if (has_avx2)
processor = PROCESSOR_BDVER4;