public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] x96: Remove PTA_CLWB from PTA_ICELAKE_CLIENT
@ 2020-06-24 16:22 H.J. Lu
  2020-06-25  8:21 ` Uros Bizjak
  0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 2020-06-24 16:22 UTC (permalink / raw)
  To: gcc-patches; +Cc: Uros Bizjak

CLWB isn't supported on Ice Lake client.  But Ice Lake server and Tiger
Lake support it.  Move PTA_CLWB to PTA_ICELAKE_SERVER and PTA_TIGERLAKE.

	PR target/95874
	* config/i386/i386.h (PTA_ICELAKE_CLIENT): Remove PTA_CLWB.
	(PTA_ICELAKE_SERVER): Add PTA_CLWB.
	(PTA_TIGERLAKE): Add PTA_CLWB.
---
 gcc/config/i386/i386.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
index e1775ff0b5d..d6b57562a53 100644
--- a/gcc/config/i386/i386.h
+++ b/gcc/config/i386/i386.h
@@ -2475,11 +2475,11 @@ const wide_int_bitmask PTA_CANNONLAKE = PTA_SKYLAKE | PTA_AVX512F
   | PTA_AVX512VBMI | PTA_AVX512IFMA | PTA_SHA;
 const wide_int_bitmask PTA_ICELAKE_CLIENT = PTA_CANNONLAKE | PTA_AVX512VNNI
   | PTA_GFNI | PTA_VAES | PTA_AVX512VBMI2 | PTA_VPCLMULQDQ | PTA_AVX512BITALG
-  | PTA_RDPID | PTA_CLWB | PTA_AVX512VPOPCNTDQ;
+  | PTA_RDPID | PTA_AVX512VPOPCNTDQ;
 const wide_int_bitmask PTA_ICELAKE_SERVER = PTA_ICELAKE_CLIENT | PTA_PCONFIG
-  | PTA_WBNOINVD;
+  | PTA_WBNOINVD | PTA_CLWB;
 const wide_int_bitmask PTA_TIGERLAKE = PTA_ICELAKE_CLIENT | PTA_MOVDIRI
-  | PTA_MOVDIR64B | PTA_AVX512VP2INTERSECT;
+  | PTA_MOVDIR64B | PTA_CLWB | PTA_AVX512VP2INTERSECT;
 const wide_int_bitmask PTA_KNL = PTA_BROADWELL | PTA_AVX512PF | PTA_AVX512ER
   | PTA_AVX512F | PTA_AVX512CD;
 const wide_int_bitmask PTA_BONNELL = PTA_CORE2 | PTA_MOVBE;
-- 
2.26.2


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

* Re: [PATCH] x96: Remove PTA_CLWB from PTA_ICELAKE_CLIENT
  2020-06-24 16:22 [PATCH] x96: Remove PTA_CLWB from PTA_ICELAKE_CLIENT H.J. Lu
@ 2020-06-25  8:21 ` Uros Bizjak
  0 siblings, 0 replies; 2+ messages in thread
From: Uros Bizjak @ 2020-06-25  8:21 UTC (permalink / raw)
  To: H.J. Lu; +Cc: gcc-patches

On Wed, Jun 24, 2020 at 6:22 PM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> CLWB isn't supported on Ice Lake client.  But Ice Lake server and Tiger
> Lake support it.  Move PTA_CLWB to PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
>
>         PR target/95874
>         * config/i386/i386.h (PTA_ICELAKE_CLIENT): Remove PTA_CLWB.
>         (PTA_ICELAKE_SERVER): Add PTA_CLWB.
>         (PTA_TIGERLAKE): Add PTA_CLWB.

OK, also for backports.

Thanks,
Uros.

> ---
>  gcc/config/i386/i386.h | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
> index e1775ff0b5d..d6b57562a53 100644
> --- a/gcc/config/i386/i386.h
> +++ b/gcc/config/i386/i386.h
> @@ -2475,11 +2475,11 @@ const wide_int_bitmask PTA_CANNONLAKE = PTA_SKYLAKE | PTA_AVX512F
>    | PTA_AVX512VBMI | PTA_AVX512IFMA | PTA_SHA;
>  const wide_int_bitmask PTA_ICELAKE_CLIENT = PTA_CANNONLAKE | PTA_AVX512VNNI
>    | PTA_GFNI | PTA_VAES | PTA_AVX512VBMI2 | PTA_VPCLMULQDQ | PTA_AVX512BITALG
> -  | PTA_RDPID | PTA_CLWB | PTA_AVX512VPOPCNTDQ;
> +  | PTA_RDPID | PTA_AVX512VPOPCNTDQ;
>  const wide_int_bitmask PTA_ICELAKE_SERVER = PTA_ICELAKE_CLIENT | PTA_PCONFIG
> -  | PTA_WBNOINVD;
> +  | PTA_WBNOINVD | PTA_CLWB;
>  const wide_int_bitmask PTA_TIGERLAKE = PTA_ICELAKE_CLIENT | PTA_MOVDIRI
> -  | PTA_MOVDIR64B | PTA_AVX512VP2INTERSECT;
> +  | PTA_MOVDIR64B | PTA_CLWB | PTA_AVX512VP2INTERSECT;
>  const wide_int_bitmask PTA_KNL = PTA_BROADWELL | PTA_AVX512PF | PTA_AVX512ER
>    | PTA_AVX512F | PTA_AVX512CD;
>  const wide_int_bitmask PTA_BONNELL = PTA_CORE2 | PTA_MOVBE;
> --
> 2.26.2
>

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

end of thread, other threads:[~2020-06-25  8:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-24 16:22 [PATCH] x96: Remove PTA_CLWB from PTA_ICELAKE_CLIENT H.J. Lu
2020-06-25  8:21 ` 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).