public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 1/4] i386: Remove Meteorlake's family_model
@ 2023-01-03  8:37 Hu, Lin1
  2023-01-03  8:37 ` [PATCH 2/4] Initial Emeraldrapids Support Hu, Lin1
  2023-01-03  9:21 ` [PATCH 1/4] i386: Remove Meteorlake's family_model Uros Bizjak
  0 siblings, 2 replies; 6+ messages in thread
From: Hu, Lin1 @ 2023-01-03  8:37 UTC (permalink / raw)
  To: gcc-patches; +Cc: hongtao.liu, ubizjak

Hi all,

This patch aims to modified meteorlake's family_model.

Regtested on x86_64-pc-linux-gnu. Ok for trunk?

BRs,
Lin

gcc/ChangeLog:

	* common/config/i386/cpuinfo.h (get_intel_cpu): Remove case 0xb5
	for meteorlake.
---
 gcc/common/config/i386/cpuinfo.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gcc/common/config/i386/cpuinfo.h b/gcc/common/config/i386/cpuinfo.h
index 099a02467e6..bde231c07ee 100644
--- a/gcc/common/config/i386/cpuinfo.h
+++ b/gcc/common/config/i386/cpuinfo.h
@@ -540,7 +540,6 @@ get_intel_cpu (struct __processor_model *cpu_model,
       /* Alder Lake.  */
     case 0xb7:
       /* Raptor Lake.  */
-    case 0xb5:
     case 0xaa:
     case 0xac:
       /* Meteor Lake.  */
-- 
2.18.2


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

* [PATCH 2/4] Initial Emeraldrapids Support
  2023-01-03  8:37 [PATCH 1/4] i386: Remove Meteorlake's family_model Hu, Lin1
@ 2023-01-03  8:37 ` Hu, Lin1
  2023-01-03  8:48   ` Liu, Hongtao
  2023-01-03  9:26   ` Uros Bizjak
  2023-01-03  9:21 ` [PATCH 1/4] i386: Remove Meteorlake's family_model Uros Bizjak
  1 sibling, 2 replies; 6+ messages in thread
From: Hu, Lin1 @ 2023-01-03  8:37 UTC (permalink / raw)
  To: gcc-patches; +Cc: hongtao.liu, ubizjak

gcc/ChangeLog:

	* common/config/i386/cpuinfo.h (get_intel_cpu): Handle Emeraldrapids.
	* common/config/i386/i386-common.cc: Add Emeraldrapids.
---
 gcc/common/config/i386/cpuinfo.h      | 2 ++
 gcc/common/config/i386/i386-common.cc | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/gcc/common/config/i386/cpuinfo.h b/gcc/common/config/i386/cpuinfo.h
index bde231c07ee..3729b0f14a5 100644
--- a/gcc/common/config/i386/cpuinfo.h
+++ b/gcc/common/config/i386/cpuinfo.h
@@ -551,6 +551,8 @@ get_intel_cpu (struct __processor_model *cpu_model,
       break;
     case 0x8f:
       /* Sapphire Rapids.  */
+    case 0xcf:
+      /* Emerald Rapids.  */
       cpu = "sapphirerapids";
       CHECK___builtin_cpu_is ("corei7");
       CHECK___builtin_cpu_is ("sapphirerapids");
diff --git a/gcc/common/config/i386/i386-common.cc b/gcc/common/config/i386/i386-common.cc
index 7751265aff4..026926d8b41 100644
--- a/gcc/common/config/i386/i386-common.cc
+++ b/gcc/common/config/i386/i386-common.cc
@@ -2465,6 +2465,8 @@ const pta processor_alias_table[] =
     M_CPU_SUBTYPE (INTEL_COREI7_COOPERLAKE), P_PROC_AVX512F},
   {"sapphirerapids", PROCESSOR_SAPPHIRERAPIDS, CPU_HASWELL, PTA_SAPPHIRERAPIDS,
     M_CPU_SUBTYPE (INTEL_COREI7_SAPPHIRERAPIDS), P_PROC_AVX512F},
+  {"emeraldrapids", PROCESSOR_SAPPHIRERAPIDS, CPU_HASWELL, PTA_SAPPHIRERAPIDS,
+    M_CPU_SUBTYPE (INTEL_COREI7_SAPPHIRERAPIDS), P_PROC_AVX512F},
   {"alderlake", PROCESSOR_ALDERLAKE, CPU_HASWELL, PTA_ALDERLAKE,
     M_CPU_SUBTYPE (INTEL_COREI7_ALDERLAKE), P_PROC_AVX2},
   {"raptorlake", PROCESSOR_ALDERLAKE, CPU_HASWELL, PTA_ALDERLAKE,
-- 
2.18.2


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

* RE: [PATCH 2/4] Initial Emeraldrapids Support
  2023-01-03  8:37 ` [PATCH 2/4] Initial Emeraldrapids Support Hu, Lin1
@ 2023-01-03  8:48   ` Liu, Hongtao
  2023-01-03  8:51     ` Hu, Lin1
  2023-01-03  9:26   ` Uros Bizjak
  1 sibling, 1 reply; 6+ messages in thread
From: Liu, Hongtao @ 2023-01-03  8:48 UTC (permalink / raw)
  To: Hu, Lin1, gcc-patches; +Cc: ubizjak

There are actually only two patches, not four, and the subject *Patch 2/4* should be a typo.

> -----Original Message-----
> From: Hu, Lin1 <lin1.hu@intel.com>
> Sent: Tuesday, January 3, 2023 4:37 PM
> To: gcc-patches@gcc.gnu.org
> Cc: Liu, Hongtao <hongtao.liu@intel.com>; ubizjak@gmail.com
> Subject: [PATCH 2/4] Initial Emeraldrapids Support
> 
> gcc/ChangeLog:
> 
> 	* common/config/i386/cpuinfo.h (get_intel_cpu): Handle
> Emeraldrapids.
> 	* common/config/i386/i386-common.cc: Add Emeraldrapids.
> ---
>  gcc/common/config/i386/cpuinfo.h      | 2 ++
>  gcc/common/config/i386/i386-common.cc | 2 ++
>  2 files changed, 4 insertions(+)
> 
> diff --git a/gcc/common/config/i386/cpuinfo.h
> b/gcc/common/config/i386/cpuinfo.h
> index bde231c07ee..3729b0f14a5 100644
> --- a/gcc/common/config/i386/cpuinfo.h
> +++ b/gcc/common/config/i386/cpuinfo.h
> @@ -551,6 +551,8 @@ get_intel_cpu (struct __processor_model *cpu_model,
>        break;
>      case 0x8f:
>        /* Sapphire Rapids.  */
> +    case 0xcf:
> +      /* Emerald Rapids.  */
>        cpu = "sapphirerapids";
>        CHECK___builtin_cpu_is ("corei7");
>        CHECK___builtin_cpu_is ("sapphirerapids"); diff --git
> a/gcc/common/config/i386/i386-common.cc b/gcc/common/config/i386/i386-
> common.cc
> index 7751265aff4..026926d8b41 100644
> --- a/gcc/common/config/i386/i386-common.cc
> +++ b/gcc/common/config/i386/i386-common.cc
> @@ -2465,6 +2465,8 @@ const pta processor_alias_table[] =
>      M_CPU_SUBTYPE (INTEL_COREI7_COOPERLAKE), P_PROC_AVX512F},
>    {"sapphirerapids", PROCESSOR_SAPPHIRERAPIDS, CPU_HASWELL,
> PTA_SAPPHIRERAPIDS,
>      M_CPU_SUBTYPE (INTEL_COREI7_SAPPHIRERAPIDS), P_PROC_AVX512F},
> +  {"emeraldrapids", PROCESSOR_SAPPHIRERAPIDS, CPU_HASWELL,
> PTA_SAPPHIRERAPIDS,
> +    M_CPU_SUBTYPE (INTEL_COREI7_SAPPHIRERAPIDS), P_PROC_AVX512F},
>    {"alderlake", PROCESSOR_ALDERLAKE, CPU_HASWELL, PTA_ALDERLAKE,
>      M_CPU_SUBTYPE (INTEL_COREI7_ALDERLAKE), P_PROC_AVX2},
>    {"raptorlake", PROCESSOR_ALDERLAKE, CPU_HASWELL, PTA_ALDERLAKE,
> --
> 2.18.2


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

* RE: [PATCH 2/4] Initial Emeraldrapids Support
  2023-01-03  8:48   ` Liu, Hongtao
@ 2023-01-03  8:51     ` Hu, Lin1
  0 siblings, 0 replies; 6+ messages in thread
From: Hu, Lin1 @ 2023-01-03  8:51 UTC (permalink / raw)
  To: Liu, Hongtao, gcc-patches; +Cc: ubizjak

"PATCH 2 Initial Emeraldrapids Support" aims to support Emeraldrapids for GCC. It's my mistake, resulting in the omission of its information.

-----Original Message-----
From: Liu, Hongtao <hongtao.liu@intel.com> 
Sent: Tuesday, January 3, 2023 4:48 PM
To: Hu, Lin1 <lin1.hu@intel.com>; gcc-patches@gcc.gnu.org
Cc: ubizjak@gmail.com
Subject: RE: [PATCH 2/4] Initial Emeraldrapids Support

There are actually only two patches, not four, and the subject *Patch 2/4* should be a typo.

> -----Original Message-----
> From: Hu, Lin1 <lin1.hu@intel.com>
> Sent: Tuesday, January 3, 2023 4:37 PM
> To: gcc-patches@gcc.gnu.org
> Cc: Liu, Hongtao <hongtao.liu@intel.com>; ubizjak@gmail.com
> Subject: [PATCH 2/4] Initial Emeraldrapids Support
> 
> gcc/ChangeLog:
> 
> 	* common/config/i386/cpuinfo.h (get_intel_cpu): Handle Emeraldrapids.
> 	* common/config/i386/i386-common.cc: Add Emeraldrapids.
> ---
>  gcc/common/config/i386/cpuinfo.h      | 2 ++
>  gcc/common/config/i386/i386-common.cc | 2 ++
>  2 files changed, 4 insertions(+)
> 
> diff --git a/gcc/common/config/i386/cpuinfo.h
> b/gcc/common/config/i386/cpuinfo.h
> index bde231c07ee..3729b0f14a5 100644
> --- a/gcc/common/config/i386/cpuinfo.h
> +++ b/gcc/common/config/i386/cpuinfo.h
> @@ -551,6 +551,8 @@ get_intel_cpu (struct __processor_model *cpu_model,
>        break;
>      case 0x8f:
>        /* Sapphire Rapids.  */
> +    case 0xcf:
> +      /* Emerald Rapids.  */
>        cpu = "sapphirerapids";
>        CHECK___builtin_cpu_is ("corei7");
>        CHECK___builtin_cpu_is ("sapphirerapids"); diff --git 
> a/gcc/common/config/i386/i386-common.cc b/gcc/common/config/i386/i386- 
> common.cc index 7751265aff4..026926d8b41 100644
> --- a/gcc/common/config/i386/i386-common.cc
> +++ b/gcc/common/config/i386/i386-common.cc
> @@ -2465,6 +2465,8 @@ const pta processor_alias_table[] =
>      M_CPU_SUBTYPE (INTEL_COREI7_COOPERLAKE), P_PROC_AVX512F},
>    {"sapphirerapids", PROCESSOR_SAPPHIRERAPIDS, CPU_HASWELL, 
> PTA_SAPPHIRERAPIDS,
>      M_CPU_SUBTYPE (INTEL_COREI7_SAPPHIRERAPIDS), P_PROC_AVX512F},
> +  {"emeraldrapids", PROCESSOR_SAPPHIRERAPIDS, CPU_HASWELL,
> PTA_SAPPHIRERAPIDS,
> +    M_CPU_SUBTYPE (INTEL_COREI7_SAPPHIRERAPIDS), P_PROC_AVX512F},
>    {"alderlake", PROCESSOR_ALDERLAKE, CPU_HASWELL, PTA_ALDERLAKE,
>      M_CPU_SUBTYPE (INTEL_COREI7_ALDERLAKE), P_PROC_AVX2},
>    {"raptorlake", PROCESSOR_ALDERLAKE, CPU_HASWELL, PTA_ALDERLAKE,
> --
> 2.18.2


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

* Re: [PATCH 1/4] i386: Remove Meteorlake's family_model
  2023-01-03  8:37 [PATCH 1/4] i386: Remove Meteorlake's family_model Hu, Lin1
  2023-01-03  8:37 ` [PATCH 2/4] Initial Emeraldrapids Support Hu, Lin1
@ 2023-01-03  9:21 ` Uros Bizjak
  1 sibling, 0 replies; 6+ messages in thread
From: Uros Bizjak @ 2023-01-03  9:21 UTC (permalink / raw)
  To: Hu, Lin1; +Cc: gcc-patches, hongtao.liu

On Tue, Jan 3, 2023 at 9:39 AM Hu, Lin1 <lin1.hu@intel.com> wrote:
>
> Hi all,
>
> This patch aims to modified meteorlake's family_model.
>
> Regtested on x86_64-pc-linux-gnu. Ok for trunk?
>
> BRs,
> Lin
>
> gcc/ChangeLog:
>
>         * common/config/i386/cpuinfo.h (get_intel_cpu): Remove case 0xb5
>         for meteorlake.

OK.

Thanks,
Uros.

> ---
>  gcc/common/config/i386/cpuinfo.h | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/gcc/common/config/i386/cpuinfo.h b/gcc/common/config/i386/cpuinfo.h
> index 099a02467e6..bde231c07ee 100644
> --- a/gcc/common/config/i386/cpuinfo.h
> +++ b/gcc/common/config/i386/cpuinfo.h
> @@ -540,7 +540,6 @@ get_intel_cpu (struct __processor_model *cpu_model,
>        /* Alder Lake.  */
>      case 0xb7:
>        /* Raptor Lake.  */
> -    case 0xb5:
>      case 0xaa:
>      case 0xac:
>        /* Meteor Lake.  */
> --
> 2.18.2
>

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

* Re: [PATCH 2/4] Initial Emeraldrapids Support
  2023-01-03  8:37 ` [PATCH 2/4] Initial Emeraldrapids Support Hu, Lin1
  2023-01-03  8:48   ` Liu, Hongtao
@ 2023-01-03  9:26   ` Uros Bizjak
  1 sibling, 0 replies; 6+ messages in thread
From: Uros Bizjak @ 2023-01-03  9:26 UTC (permalink / raw)
  To: Hu, Lin1; +Cc: gcc-patches, hongtao.liu

On Tue, Jan 3, 2023 at 9:39 AM Hu, Lin1 <lin1.hu@intel.com> wrote:
>
> gcc/ChangeLog:
>
>         * common/config/i386/cpuinfo.h (get_intel_cpu): Handle Emeraldrapids.
>         * common/config/i386/i386-common.cc: Add Emeraldrapids.

OK.

Thanks,
Uros.

> ---
>  gcc/common/config/i386/cpuinfo.h      | 2 ++
>  gcc/common/config/i386/i386-common.cc | 2 ++
>  2 files changed, 4 insertions(+)
>
> diff --git a/gcc/common/config/i386/cpuinfo.h b/gcc/common/config/i386/cpuinfo.h
> index bde231c07ee..3729b0f14a5 100644
> --- a/gcc/common/config/i386/cpuinfo.h
> +++ b/gcc/common/config/i386/cpuinfo.h
> @@ -551,6 +551,8 @@ get_intel_cpu (struct __processor_model *cpu_model,
>        break;
>      case 0x8f:
>        /* Sapphire Rapids.  */
> +    case 0xcf:
> +      /* Emerald Rapids.  */
>        cpu = "sapphirerapids";
>        CHECK___builtin_cpu_is ("corei7");
>        CHECK___builtin_cpu_is ("sapphirerapids");
> diff --git a/gcc/common/config/i386/i386-common.cc b/gcc/common/config/i386/i386-common.cc
> index 7751265aff4..026926d8b41 100644
> --- a/gcc/common/config/i386/i386-common.cc
> +++ b/gcc/common/config/i386/i386-common.cc
> @@ -2465,6 +2465,8 @@ const pta processor_alias_table[] =
>      M_CPU_SUBTYPE (INTEL_COREI7_COOPERLAKE), P_PROC_AVX512F},
>    {"sapphirerapids", PROCESSOR_SAPPHIRERAPIDS, CPU_HASWELL, PTA_SAPPHIRERAPIDS,
>      M_CPU_SUBTYPE (INTEL_COREI7_SAPPHIRERAPIDS), P_PROC_AVX512F},
> +  {"emeraldrapids", PROCESSOR_SAPPHIRERAPIDS, CPU_HASWELL, PTA_SAPPHIRERAPIDS,
> +    M_CPU_SUBTYPE (INTEL_COREI7_SAPPHIRERAPIDS), P_PROC_AVX512F},
>    {"alderlake", PROCESSOR_ALDERLAKE, CPU_HASWELL, PTA_ALDERLAKE,
>      M_CPU_SUBTYPE (INTEL_COREI7_ALDERLAKE), P_PROC_AVX2},
>    {"raptorlake", PROCESSOR_ALDERLAKE, CPU_HASWELL, PTA_ALDERLAKE,
> --
> 2.18.2
>

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

end of thread, other threads:[~2023-01-03  9:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-03  8:37 [PATCH 1/4] i386: Remove Meteorlake's family_model Hu, Lin1
2023-01-03  8:37 ` [PATCH 2/4] Initial Emeraldrapids Support Hu, Lin1
2023-01-03  8:48   ` Liu, Hongtao
2023-01-03  8:51     ` Hu, Lin1
2023-01-03  9:26   ` Uros Bizjak
2023-01-03  9:21 ` [PATCH 1/4] i386: Remove Meteorlake's family_model Uros Bizjak

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).