x86: Update Intel processor detection
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 18 May 2020 12:35:27 +0000 (05:35 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 18 May 2020 12:35:56 +0000 (05:35 -0700)
Add cpu model numbers for Intel Airmont, Tremont, Comet Lake, Ice Lake
and Tiger Lake processor families.

* config/i386/driver-i386.c (host_detect_local_cpu): Support
Intel Airmont, Tremont, Comet Lake, Ice Lake and Tiger Lake
processor families.

gcc/ChangeLog
gcc/config/i386/driver-i386.c

index 98c035a5356970441cf9f58297eb3c2e0797089e..86d0e978027ebbf37860d3df7ee041dc983f2b17 100644 (file)
@@ -1,3 +1,9 @@
+2020-05-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/i386/driver-i386.c (host_detect_local_cpu): Support
+       Intel Airmont, Tremont, Comet Lake, Ice Lake and Tiger Lake
+       processor families.
+
 2020-05-18  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/95171
index 6926f0beb0adfb78d3e6b95ceb5745a94c91f4a9..7612ddfb846e50993aec0d3b295e09df288d13da 100644 (file)
@@ -777,9 +777,12 @@ const char *host_detect_local_cpu (int argc, const char **argv)
        case 0x37:
        case 0x4a:
        case 0x4d:
-       case 0x5a:
        case 0x5d:
          /* Silvermont.  */
+       case 0x4c:
+       case 0x5a:
+       case 0x75:
+         /* Airmont.  */
          cpu = "silvermont";
          break;
        case 0x5c:
@@ -791,6 +794,12 @@ const char *host_detect_local_cpu (int argc, const char **argv)
          /* Goldmont Plus.  */
          cpu = "goldmont-plus";
          break;
+       case 0x86:
+       case 0x96:
+       case 0x9c:
+         /* Tremont.  */
+         cpu = "tremont";
+         break;
        case 0x0f:
          /* Merom.  */
        case 0x17:
@@ -841,6 +850,9 @@ const char *host_detect_local_cpu (int argc, const char **argv)
        case 0x8e:
        case 0x9e:
          /* Kaby Lake.  */
+       case 0xa5:
+       case 0xa6:
+         /* Comet Lake.  */
          cpu = "skylake";
          break;
        case 0x55:
@@ -851,6 +863,22 @@ const char *host_detect_local_cpu (int argc, const char **argv)
            /* Skylake with AVX-512.  */
            cpu = "skylake-avx512";
          break;
+       case 0x6a:
+       case 0x6c:
+         /* Ice Lake server.  */
+         cpu = "icelake-server";
+         break;
+       case 0x7e:
+       case 0x7d:
+       case 0x9d:
+         /* Ice Lake client.  */
+         cpu = "icelake-client";
+         break;
+       case 0x8c:
+       case 0x8d:
+         /* Tiger Lake.  */
+         cpu = "tigerlake";
+         break;
        case 0x57:
          /* Knights Landing.  */
          cpu = "knl";