From: Przemyslaw Wirkus Date: Thu, 30 Sep 2021 20:01:34 +0000 (+0100) Subject: aarch64: Enable Cortex-X2 CPU X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=50aaf5e6ee2687417ca4fe1a596e54a7691828db;p=binutils-gdb.git 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. --- diff --git a/gas/NEWS b/gas/NEWS index 1c556d3c2d9..2dc95aac3c7 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 490ebd7c4b2..2ea55d8a875 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 ec2cdca6abc..8263c1a8aca 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.