diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2021-12-16 09:32:00 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2021-12-16 09:32:00 +0000 |
commit | a2b1ea81bacc044a721092484c7cdcb600bcf9ce (patch) | |
tree | 34e407ceca32e2172ad72534b60c6d19f4e678cb /include | |
parent | b3e4d9326faf88d83745379f254d56b8a8324b63 (diff) | |
download | gdb-a2b1ea81bacc044a721092484c7cdcb600bcf9ce.zip gdb-a2b1ea81bacc044a721092484c7cdcb600bcf9ce.tar.gz gdb-a2b1ea81bacc044a721092484c7cdcb600bcf9ce.tar.bz2 |
arm: Add support for Armv9.1-A to Armv9.3-A
This patch adds AArch32 support for -march=armv9.[123]-a.
The behaviour of the new options can be expressed using a
combination of existing feature flags and tables.
The cpu_arch_ver entries for ARM_ARCH_V9_2A and ARM_ARCH_V9_3A
are technically redundant but it seemed less surprising to include
them anyway.
include/
* opcode/arm.h (ARM_ARCH_V9_1A, ARM_ARCH_V9_2A): New macros.
(ARM_ARCH_V9_3A): Likewise.
gas/
* doc/c-arm.texi: Add armv9.1-a, armv9.2-a and armv9.3-a.
* config/tc-arm.c (armv91a_ext_table, armv92a_ext_table): New macros.
(armv93a_ext_table): Likewise.
(arm_archs): Add armv9.1-a, armv9.2-a and armv9.3-a.
(cpu_arch_ver): Add ARM_ARCH_V9_1A, ARM_ARCH_V9_2A and ARM_ARCH_V9_3A.
* NEWS: Mention the above.
* testsuite/gas/arm/attr-march-armv9_1-a.d: New test.
* testsuite/gas/arm/attr-march-armv9_2-a.d: Likewise.
* testsuite/gas/arm/attr-march-armv9_3-a.d: Likewise.
* testsuite/gas/arm/bfloat16-armv9.1-a.d: Likewise.
* testsuite/gas/arm/bfloat16-armv9.2-a.d: Likewise.
* testsuite/gas/arm/bfloat16-armv9.3-a.d: Likewise.
* testsuite/gas/arm/i8mm-armv9.1-a.d: Likewise.
* testsuite/gas/arm/i8mm-armv9.2-a.d: Likewise.
* testsuite/gas/arm/i8mm-armv9.3-a.d: Likewise.
Diffstat (limited to 'include')
-rw-r--r-- | include/opcode/arm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/opcode/arm.h b/include/opcode/arm.h index 8cf4856..7c3caa6 100644 --- a/include/opcode/arm.h +++ b/include/opcode/arm.h @@ -392,6 +392,13 @@ ARM_AEXT2_V8_5A | ARM_EXT2_CRC, \ ARM_EXT3_V9A, \ FPU_NEON_EXT_RDMA | FPU_NEON_EXT_DOTPROD) +#define ARM_ARCH_V9_1A ARM_FEATURE_ALL (ARM_AEXT_V8A, \ + ARM_AEXT2_V8_6A | ARM_EXT2_CRC, \ + ARM_EXT3_V9A, \ + FPU_NEON_EXT_RDMA \ + | FPU_NEON_EXT_DOTPROD) +#define ARM_ARCH_V9_2A ARM_ARCH_V9_1A +#define ARM_ARCH_V9_3A ARM_ARCH_V9_2A /* Some useful combinations: */ #define ARM_ARCH_NONE ARM_FEATURE_ALL (0, 0, 0, 0) |