From 50aaf5e6ee2687417ca4fe1a596e54a7691828db Mon Sep 17 00:00:00 2001 From: Przemyslaw Wirkus Date: Thu, 30 Sep 2021 21:01:34 +0100 Subject: aarch64: Enable Cortex-X2 CPU This patch is adding support for Cortex-X2 CPU. gas: * NEWS: Update docs. * config/tc-aarch64.c: Add Cortex-X2. * doc/c-aarch64.texi: Update docs. --- gas/NEWS | 2 +- gas/config/tc-aarch64.c | 6 ++++++ gas/doc/c-aarch64.texi | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gas/NEWS b/gas/NEWS index 1c556d3..2dc95aa 100644 --- a/gas/NEWS +++ b/gas/NEWS @@ -1,6 +1,6 @@ -*- text -*- -* Add support for Cortex-A510 and Cortex-A710 for AArch64. +* Add support for Cortex-A510, Cortex-A710, Cortex-X2 for AArch64. * 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 diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index 490ebd7..2ea55d8 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -9132,6 +9132,12 @@ static const struct aarch64_cpu_option_table aarch64_cpus[] = { | AARCH64_FEATURE_SSBS | AARCH64_FEATURE_PROFILE), "Cortex-X1"}, + {"cortex-x2", AARCH64_FEATURE (AARCH64_ARCH_V9, + AARCH64_FEATURE_BFLOAT16 + | AARCH64_FEATURE_I8MM + | AARCH64_FEATURE_MEMTAG + | AARCH64_FEATURE_SVE2_BITPERM), + "Cortex-X2"}, {"generic", AARCH64_ARCH_V8, NULL}, {NULL, AARCH64_ARCH_NONE, NULL} diff --git a/gas/doc/c-aarch64.texi b/gas/doc/c-aarch64.texi index ec2cdca..8263c1a 100644 --- a/gas/doc/c-aarch64.texi +++ b/gas/doc/c-aarch64.texi @@ -87,8 +87,9 @@ on the target processor. The following processor names are recognized: @code{xgene1} @code{xgene2}, @code{cortex-r82}, +@code{cortex-x1}, and -@code{cortex-x1}. +@code{cortex-x2}. The special name @code{all} may be used to allow the assembler to accept instructions valid for any supported processor, including all optional extensions. -- cgit v1.1