[llvm] 91b24b0 - [AArch64] Ampere1 does not support MTE
Philipp Tomsich via llvm-commits
llvm-commits at lists.llvm.org
Mon May 9 02:29:47 PDT 2022
Author: Philipp Tomsich
Date: 2022-05-09T11:29:42+02:00
New Revision: 91b24b018062c8650abfbd10f7da80a0c92266a7
URL: https://github.com/llvm/llvm-project/commit/91b24b018062c8650abfbd10f7da80a0c92266a7
DIFF: https://github.com/llvm/llvm-project/commit/91b24b018062c8650abfbd10f7da80a0c92266a7.diff
LOG: [AArch64] Ampere1 does not support MTE
The initial support for the Ampere1 mistakenly signalled support for
the MTE feature. However, the core does not include the optional MTE
functionality.
Update the target parser to not include MTE for Ampere1.
Reviewed By: dmgreen
Differential Revision: https://reviews.llvm.org/D125191
Added:
Modified:
llvm/include/llvm/Support/AArch64TargetParser.def
llvm/unittests/Support/TargetParserTest.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/AArch64TargetParser.def b/llvm/include/llvm/Support/AArch64TargetParser.def
index bae6fb2595696..e2f949856d9f7 100644
--- a/llvm/include/llvm/Support/AArch64TargetParser.def
+++ b/llvm/include/llvm/Support/AArch64TargetParser.def
@@ -292,8 +292,7 @@ AARCH64_CPU_NAME("a64fx", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
AARCH64_CPU_NAME("carmel", ARMV8_2A, FK_CRYPTO_NEON_FP_ARMV8, false,
AArch64::AEK_FP16)
AARCH64_CPU_NAME("ampere1", ARMV8_6A, FK_CRYPTO_NEON_FP_ARMV8, false,
- (AArch64::AEK_FP16 | AArch64::AEK_MTE | AArch64::AEK_SB |
- AArch64::AEK_SSBS))
+ (AArch64::AEK_FP16 | AArch64::AEK_SB | AArch64::AEK_SSBS))
// Invalid CPU
AARCH64_CPU_NAME("invalid", INVALID, FK_INVALID, true, AArch64::AEK_INVALID)
#undef AARCH64_CPU_NAME
diff --git a/llvm/unittests/Support/TargetParserTest.cpp b/llvm/unittests/Support/TargetParserTest.cpp
index e9d6a3f350e7d..90b9f12559493 100644
--- a/llvm/unittests/Support/TargetParserTest.cpp
+++ b/llvm/unittests/Support/TargetParserTest.cpp
@@ -1201,7 +1201,7 @@ INSTANTIATE_TEST_SUITE_P(
AArch64::AEK_RDM | AArch64::AEK_RCPC | AArch64::AEK_DOTPROD |
AArch64::AEK_SM4 | AArch64::AEK_SHA3 | AArch64::AEK_BF16 |
AArch64::AEK_SHA2 | AArch64::AEK_AES | AArch64::AEK_I8MM |
- AArch64::AEK_MTE | AArch64::AEK_SSBS | AArch64::AEK_SB,
+ AArch64::AEK_SSBS | AArch64::AEK_SB,
"8.6-A"),
ARMCPUTestParams(
"neoverse-512tvb", "armv8.4-a", "crypto-neon-fp-armv8",
More information about the llvm-commits
mailing list