arm: enable Cortex-A710 CPU
authorPrzemyslaw Wirkus <przemyslaw.wirkus@arm.com>
Wed, 10 Nov 2021 14:09:05 +0000 (14:09 +0000)
committerPrzemyslaw Wirkus <przemyslaw.wirkus@arm.com>
Wed, 10 Nov 2021 14:09:05 +0000 (14:09 +0000)
This patch is adding support for Cortex-A710 CPU in Arm.

bfd/

* cpu-arm.c (processors): Add cortex-a710.

gas/

* NEWS: Update docs.
* config/tc-arm.c (arm_cpus): Add cortex-a710 to -mcpu.
* doc/c-arm.texi: Update docs.
* testsuite/gas/arm/cpu-cortex-a710.d: New test.

bfd/cpu-arm.c
gas/NEWS
gas/config/tc-arm.c
gas/doc/c-arm.texi
gas/testsuite/gas/arm/cpu-cortex-a710.d [new file with mode: 0644]

index c8706253df13262b67bcb70aa6b431e53c6baaab..7c91bb01b87f93b7ca3d653b2cd41ab1427d7b0e 100644 (file)
@@ -193,6 +193,7 @@ processors[] =
   { bfd_mach_arm_XScale,  "xscale"         },
   { bfd_mach_arm_8,      "xgene1"          },
   { bfd_mach_arm_8,      "xgene2"          },
+  { bfd_mach_arm_9,      "cortex-a710"     },
   { bfd_mach_arm_ep9312,  "ep9312"         },
   { bfd_mach_arm_iWMMXt,  "iwmmxt"         },
   { bfd_mach_arm_iWMMXt2, "iwmmxt2"        },
index 779ea5daf7fa20f9443b5d6bb657f47ff220e4ec..a61aeb614749a47f14aaf61ace5d4a18d5cc9f36 100644 (file)
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -9,6 +9,8 @@
 
 * Add support for Cortex-A510, Cortex-A710, Cortex-X2 for AArch64.
 
+* Add support for Cortex-A710 for Arm.
+
 * Outputs of .ds.x directive and .tfloat directive with hex input from
   x86 assembler have been reduced from 12 bytes to 10 bytes to match the
   output of .tfloat directive.
index d4c590a8342e96478125885ded934ef02a0e3065..fad1775bcead3b913cb87266b1c23e3385c11d1f 100644 (file)
@@ -31640,6 +31640,11 @@ static const struct arm_cpu_option_table arm_cpus[] =
   ARM_CPU_OPT ("cortex-a78c",   "Cortex-A78C",    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-a710",   "Cortex-A710",    ARM_ARCH_V9A,
+              ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
+                                   | ARM_EXT2_BF16
+                                   | ARM_EXT2_I8MM),
+              FPU_ARCH_DOTPROD_NEON_VFP_ARMV8),
   ARM_CPU_OPT ("ares",    "Ares",             ARM_ARCH_V8_2A,
               ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST),
               FPU_ARCH_CRYPTO_NEON_VFP_ARMV8_DOTPROD),
index 4baa46d3083bbde6df7f29122477f8390faf6771..4b5656ee06e5496e46c3b569cca1e0066e7dac10 100644 (file)
@@ -134,6 +134,7 @@ recognized:
 @code{cortex-a78},
 @code{cortex-a78ae},
 @code{cortex-a78c},
+@code{cortex-a710},
 @code{ares},
 @code{cortex-r4},
 @code{cortex-r4f},
diff --git a/gas/testsuite/gas/arm/cpu-cortex-a710.d b/gas/testsuite/gas/arm/cpu-cortex-a710.d
new file mode 100644 (file)
index 0000000..ba88dbb
--- /dev/null
@@ -0,0 +1,6 @@
+# name: Assemble and dump for cortex-a710 CPU
+# source: nop-asm.s
+# as: -mcpu=cortex-a710
+# objdump: -d -mcortex-a710
+
+#...