[clang] [llvm] [AArch64] Add support for Cortex-R82AE and improve Cortex-R82 (PR #90440)

Jonathan Thackray via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 29 06:57:11 PDT 2024


================
@@ -632,7 +632,18 @@ inline constexpr CpuInfo CpuInfos[] = {
                                AArch64::AEK_PAUTH, AArch64::AEK_SVE2BITPERM,
                                AArch64::AEK_FLAGM, AArch64::AEK_PERFMON,
                                AArch64::AEK_PREDRES, AArch64::AEK_PROFILE})},
-    {"cortex-r82", ARMV8R, AArch64::ExtensionBitset({AArch64::AEK_LSE})},
+    {"cortex-r82", ARMV8R,
+     AArch64::ExtensionBitset({AArch64::AEK_CRC, AArch64::AEK_DOTPROD,
----------------
jthackray wrote:

Thanks, good spot, yes these can be trimmed.

- AEK_FP is enabled for ARMV8A
- AEK_LSE is enabled for ARMV8_1A
- AEK_CRC is enabled for ARMV8_1A
- AEK_RDM is enabled for ARMV8_1A
- AEK_RAS is enabled for ARMV8_2A
- AEK_RCPC is enabled for ARMV8_3A
- AEK_PAUTH is enabled for ARMV8_3A
- AEK_DOTPROD is enabled for ARMV8_4A
- AEK_FLAGM doesn't default
- AEK_PERFMON doesn't default
- AEK_PREDRES doesn't default

ARMV8R inherits from ARMV8_5A.DefaultExts, so we only need the latter 3 flags.

Code now updated.



https://github.com/llvm/llvm-project/pull/90440


More information about the cfe-commits mailing list