public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] aarch64: Enable Cortex-X4 CPU
@ 2023-10-05 10:10 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2023-10-05 10:10 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0515a7b643c6f7bbfb647764b702d4c6445618e8

commit 0515a7b643c6f7bbfb647764b702d4c6445618e8
Author: Saurabh Jha <saurabh.jha@arm.com>
Date:   Thu Oct 5 11:09:45 2023 +0100

    aarch64: Enable Cortex-X4 CPU

Diff:
---
 bfd/cpu-aarch64.c                         | 3 ++-
 gas/NEWS                                  | 2 ++
 gas/config/tc-aarch64.c                   | 2 ++
 gas/doc/c-aarch64.texi                    | 3 ++-
 gas/testsuite/gas/aarch64/cpu-cortex-x4.d | 6 ++++++
 5 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/bfd/cpu-aarch64.c b/bfd/cpu-aarch64.c
index df0d8c8c0dd..269177821bb 100644
--- a/bfd/cpu-aarch64.c
+++ b/bfd/cpu-aarch64.c
@@ -74,7 +74,8 @@ processors[] =
   { bfd_mach_aarch64,	  "cortex-a65ae"    },
   { bfd_mach_aarch64,	  "cortex-a76ae"    },
   { bfd_mach_aarch64,	  "cortex-a77"	    },
-  { bfd_mach_aarch64,	  "cortex-a720"	    }
+  { bfd_mach_aarch64,	  "cortex-a720"	    },
+  { bfd_mach_aarch64,     "cortex-x4"       },
 };
 
 static bool
diff --git a/gas/NEWS b/gas/NEWS
index 730ffad9bc9..71a1269b893 100644
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -16,6 +16,8 @@
 
 * Add support for Cortex-A720 for AArch64.
 
+* Add support for Cortex-X4 for AArch64.
+
 Changes in 2.41:
 
 * Add support for the KVX instruction set.
diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c
index 5f5ec1b3dbc..14788ce180f 100644
--- a/gas/config/tc-aarch64.c
+++ b/gas/config/tc-aarch64.c
@@ -10215,6 +10215,8 @@ static const struct aarch64_cpu_option_table aarch64_cpus[] = {
 					      SSBS, PROFILE), "Cortex-X1"},
   {"cortex-x2",		AARCH64_CPU_FEATURES (V9A, 4, BFLOAT16, I8MM, MEMTAG,
 					      SVE2_BITPERM), "Cortex-X2"},
+  {"cortex-x4",         AARCH64_CPU_FEATURES (V9_2A, 3, MEMTAG, PROFILE,
+                                              SVE2_BITPERM), "Cortex-X4"},
   {"generic",		AARCH64_ARCH_FEATURES (V8A), NULL},
 
   {NULL,		AARCH64_NO_FEATURES, NULL}
diff --git a/gas/doc/c-aarch64.texi b/gas/doc/c-aarch64.texi
index 5e8ac0b4e7c..fd67c77bbf8 100644
--- a/gas/doc/c-aarch64.texi
+++ b/gas/doc/c-aarch64.texi
@@ -90,8 +90,9 @@ on the target processor.  The following processor names are recognized:
 @code{xgene2},
 @code{cortex-r82},
 @code{cortex-x1},
+@code{cortex-x2},
 and
-@code{cortex-x2}.
+@code{cortex-x4}.
 The special name @code{all} may be used to allow the assembler to accept
 instructions valid for any supported processor, including all optional
 extensions.
diff --git a/gas/testsuite/gas/aarch64/cpu-cortex-x4.d b/gas/testsuite/gas/aarch64/cpu-cortex-x4.d
new file mode 100644
index 00000000000..eab7fab3709
--- /dev/null
+++ b/gas/testsuite/gas/aarch64/cpu-cortex-x4.d
@@ -0,0 +1,6 @@
+# name: Assemble and dump for cortex-x4 CPU
+# source: nop-asm.s
+# as: -mcpu=cortex-x4
+# objdump: -d -mcortex-x4
+
+#...
\ No newline at end of file

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-05 10:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-05 10:10 [binutils-gdb] aarch64: Enable Cortex-X4 CPU Nick Clifton

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