From: Ganesh Gopalasubramanian Date: Mon, 4 Aug 2014 09:27:31 +0000 (+0000) Subject: Compute extend family info for AMD CPU and update for BTVER2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d478ac59ee07d9d70a11083c662f78d5a48de5f9;p=gcc.git Compute extend family info for AMD CPU and update for BTVER2 From-SVN: r213544 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 67957ea812f..2be35a928bb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-08-04 Ganesh Gopalasubramanian + + * 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 * 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 1c6385fe4f5..f82fd0b2801 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;