The new Silvermont aswell and Broadwell model numbers are in

http://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-optimization-manual.pdf

This patch updates host_detect_local_cpu to check new Silvermont, Haswell
and Broadwell model numbers.  OK for trunk and 4.9 branch?

Thanks.


H.J.
2015-01-23   H.J. Lu  <hongjiu...@intel.com>

        * config/i386/driver-i386.c (host_detect_local_cpu): Check new
        Silvermont, Haswell and Broadwell model numbers.

diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c
index c731c50..555b415 100644
--- a/gcc/config/i386/driver-i386.c
+++ b/gcc/config/i386/driver-i386.c
@@ -703,6 +703,7 @@ const char *host_detect_local_cpu (int argc, const char 
**argv)
          cpu = "bonnell";
          break;
        case 0x37:
+       case 0x4a:
        case 0x4d:
          /* Silvermont.  */
          cpu = "silvermont";
@@ -738,11 +739,16 @@ const char *host_detect_local_cpu (int argc, const char 
**argv)
          cpu = "ivybridge";
          break;
        case 0x3c:
+       case 0x3f:
        case 0x45:
        case 0x46:
          /* Haswell.  */
          cpu = "haswell";
          break;
+       case 0x3d:
+         /* Broadwell.  */
+         cpu = "broadwell";
+         break;
        default:
          if (arch)
            {

Reply via email to