aarch64: Add support for Neoverse N2 CPU
authorAlex Coplan <alex.coplan@arm.com>
Wed, 30 Sep 2020 11:11:56 +0000 (12:11 +0100)
committerAlex Coplan <alex.coplan@arm.com>
Wed, 30 Sep 2020 11:11:56 +0000 (12:11 +0100)
This patch adds support for Arm's Neoverse N2 CPU to AArch64 binutils.

gas/ChangeLog:

* config/tc-aarch64.c (aarch64_cpus): Add neoverse-n2.
* doc/c-aarch64.texi: Document support for Neoverse N2.

gas/ChangeLog
gas/config/tc-aarch64.c
gas/doc/c-aarch64.texi

index 056097eb71c113084c0b1f0a8530098052fe8cf6..8def6a33c4d4c1378e2c04def9993adf4d704a56 100644 (file)
@@ -1,3 +1,8 @@
+2020-09-30  Alex Coplan  <alex.coplan@arm.com>
+
+       * config/tc-aarch64.c (aarch64_cpus): Add neoverse-n2.
+       * doc/c-aarch64.texi: Document support for Neoverse N2.
+
 2020-09-30  Alan Modra  <amodra@gmail.com>
 
        * config/obj-elf.c (obj_elf_change_section): Rename variable to
index b01711809cd0e699f4ad3d7bcc910a8f3c3c17c7..8c40a68a3075f8d0344e8564f36fb0895bcfd906 100644 (file)
@@ -8956,6 +8956,16 @@ static const struct aarch64_cpu_option_table aarch64_cpus[] = {
                                  | AARCH64_FEATURE_DOTPROD
                                  | AARCH64_FEATURE_PROFILE),
                                  "Neoverse N1"},
+  {"neoverse-n2", AARCH64_FEATURE (AARCH64_ARCH_V8_5,
+                                  AARCH64_FEATURE_BFLOAT16
+                                | AARCH64_FEATURE_I8MM
+                                | AARCH64_FEATURE_F16
+                                | AARCH64_FEATURE_SVE
+                                | AARCH64_FEATURE_SVE2
+                                | AARCH64_FEATURE_SVE2_BITPERM
+                                | AARCH64_FEATURE_MEMTAG
+                                | AARCH64_FEATURE_RNG),
+                                "Neoverse N2"},
   {"neoverse-v1", AARCH64_FEATURE (AARCH64_ARCH_V8_4,
                            AARCH64_FEATURE_PROFILE
                          | AARCH64_FEATURE_CVADP
index 95bfdbcb091146284719043d1e5301001d995a02..e45f4798451b643ef2dd8b7e15b6d20b4d250296 100644 (file)
@@ -72,6 +72,7 @@ on the target processor.  The following processor names are recognized:
 @code{exynos-m1},
 @code{falkor},
 @code{neoverse-n1},
+@code{neoverse-n2},
 @code{neoverse-e1},
 @code{neoverse-v1},
 @code{qdf24xx},