[AArch64,gas] Add support for Neoverse N1

Message ID 449d3d70-e6cd-1735-c8fe-dd93b79dc300@foss.arm.com
State New
Headers show
Series
  • [AArch64,gas] Add support for Neoverse N1
Related show

Commit Message

Kyrill Tkachov Feb. 21, 2019, 4:48 p.m.
Hi all,

This adds support for the Neoverse N1 [1] CPU to gas.
This was previously enabled under the Ares codename, which remains as
a valid option for -mcpu for compatibility reasons.

make check-gas passes on aarch64-none-elf.

Ok for master?
Thanks,
Kyrill

[1] 
https://community.arm.com/processors/b/blog/posts/arm-neoverse-n1-platform-accelerating-the-transformation-to-a-scalable-cloud-to-edge-infrastructure

2019-02-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

     * config/tc-aarch64.c (aarch64_cpus): Add neoverse-n1.
     * doc/c-aarch64.texi (-mcpu): Document neoverse-n1 value.

Comments

Nick Clifton Feb. 22, 2019, 9:48 a.m. | #1
Hi Kyrill,

> 2019-02-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

> 

>     * config/tc-aarch64.c (aarch64_cpus): Add neoverse-n1.

>     * doc/c-aarch64.texi (-mcpu): Document neoverse-n1 value.


Approved - please apply.

Cheers
  Nick

Patch

diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c
index 1acf6f671bdf826148bba4524f0edd734ab0b0e9..ba8f161fcc41b17d1105d80af7129296960783cb 100644
--- a/gas/config/tc-aarch64.c
+++ b/gas/config/tc-aarch64.c
@@ -8746,6 +8746,11 @@  static const struct aarch64_cpu_option_table aarch64_cpus[] = {
 			      AARCH64_FEATURE_CRC | AARCH64_FEATURE_CRYPTO
 			      | AARCH64_FEATURE_RDMA),
    "Qualcomm Falkor"},
+  {"neoverse-n1", AARCH64_FEATURE (AARCH64_ARCH_V8_2,
+				  AARCH64_FEATURE_RCPC | AARCH64_FEATURE_F16
+				  | AARCH64_FEATURE_DOTPROD
+				  | AARCH64_FEATURE_PROFILE),
+				  "Neoverse N1"},
   {"qdf24xx", AARCH64_FEATURE (AARCH64_ARCH_V8,
 			       AARCH64_FEATURE_CRC | AARCH64_FEATURE_CRYPTO
 			       | AARCH64_FEATURE_RDMA),
diff --git a/gas/doc/c-aarch64.texi b/gas/doc/c-aarch64.texi
index 7451f2f795cf3fd9770ba77e7b49d49285de651c..a9cd7d0f544a1296116b039f4ecdb10ec3141eba 100644
--- a/gas/doc/c-aarch64.texi
+++ b/gas/doc/c-aarch64.texi
@@ -66,6 +66,7 @@  on the target processor.  The following processor names are recognized:
 @code{ares},
 @code{exynos-m1},
 @code{falkor},
+@code{neoverse-n1},
 @code{qdf24xx},
 @code{saphira},
 @code{thunderx},