public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Przemyslaw Wirkus <Przemyslaw.Wirkus@arm.com>
To: Binutils <binutils@sourceware.org>
Cc: Richard Earnshaw <Richard.Earnshaw@arm.com>,
	Marcus Shawcroft <Marcus.Shawcroft@arm.com>,
	"nickc@redhat.com" <nickc@redhat.com>
Subject: [PATCH][GAS] aarch64: Enable Cortex-X2 CPU
Date: Thu, 16 Sep 2021 10:22:34 +0000	[thread overview]
Message-ID: <PAXPR08MB6621E33344E53BBF3776F7B4E4DC9@PAXPR08MB6621.eurprd08.prod.outlook.com> (raw)

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

This patch is adding support for Cortex-X2 CPU [0].

  [0] https://www.arm.com/products/cortex-x

gas/

2021-09-16  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>

	* NEWS: Update docs.
	* config/tc-aarch64.c: Add Cortex-X2.
	* doc/c-aarch64.texi: Update docs.

[-- Attachment #2: rb14716.patch --]
[-- Type: application/octet-stream, Size: 1798 bytes --]

diff --git a/gas/NEWS b/gas/NEWS
index 6ea644ef1ca55cfa08995c539531ebf9a58e83fd..7dfc70c419fd2e88ca81550d045d3ca4d2a836da 100644
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -1,6 +1,6 @@
 -*- text -*-
 
-* Add support for Cortex-A510 and Cortex-A710 for AArch64.
+* Add support for Cortex-A510, Cortex-A710, Cortex-X2 for AArch64.
 
 * Outputs of .ds.x directive and .tfloat directive with hex input from
   x86 assembler have been reduced from 12 bytes to 10 bytes to match the
diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c
index 490ebd7c4b2cc207e836d8bc83478399c9ac30f7..2ea55d8a8754788915b24a0ddff9d7cbd7414895 100644
--- a/gas/config/tc-aarch64.c
+++ b/gas/config/tc-aarch64.c
@@ -9132,6 +9132,12 @@ static const struct aarch64_cpu_option_table aarch64_cpus[] = {
                 | AARCH64_FEATURE_SSBS
                 | AARCH64_FEATURE_PROFILE),
                 "Cortex-X1"},
+  {"cortex-x2", AARCH64_FEATURE (AARCH64_ARCH_V9,
+                AARCH64_FEATURE_BFLOAT16
+                | AARCH64_FEATURE_I8MM
+                | AARCH64_FEATURE_MEMTAG
+                | AARCH64_FEATURE_SVE2_BITPERM),
+                "Cortex-X2"},
   {"generic", AARCH64_ARCH_V8, NULL},
 
   {NULL, AARCH64_ARCH_NONE, NULL}
diff --git a/gas/doc/c-aarch64.texi b/gas/doc/c-aarch64.texi
index 07db4c0cfd8dfddf39fd8a4097322cc5a4098b74..182c2f40474a65a78363626bfeeeb26895e6ebe3 100644
--- a/gas/doc/c-aarch64.texi
+++ b/gas/doc/c-aarch64.texi
@@ -87,8 +87,9 @@ on the target processor.  The following processor names are recognized:
 @code{xgene1}
 @code{xgene2},
 @code{cortex-r82},
+@code{cortex-x1},
 and
-@code{cortex-x1}.
+@code{cortex-x2}.
 The special name @code{all} may be used to allow the assembler to accept
 instructions valid for any supported processor, including all optional
 extensions.

             reply	other threads:[~2021-09-16 10:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-16 10:22 Przemyslaw Wirkus [this message]
2021-09-30 16:19 ` Nick Clifton
2021-09-30 20:23   ` Przemyslaw Wirkus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PAXPR08MB6621E33344E53BBF3776F7B4E4DC9@PAXPR08MB6621.eurprd08.prod.outlook.com \
    --to=przemyslaw.wirkus@arm.com \
    --cc=Marcus.Shawcroft@arm.com \
    --cc=Richard.Earnshaw@arm.com \
    --cc=binutils@sourceware.org \
    --cc=nickc@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).