public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 0/2] aarch64: Small cleanups of the cavium cores
@ 2024-06-18  3:40 Andrew Pinski
  2024-06-18  3:40 ` [PATCH 1/2] aarch64: make thunderxt88p1 an alias of thunderxt88 Andrew Pinski
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andrew Pinski @ 2024-06-18  3:40 UTC (permalink / raw)
  To: gcc-patches; +Cc: Andrew Pinski

While thinking the variant patch I had posted, I went back to
look at the original cores which used the variant and saw there
was small cleanup for them since thunderx was no longer considered
a V8.1-a core but rather just a V8-a one; when I did that change
I didn't do the cleanups like is done in this patch set.
Note there is a core which uses the variant selection so we can't
remove the code there.

Andrew Pinski (2):
  aarch64: make thunderxt88p1 an alias of thunderxt88
  aarch64: Add comment about thunderxt81/t83 being aliases

 gcc/config/aarch64/aarch64-cores.def | 6 +++---
 gcc/config/aarch64/aarch64-tune.md   | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

-- 
2.43.0


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

* [PATCH 1/2] aarch64: make thunderxt88p1 an alias of thunderxt88
  2024-06-18  3:40 [PATCH 0/2] aarch64: Small cleanups of the cavium cores Andrew Pinski
@ 2024-06-18  3:40 ` Andrew Pinski
  2024-06-18  3:40 ` [PATCH 2/2] aarch64: Add comment about thunderxt81/t83 being aliases Andrew Pinski
  2024-06-18  7:21 ` [PATCH 0/2] aarch64: Small cleanups of the cavium cores Kyrylo Tkachov
  2 siblings, 0 replies; 4+ messages in thread
From: Andrew Pinski @ 2024-06-18  3:40 UTC (permalink / raw)
  To: gcc-patches; +Cc: Andrew Pinski

Since r7-6575-g71aba51d6460ff, thunderxt88 has been the same as thunderxt88p1 so let's make
them a true alias and remove the odd variant handling and moves it below thunderxt88.

Bootstrapped and tested on aarch64-linux-gnu with no regressions.

gcc/ChangeLog:

	* config/aarch64/aarch64-cores.def (thunderxt88p1): Make an alias of thunderxt88 and
	move below thunderxt88.
	* config/aarch64/aarch64-tune.md: Regenerate.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
---
 gcc/config/aarch64/aarch64-cores.def | 5 ++---
 gcc/config/aarch64/aarch64-tune.md   | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/gcc/config/aarch64/aarch64-cores.def b/gcc/config/aarch64/aarch64-cores.def
index be60929e400..06a8213811c 100644
--- a/gcc/config/aarch64/aarch64-cores.def
+++ b/gcc/config/aarch64/aarch64-cores.def
@@ -58,10 +58,9 @@ AARCH64_CORE("cortex-a73",  cortexa73, cortexa57, V8A,  (CRC), cortexa73, 0x41,
 
 /* Cavium ('C') cores. */
 AARCH64_CORE("thunderx",      thunderx,      thunderx,  V8A,  (CRC, CRYPTO), thunderx,  0x43, 0x0a0, -1)
-/* Do not swap around "thunderxt88p1" and "thunderxt88",
-   this order is required to handle variant correctly. */
-AARCH64_CORE("thunderxt88p1", thunderxt88p1, thunderx,  V8A,  (CRC, CRYPTO),	thunderxt88,  0x43, 0x0a1, 0)
 AARCH64_CORE("thunderxt88",   thunderxt88,   thunderx,  V8A,  (CRC, CRYPTO), thunderxt88,  0x43, 0x0a1, -1)
+/* "thunderxt88p1 is just an alias for thunderxt88 now. */
+AARCH64_CORE("thunderxt88p1", thunderxt88p1, thunderx,  V8A,  (CRC, CRYPTO), thunderxt88,  0x43, 0x0a1, -1)
 
 /* OcteonTX is the official name for T81/T83. */
 AARCH64_CORE("octeontx",      octeontx,      thunderx,  V8A,  (CRC, CRYPTO), thunderx,  0x43, 0x0a0, -1)
diff --git a/gcc/config/aarch64/aarch64-tune.md b/gcc/config/aarch64/aarch64-tune.md
index ba940f1c890..9b1f32a0330 100644
--- a/gcc/config/aarch64/aarch64-tune.md
+++ b/gcc/config/aarch64/aarch64-tune.md
@@ -1,5 +1,5 @@
 ;; -*- buffer-read-only: t -*-
 ;; Generated automatically by gentune.sh from aarch64-cores.def
 (define_attr "tune"
-	"cortexa34,cortexa35,cortexa53,cortexa57,cortexa72,cortexa73,thunderx,thunderxt88p1,thunderxt88,octeontx,octeontxt81,octeontxt83,thunderxt81,thunderxt83,ampere1,ampere1a,ampere1b,emag,xgene1,falkor,qdf24xx,exynosm1,phecda,thunderx2t99p1,vulcan,thunderx2t99,cortexa55,cortexa75,cortexa76,cortexa76ae,cortexa77,cortexa78,cortexa78ae,cortexa78c,cortexa65,cortexa65ae,cortexx1,cortexx1c,neoversen1,ares,neoversee1,octeontx2,octeontx2t98,octeontx2t96,octeontx2t93,octeontx2f95,octeontx2f95n,octeontx2f95mm,a64fx,tsv110,thunderx3t110,neoversev1,zeus,neoverse512tvb,saphira,oryon1,cortexa57cortexa53,cortexa72cortexa53,cortexa73cortexa35,cortexa73cortexa53,cortexa75cortexa55,cortexa76cortexa55,cortexr82,cortexa510,cortexa520,cortexa710,cortexa715,cortexa720,cortexx2,cortexx3,cortexx4,neoversen2,cobalt100,neoversev2,demeter,generic,generic_armv8_a,generic_armv9_a"
+	"cortexa34,cortexa35,cortexa53,cortexa57,cortexa72,cortexa73,thunderx,thunderxt88,thunderxt88p1,octeontx,octeontxt81,octeontxt83,thunderxt81,thunderxt83,ampere1,ampere1a,ampere1b,emag,xgene1,falkor,qdf24xx,exynosm1,phecda,thunderx2t99p1,vulcan,thunderx2t99,cortexa55,cortexa75,cortexa76,cortexa76ae,cortexa77,cortexa78,cortexa78ae,cortexa78c,cortexa65,cortexa65ae,cortexx1,cortexx1c,neoversen1,ares,neoversee1,octeontx2,octeontx2t98,octeontx2t96,octeontx2t93,octeontx2f95,octeontx2f95n,octeontx2f95mm,a64fx,tsv110,thunderx3t110,neoversev1,zeus,neoverse512tvb,saphira,oryon1,cortexa57cortexa53,cortexa72cortexa53,cortexa73cortexa35,cortexa73cortexa53,cortexa75cortexa55,cortexa76cortexa55,cortexr82,cortexa510,cortexa520,cortexa710,cortexa715,cortexa720,cortexx2,cortexx3,cortexx4,neoversen2,cobalt100,neoversev2,demeter,generic,generic_armv8_a,generic_armv9_a"
 	(const (symbol_ref "((enum attr_tune) aarch64_tune)")))
-- 
2.43.0


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

* [PATCH 2/2] aarch64: Add comment about thunderxt81/t83 being aliases
  2024-06-18  3:40 [PATCH 0/2] aarch64: Small cleanups of the cavium cores Andrew Pinski
  2024-06-18  3:40 ` [PATCH 1/2] aarch64: make thunderxt88p1 an alias of thunderxt88 Andrew Pinski
@ 2024-06-18  3:40 ` Andrew Pinski
  2024-06-18  7:21 ` [PATCH 0/2] aarch64: Small cleanups of the cavium cores Kyrylo Tkachov
  2 siblings, 0 replies; 4+ messages in thread
From: Andrew Pinski @ 2024-06-18  3:40 UTC (permalink / raw)
  To: gcc-patches; +Cc: Andrew Pinski

Since these were already aliases just make it clear on that.

gcc/ChangeLog:

	* config/aarch64/aarch64-cores.def: Add comment
	saying thunderxt81/t83 are aliases of octeontx81/83.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
---
 gcc/config/aarch64/aarch64-cores.def | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/config/aarch64/aarch64-cores.def b/gcc/config/aarch64/aarch64-cores.def
index 06a8213811c..0e05e81761c 100644
--- a/gcc/config/aarch64/aarch64-cores.def
+++ b/gcc/config/aarch64/aarch64-cores.def
@@ -67,6 +67,7 @@ AARCH64_CORE("octeontx",      octeontx,      thunderx,  V8A,  (CRC, CRYPTO), thu
 AARCH64_CORE("octeontx81",    octeontxt81,   thunderx,  V8A,  (CRC, CRYPTO), thunderx,  0x43, 0x0a2, -1)
 AARCH64_CORE("octeontx83",    octeontxt83,   thunderx,  V8A,  (CRC, CRYPTO), thunderx,  0x43, 0x0a3, -1)
 
+/* thunderxt81/83 are aliases for octeontxt81/83. */
 AARCH64_CORE("thunderxt81",   thunderxt81,   thunderx,  V8A,  (CRC, CRYPTO), thunderx,  0x43, 0x0a2, -1)
 AARCH64_CORE("thunderxt83",   thunderxt83,   thunderx,  V8A,  (CRC, CRYPTO), thunderx,  0x43, 0x0a3, -1)
 
-- 
2.43.0


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

* Re: [PATCH 0/2] aarch64: Small cleanups of the cavium cores
  2024-06-18  3:40 [PATCH 0/2] aarch64: Small cleanups of the cavium cores Andrew Pinski
  2024-06-18  3:40 ` [PATCH 1/2] aarch64: make thunderxt88p1 an alias of thunderxt88 Andrew Pinski
  2024-06-18  3:40 ` [PATCH 2/2] aarch64: Add comment about thunderxt81/t83 being aliases Andrew Pinski
@ 2024-06-18  7:21 ` Kyrylo Tkachov
  2 siblings, 0 replies; 4+ messages in thread
From: Kyrylo Tkachov @ 2024-06-18  7:21 UTC (permalink / raw)
  To: Andrew Pinski; +Cc: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 914 bytes --]

Hi Andrew,

> On 18 Jun 2024, at 05:40, Andrew Pinski <quic_apinski@quicinc.com> wrote:
> 
> External email: Use caution opening links or attachments
> 
> 
> While thinking the variant patch I had posted, I went back to
> look at the original cores which used the variant and saw there
> was small cleanup for them since thunderx was no longer considered
> a V8.1-a core but rather just a V8-a one; when I did that change
> I didn't do the cleanups like is done in this patch set.
> Note there is a core which uses the variant selection so we can't
> remove the code there.
> 

Ok for both.
Thanks,
Kyrill

> Andrew Pinski (2):
>  aarch64: make thunderxt88p1 an alias of thunderxt88
>  aarch64: Add comment about thunderxt81/t83 being aliases
> 
> gcc/config/aarch64/aarch64-cores.def | 6 +++---
> gcc/config/aarch64/aarch64-tune.md   | 2 +-
> 2 files changed, 4 insertions(+), 4 deletions(-)
> 
> --
> 2.43.0
> 


[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4312 bytes --]

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

end of thread, other threads:[~2024-06-18  7:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-18  3:40 [PATCH 0/2] aarch64: Small cleanups of the cavium cores Andrew Pinski
2024-06-18  3:40 ` [PATCH 1/2] aarch64: make thunderxt88p1 an alias of thunderxt88 Andrew Pinski
2024-06-18  3:40 ` [PATCH 2/2] aarch64: Add comment about thunderxt81/t83 being aliases Andrew Pinski
2024-06-18  7:21 ` [PATCH 0/2] aarch64: Small cleanups of the cavium cores Kyrylo Tkachov

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