arm: Add support for Armv8.9-A and Armv9.4-A

This patch adds AArch32 support for -march=armv8.9-a and
-march=armv9.4-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_4A and ARM_ARCH_V8_9A
are technically redundant but it including them for macro code
consistency across architectures.
This commit is contained in:
srinath
2024-01-08 14:13:28 +00:00
parent bde5096397
commit b3b647dc7f
10 changed files with 66 additions and 0 deletions

View File

@@ -379,6 +379,7 @@
| FPU_NEON_EXT_DOTPROD)
#define ARM_ARCH_V8_7A ARM_ARCH_V8_6A
#define ARM_ARCH_V8_8A ARM_ARCH_V8_7A
#define ARM_ARCH_V8_9A ARM_ARCH_V8_8A
#define ARM_ARCH_V8M_BASE ARM_FEATURE_CORE (ARM_AEXT_V8M_BASE, \
ARM_AEXT2_V8M_BASE)
#define ARM_ARCH_V8M_MAIN ARM_FEATURE_CORE (ARM_AEXT_V8M_MAIN, \
@@ -399,6 +400,7 @@
| FPU_NEON_EXT_DOTPROD)
#define ARM_ARCH_V9_2A ARM_ARCH_V9_1A
#define ARM_ARCH_V9_3A ARM_ARCH_V9_2A
#define ARM_ARCH_V9_4A ARM_ARCH_V9_3A
/* Some useful combinations: */
#define ARM_ARCH_NONE ARM_FEATURE_ALL (0, 0, 0, 0)