aarch64: Add support for GCS extension.
authorsrinath <srinath.parvathaneni@arm.com>
Thu, 2 Nov 2023 13:04:20 +0000 (13:04 +0000)
committersrinath <srinath.parvathaneni@arm.com>
Thu, 2 Nov 2023 13:06:00 +0000 (13:06 +0000)
commitf985c2512aee1c4440998db62d6aea98c737b3ef
treead00ac3226ee025d907b7706bd95ce8bc8fbf7f2
parent6c0ecdbad70456b22b538d957e93478b14d0e0bc
aarch64: Add support for GCS extension.

This patch adds for Guarded Control Stack Extension (GCS) extension. GCS feature is
optional from Armv9.4-A architecture and enabled by passing +gcs option to -march
(eg: -march=armv9.4-a+gcs) or using ".arch_extension gcs" directive in the assembly file.

Also this patch adds support for GCS instructions gcspushx, gcspopcx, gcspopx,
gcsss1, gcsss2, gcspushm, gcspopm, gcsstr and gcssttr.
12 files changed:
gas/NEWS
gas/config/tc-aarch64.c
gas/doc/c-aarch64.texi
gas/testsuite/gas/aarch64/gcs-1-bad.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/gcs-1-bad.l [new file with mode: 0644]
gas/testsuite/gas/aarch64/gcs-1.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/gcs-1.s [new file with mode: 0644]
include/opcode/aarch64.h
opcodes/aarch64-asm-2.c
opcodes/aarch64-dis-2.c
opcodes/aarch64-opc-2.c
opcodes/aarch64-tbl.h