From: Przemyslaw Wirkus <Przemyslaw.Wirkus@arm.com>
To: "binutils@sourceware.org" <binutils@sourceware.org>
Cc: Richard Earnshaw <Richard.Earnshaw@arm.com>,
"nickc@redhat.com" <nickc@redhat.com>,
Ramana Radhakrishnan <Ramana.Radhakrishnan@arm.com>,
Marcus Shawcroft <Marcus.Shawcroft@arm.com>
Subject: [GAS][arm] Add support for Cortex-X1
Date: Fri, 25 Sep 2020 13:30:09 +0000 [thread overview]
Message-ID: <AM6PR08MB458196450E8E85737D4DA71CE4360@AM6PR08MB4581.eurprd08.prod.outlook.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 714 bytes --]
Hi,
This patch adds support for Cortex-X1
This adds support for the Arm Cortex-X1 CPU in AArch32 GAS. For more
information about this processor, see [0].
[0] : https://www.arm.com/products/cortex-x
OK for master branch?
PS: I do not have write permission, can this be commited in my name if
approved please?
Kind Regards,
Przemyslaw Wirkus
bfd/ChangeLog:
2020-09-25 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
* cpu-arm.c: (processors) Add Cortex-X1.
gas/ChangeLog:
2020-09-25 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
* config/tc-arm.c: (arm_cpus): Add Cortex-X1.
* doc/c-arm.texi: Document -mcpu=cortex-x1.
* testsuite/gas/arm/cpu-cortex-x1.d: New test.
[-- Attachment #2: rb13525.patch --]
[-- Type: application/octet-stream, Size: 1993 bytes --]
diff --git a/bfd/cpu-arm.c b/bfd/cpu-arm.c
index 0b7a8c45580d09f010a1062510fd8b1bf3b5cf4f..8d6977aee47fa11514298d43f027523e152dabbc 100644
--- a/bfd/cpu-arm.c
+++ b/bfd/cpu-arm.c
@@ -165,6 +165,7 @@ processors[] =
{ bfd_mach_arm_8R, "cortex-r52" },
{ bfd_mach_arm_7, "cortex-r7" },
{ bfd_mach_arm_7, "cortex-r8" },
+ { bfd_mach_arm_8, "cortex-x1" },
{ bfd_mach_arm_4T, "ep9312" },
{ bfd_mach_arm_8, "exynos-m1" },
{ bfd_mach_arm_4, "fa526" },
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 455a1401b7fa9c40426933b82b465393c1c25be7..9f8f153ada97c54f177f916a6370a965237561df 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -31588,6 +31588,9 @@ static const struct arm_cpu_option_table arm_cpus[] =
ARM_CPU_OPT ("cortex-m0plus", "Cortex-M0+", ARM_ARCH_V6SM,
ARM_ARCH_NONE,
FPU_NONE),
+ ARM_CPU_OPT ("cortex-x1", "Cortex-X1", ARM_ARCH_V8_2A,
+ ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST),
+ FPU_ARCH_DOTPROD_NEON_VFP_ARMV8),
ARM_CPU_OPT ("exynos-m1", "Samsung Exynos M1", ARM_ARCH_V8A,
ARM_FEATURE_CORE_HIGH (ARM_EXT2_CRC),
FPU_ARCH_CRYPTO_NEON_VFP_ARMV8),
diff --git a/gas/doc/c-arm.texi b/gas/doc/c-arm.texi
index 16c94de675cbfaca076b415753026990f66f4d19..f8ed8bb904e61b08e91d4ba6ed954c6ddb9370cf 100644
--- a/gas/doc/c-arm.texi
+++ b/gas/doc/c-arm.texi
@@ -147,6 +147,7 @@ recognized:
@code{cortex-m1},
@code{cortex-m0},
@code{cortex-m0plus},
+@code{cortex-x1},
@code{exynos-m1},
@code{marvell-pj4},
@code{marvell-whitney},
diff --git a/gas/testsuite/gas/arm/cpu-cortex-x1.d b/gas/testsuite/gas/arm/cpu-cortex-x1.d
new file mode 100644
index 0000000000000000000000000000000000000000..68b869b5c43262bb5d1a3bd85f4b7f593fce46bd
--- /dev/null
+++ b/gas/testsuite/gas/arm/cpu-cortex-x1.d
@@ -0,0 +1,6 @@
+# name: Assemble and dump for cortex-x1 CPU
+# source: nop-asm.s
+# as: -mcpu=cortex-x1
+# objdump: -d -mcortex-x1
+
+#...
next reply other threads:[~2020-09-25 13:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-25 13:30 Przemyslaw Wirkus [this message]
2020-09-28 14:53 ` Nick Clifton
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=AM6PR08MB458196450E8E85737D4DA71CE4360@AM6PR08MB4581.eurprd08.prod.outlook.com \
--to=przemyslaw.wirkus@arm.com \
--cc=Marcus.Shawcroft@arm.com \
--cc=Ramana.Radhakrishnan@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).