[AArch64,gas] Add -mcpu support for Arm Ares

Message ID 5C33178D.1000403@foss.arm.com
State New
Headers show
Series
  • [AArch64,gas] Add -mcpu support for Arm Ares
Related show

Commit Message

Kyrill Tkachov Jan. 7, 2019, 9:10 a.m.
Hi all,

This adds support for the Arm Ares CPU for AArch64.
It implements the Armv8.2-A architecture with the optional features
of statistical profiling, dot product and FP16 on by default.

Note: Ares is a codename to enable early adopters and in time
we will add the final product name once it's announced.

Tested with check-gas on aarch64-none-elf

Ok for master?

Thanks,
Kyrill

2019-01-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

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

Comments

Nick Clifton Jan. 8, 2019, 10:51 a.m. | #1
Hi Kyrill,

> 2019-01-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

> 

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

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


Approved - please apply.

Cheers
  Nick

Patch

diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c
index 4ae27f76ed9a9bdc6f058ca43f5f58b9cc30345f..045025a0277760f0f717990b69b540714261e9c9 100644
--- a/gas/config/tc-aarch64.c
+++ b/gas/config/tc-aarch64.c
@@ -8714,6 +8714,11 @@  static const struct aarch64_cpu_option_table aarch64_cpus[] = {
   {"cortex-a76", AARCH64_FEATURE (AARCH64_ARCH_V8_2,
 				  AARCH64_FEATURE_RCPC | AARCH64_FEATURE_F16 | AARCH64_FEATURE_DOTPROD),
 				  "Cortex-A76"},
+  {"ares", AARCH64_FEATURE (AARCH64_ARCH_V8_2,
+				  AARCH64_FEATURE_RCPC | AARCH64_FEATURE_F16
+				  | AARCH64_FEATURE_DOTPROD
+				  | AARCH64_FEATURE_PROFILE),
+				  "Ares"},
   {"exynos-m1", AARCH64_FEATURE (AARCH64_ARCH_V8,
 				 AARCH64_FEATURE_CRC | AARCH64_FEATURE_CRYPTO),
 				"Samsung Exynos M1"},
diff --git a/gas/doc/c-aarch64.texi b/gas/doc/c-aarch64.texi
index 4941c57c48113676cfbdd9ae38b691d468692179..6301671f46b8a0fcd9ec6718eac5f9d65fbca0c5 100644
--- a/gas/doc/c-aarch64.texi
+++ b/gas/doc/c-aarch64.texi
@@ -63,6 +63,7 @@  on the target processor.  The following processor names are recognized:
 @code{cortex-a73},
 @code{cortex-a75},
 @code{cortex-a76},
+@code{ares},
 @code{exynos-m1},
 @code{falkor},
 @code{qdf24xx},