diff options
Diffstat (limited to 'gcc-4.7/gcc/config/i386/driver-i386.c')
-rw-r--r-- | gcc-4.7/gcc/config/i386/driver-i386.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc-4.7/gcc/config/i386/driver-i386.c b/gcc-4.7/gcc/config/i386/driver-i386.c index 0c006a342..9bd76fb0e 100644 --- a/gcc-4.7/gcc/config/i386/driver-i386.c +++ b/gcc-4.7/gcc/config/i386/driver-i386.c @@ -605,8 +605,14 @@ const char *host_detect_local_cpu (int argc, const char **argv) /* Assume Sandy Bridge. */ cpu = "corei7-avx"; else if (has_sse4_2) - /* Assume Core i7. */ - cpu = "corei7"; + { + if (has_movbe) + /* Assume SLM. */ + cpu = "slm"; + else + /* Assume Core i7. */ + cpu = "corei7"; + } else if (has_ssse3) { if (has_movbe) |