summaryrefslogtreecommitdiff
path: root/gcc/config/i386/driver-i386.c
diff options
context:
space:
mode:
authorgganesh <gganesh@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-04 09:27:31 +0000
committergganesh <gganesh@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-04 09:27:31 +0000
commite61df51be8601464a739ed896d1b22fe13791203 (patch)
treeeb15928f77858fd171d31bb7ae7b387a035c0f71 /gcc/config/i386/driver-i386.c
parent66b4ce96e3aaada9694e2a641ebbf63726fa6864 (diff)
downloadgcc-e61df51be8601464a739ed896d1b22fe13791203.tar.gz
Compute extend family info for AMD CPU and update for BTVER2
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213544 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/driver-i386.c')
-rw-r--r--gcc/config/i386/driver-i386.c5
1 files changed, 3 insertions, 2 deletions
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;