From: Srinath Parvathaneni <srinath.parvathaneni@arm.com>
To: <binutils@sourceware.org>
Cc: <nd@arm.com>, <richard.earnshaw@arm.com>, <nickc@redhat.com>
Subject: [PATCH][BINTUILS] arm: Add support for Cortex-X1C CPU.
Date: Thu, 10 Nov 2022 10:17:38 +0000 [thread overview]
Message-ID: <fddbca08-756a-4d78-b117-3e82dc40df8d@AZ-NEU-EX04.Arm.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3135 bytes --]
Hi,
This patch adds support for Cortex-X1C CPU in Arm.
Regression testing for arm-none-eabi target and found no regressions.
Ok for binutils-master?
Regards,
Srinath.
bfd/ChangeLog:
2022-11-09 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
* cpu-arm.c (processors): Add Cortex-X1C CPU entry.
gas/ChangeLog:
2022-11-09 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
* NEWS: Update docs.
* config/tc-arm.c (arm_cpus): Add cortex-x1c to -mcpu.
* doc/c-arm.texi: Update docs.
* testsuite/gas/arm/cpu-cortex-x1c.d: New test.
############### Attachment also inlined for ease of reply ###############
diff --git a/bfd/cpu-arm.c b/bfd/cpu-arm.c
index 53f61e304afd876628df1ca298da0f508400ee8e..853a118d4d47c6660bc7673e82b618d306bae786 100644
--- a/bfd/cpu-arm.c
+++ b/bfd/cpu-arm.c
@@ -170,6 +170,7 @@ processors[] =
{ bfd_mach_arm_7, "cortex-r7" },
{ bfd_mach_arm_7, "cortex-r8" },
{ bfd_mach_arm_8, "cortex-x1" },
+ { bfd_mach_arm_8, "cortex-x1c" },
{ bfd_mach_arm_4T, "ep9312" },
{ bfd_mach_arm_8, "exynos-m1" },
{ bfd_mach_arm_4, "fa526" },
diff --git a/gas/NEWS b/gas/NEWS
index 86731348e3e8de80fd5e7a892eac9ea5d41e8c5a..8642ef1bb95445bc4704b0e0b53d34c12b93685a 100644
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -32,6 +32,8 @@
* Add support for the RISC-V Zawrs extension, version 1.0-rc4.
+* Add support for Cortex-X1C for Arm.
+
Changes in 2.39:
* Remove (rudimentary) support for the x86-64 sub-architectures Intel L1OM and
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 0f7d7695c0eb9b2eb5431ca314c54edfed9b633e..8864286269301f418840a9cd7c3347016ef4db0b 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -31746,6 +31746,9 @@ static const struct arm_cpu_option_table arm_cpus[] =
ARM_CPU_OPT ("cortex-x1", "Cortex-X1", ARM_ARCH_V8_2A,
ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST | ARM_EXT2_SB),
FPU_ARCH_DOTPROD_NEON_VFP_ARMV8),
+ ARM_CPU_OPT ("cortex-x1c", "Cortex-X1C", ARM_ARCH_V8_2A,
+ ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST | ARM_EXT2_SB),
+ 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 4016d3a76957e545ad8d3f1fad2067b94bb9b83e..0605d326a210afcc025f063c2cc2b3937eeda178 100644
--- a/gas/doc/c-arm.texi
+++ b/gas/doc/c-arm.texi
@@ -153,6 +153,7 @@ recognized:
@code{cortex-m0},
@code{cortex-m0plus},
@code{cortex-x1},
+@code{cortex-x1c},
@code{exynos-m1},
@code{marvell-pj4},
@code{marvell-whitney},
diff --git a/gas/testsuite/gas/arm/cpu-cortex-x1c.d b/gas/testsuite/gas/arm/cpu-cortex-x1c.d
new file mode 100644
index 0000000000000000000000000000000000000000..cf83de797ea8442f13bd91c7b73a5dfec1828193
--- /dev/null
+++ b/gas/testsuite/gas/arm/cpu-cortex-x1c.d
@@ -0,0 +1,6 @@
+# name: Assemble and dump for cortex-x1c CPU
+# source: nop-asm.s
+# as: -mcpu=cortex-x1c
+# objdump: -d -mcortex-x1c
+
+#...
[-- Attachment #2: rb16532.patch --]
[-- Type: text/plain, Size: 2466 bytes --]
diff --git a/bfd/cpu-arm.c b/bfd/cpu-arm.c
index 53f61e304afd876628df1ca298da0f508400ee8e..853a118d4d47c6660bc7673e82b618d306bae786 100644
--- a/bfd/cpu-arm.c
+++ b/bfd/cpu-arm.c
@@ -170,6 +170,7 @@ processors[] =
{ bfd_mach_arm_7, "cortex-r7" },
{ bfd_mach_arm_7, "cortex-r8" },
{ bfd_mach_arm_8, "cortex-x1" },
+ { bfd_mach_arm_8, "cortex-x1c" },
{ bfd_mach_arm_4T, "ep9312" },
{ bfd_mach_arm_8, "exynos-m1" },
{ bfd_mach_arm_4, "fa526" },
diff --git a/gas/NEWS b/gas/NEWS
index 86731348e3e8de80fd5e7a892eac9ea5d41e8c5a..8642ef1bb95445bc4704b0e0b53d34c12b93685a 100644
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -32,6 +32,8 @@
* Add support for the RISC-V Zawrs extension, version 1.0-rc4.
+* Add support for Cortex-X1C for Arm.
+
Changes in 2.39:
* Remove (rudimentary) support for the x86-64 sub-architectures Intel L1OM and
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 0f7d7695c0eb9b2eb5431ca314c54edfed9b633e..8864286269301f418840a9cd7c3347016ef4db0b 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -31746,6 +31746,9 @@ static const struct arm_cpu_option_table arm_cpus[] =
ARM_CPU_OPT ("cortex-x1", "Cortex-X1", ARM_ARCH_V8_2A,
ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST | ARM_EXT2_SB),
FPU_ARCH_DOTPROD_NEON_VFP_ARMV8),
+ ARM_CPU_OPT ("cortex-x1c", "Cortex-X1C", ARM_ARCH_V8_2A,
+ ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST | ARM_EXT2_SB),
+ 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 4016d3a76957e545ad8d3f1fad2067b94bb9b83e..0605d326a210afcc025f063c2cc2b3937eeda178 100644
--- a/gas/doc/c-arm.texi
+++ b/gas/doc/c-arm.texi
@@ -153,6 +153,7 @@ recognized:
@code{cortex-m0},
@code{cortex-m0plus},
@code{cortex-x1},
+@code{cortex-x1c},
@code{exynos-m1},
@code{marvell-pj4},
@code{marvell-whitney},
diff --git a/gas/testsuite/gas/arm/cpu-cortex-x1c.d b/gas/testsuite/gas/arm/cpu-cortex-x1c.d
new file mode 100644
index 0000000000000000000000000000000000000000..cf83de797ea8442f13bd91c7b73a5dfec1828193
--- /dev/null
+++ b/gas/testsuite/gas/arm/cpu-cortex-x1c.d
@@ -0,0 +1,6 @@
+# name: Assemble and dump for cortex-x1c CPU
+# source: nop-asm.s
+# as: -mcpu=cortex-x1c
+# objdump: -d -mcortex-x1c
+
+#...
next reply other threads:[~2022-11-10 10:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-10 10:17 Srinath Parvathaneni [this message]
2022-11-14 13:35 ` 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=fddbca08-756a-4d78-b117-3e82dc40df8d@AZ-NEU-EX04.Arm.com \
--to=srinath.parvathaneni@arm.com \
--cc=binutils@sourceware.org \
--cc=nd@arm.com \
--cc=nickc@redhat.com \
--cc=richard.earnshaw@arm.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).