aarch64: Enable Cortex-X4 CPU
authorSaurabh Jha <saurabh.jha@arm.com>
Thu, 5 Oct 2023 10:09:45 +0000 (11:09 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 5 Oct 2023 10:09:45 +0000 (11:09 +0100)
bfd/cpu-aarch64.c
gas/NEWS
gas/config/tc-aarch64.c
gas/doc/c-aarch64.texi
gas/testsuite/gas/aarch64/cpu-cortex-x4.d [new file with mode: 0644]

index df0d8c8c0dd0297501cc83abc1400b5ce37509e6..269177821bb7a4ace7e69d0a99b34137293b0b3b 100644 (file)
@@ -74,7 +74,8 @@ processors[] =
   { bfd_mach_aarch64,    "cortex-a65ae"    },
   { bfd_mach_aarch64,    "cortex-a76ae"    },
   { bfd_mach_aarch64,    "cortex-a77"      },
-  { bfd_mach_aarch64,    "cortex-a720"     }
+  { bfd_mach_aarch64,    "cortex-a720"     },
+  { bfd_mach_aarch64,     "cortex-x4"       },
 };
 
 static bool
index 730ffad9bc97c17a6b7214cfd940b7ee4899b25b..71a1269b893b0a99b7776c06f34713f717a30dbf 100644 (file)
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -16,6 +16,8 @@
 
 * Add support for Cortex-A720 for AArch64.
 
+* Add support for Cortex-X4 for AArch64.
+
 Changes in 2.41:
 
 * Add support for the KVX instruction set.
index 5f5ec1b3dbcba62fa20d339126e50311f651a952..14788ce180f47fb6ee183d31455a1593f4c33877 100644 (file)
@@ -10215,6 +10215,8 @@ static const struct aarch64_cpu_option_table aarch64_cpus[] = {
                                              SSBS, PROFILE), "Cortex-X1"},
   {"cortex-x2",                AARCH64_CPU_FEATURES (V9A, 4, BFLOAT16, I8MM, MEMTAG,
                                              SVE2_BITPERM), "Cortex-X2"},
+  {"cortex-x4",         AARCH64_CPU_FEATURES (V9_2A, 3, MEMTAG, PROFILE,
+                                              SVE2_BITPERM), "Cortex-X4"},
   {"generic",          AARCH64_ARCH_FEATURES (V8A), NULL},
 
   {NULL,               AARCH64_NO_FEATURES, NULL}
index 5e8ac0b4e7c6737e52edd6daadcd06e487572245..fd67c77bbf879376690c3d465dd2516622e04dd2 100644 (file)
@@ -90,8 +90,9 @@ on the target processor.  The following processor names are recognized:
 @code{xgene2},
 @code{cortex-r82},
 @code{cortex-x1},
+@code{cortex-x2},
 and
-@code{cortex-x2}.
+@code{cortex-x4}.
 The special name @code{all} may be used to allow the assembler to accept
 instructions valid for any supported processor, including all optional
 extensions.
diff --git a/gas/testsuite/gas/aarch64/cpu-cortex-x4.d b/gas/testsuite/gas/aarch64/cpu-cortex-x4.d
new file mode 100644 (file)
index 0000000..eab7fab
--- /dev/null
@@ -0,0 +1,6 @@
+# name: Assemble and dump for cortex-x4 CPU
+# source: nop-asm.s
+# as: -mcpu=cortex-x4
+# objdump: -d -mcortex-x4
+
+#...
\ No newline at end of file