public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] x86: Update Intel processor detection
@ 2020-05-18 11:58 H.J. Lu
  2020-05-18 12:18 ` Uros Bizjak
  0 siblings, 1 reply; 30+ messages in thread
From: H.J. Lu @ 2020-05-18 11:58 UTC (permalink / raw)
  To: gcc-patches; +Cc: Uros Bizjak

Add cpu model numbers for Intel Airmont, Tremont, Comet Lake, Ice Lake
and Tiger Lake processor families.

OK for master?

Thanks.

H.J.
--
	* config/i386/driver-i386.c (host_detect_local_cpu): Support
	Intel Airmont, Tremont, Comet Lake, Ice Lake and Tiger Lake
	processor families.
---
 gcc/config/i386/driver-i386.c | 30 +++++++++++++++++++++++++++++-
 1 file changed, 29 insertions(+), 1 deletion(-)

diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c
index 6926f0beb0a..7612ddfb846 100644
--- a/gcc/config/i386/driver-i386.c
+++ b/gcc/config/i386/driver-i386.c
@@ -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";
-- 
2.26.2


^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2020-06-24 12:43 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-18 11:58 [PATCH] x86: Update Intel processor detection H.J. Lu
2020-05-18 12:18 ` Uros Bizjak
2020-05-18 12:34   ` H.J. Lu
2020-05-18 12:43     ` Uros Bizjak
2020-05-18 12:57       ` H.J. Lu
2020-05-19  2:16         ` [PATCH] x86: Move cpuinfo.h from libgcc to common/config/i386 H.J. Lu
2020-05-19  5:56           ` Uros Bizjak
2020-05-19 19:57             ` V2 " H.J. Lu
2020-05-19 21:06               ` Uros Bizjak
2020-05-19 21:39                 ` H.J. Lu
2020-05-20  6:10                   ` Uros Bizjak
2020-05-20 11:21                     ` H.J. Lu
2020-05-21 17:37                       ` H.J. Lu
2020-05-22 14:51                         ` V3 " H.J. Lu
2020-05-25  9:52                           ` Martin Liška
2020-05-25 17:42                             ` V4 " H.J. Lu
2020-05-26  9:30                               ` Martin Liška
2020-05-26 11:59                                 ` V5 " H.J. Lu
2020-05-26 13:27                                   ` Martin Liška
2020-06-09 16:35                                     ` PING^1: " H.J. Lu
2020-06-16 17:11                                       ` PING^2: " H.J. Lu
2020-06-20 13:39                                         ` H.J. Lu
2020-06-21 17:18                                           ` Uros Bizjak
2020-06-21 17:22                                             ` H.J. Lu
2020-06-22 23:25                                               ` V6 " H.J. Lu
2020-06-24 12:27                                                 ` V7 " H.J. Lu
2020-06-24 12:43                                                   ` Uros Bizjak
2020-06-24  6:25                                         ` PING^2: V5 " Martin Liška
2020-05-20  1:30                 ` V2 " H.J. Lu
2020-05-19  9:17           ` Thomas Koenig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).