[llvm] 842f7b0 - [AArch64] make +dit non-FMV-only (#90987)
Tomas Matheson via llvm-commits
llvm-commits at lists.llvm.org
Fri May 10 10:49:10 PDT 2024
Author: Tomas Matheson
Date: 2024-05-10T18:48:50+01:00
New Revision: 842f7b0fe7f70f5f66d925e57bab0123eedcc5d2
URL: https://github.com/llvm/llvm-project/commit/842f7b0fe7f70f5f66d925e57bab0123eedcc5d2
DIFF: https://github.com/llvm/llvm-project/commit/842f7b0fe7f70f5f66d925e57bab0123eedcc5d2.diff
LOG: [AArch64] make +dit non-FMV-only (#90987)
Required to fix an llvm-test-suite failure:
error: expected writable system register or pstate: "msr DIT, x0"
Added:
Modified:
llvm/lib/Target/AArch64/AArch64Features.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64Features.td b/llvm/lib/Target/AArch64/AArch64Features.td
index 3425ac4133026..920ca7f4fbfcb 100644
--- a/llvm/lib/Target/AArch64/AArch64Features.td
+++ b/llvm/lib/Target/AArch64/AArch64Features.td
@@ -71,7 +71,6 @@ class FMVOnlyExtension<string FMVBit, string Name, string Deps, int Priority>
}
def : FMVOnlyExtension<"FEAT_DGH", "dgh", "", 260>;
-def : FMVOnlyExtension<"FEAT_DIT", "dit", "+dit", 180>;
def : FMVOnlyExtension<"FEAT_DPB", "dpb", "+ccpp", 190>;
def : FMVOnlyExtension<"FEAT_DPB2", "dpb2", "+ccpp,+ccdp", 200>;
def : FMVOnlyExtension<"FEAT_EBF16", "ebf16", "+bf16", 290>;
@@ -455,9 +454,10 @@ def FeatureMPAM : SubtargetFeature<
"mpam", "HasMPAM", "true",
"Enable v8.4-A Memory system Partitioning and Monitoring extension (FEAT_MPAM)">;
-def FeatureDIT : SubtargetFeature<
- "dit", "HasDIT", "true",
- "Enable v8.4-A Data Independent Timing instructions (FEAT_DIT)">;
+def FeatureDIT : Extension<
+ "dit", "DIT",
+ "Enable v8.4-A Data Independent Timing instructions (FEAT_DIT)", [],
+ "FEAT_DIT", "+dit", 180>;
def FeatureTRACEV8_4 : SubtargetFeature<
"tracev8.4", "HasTRACEV8_4", "true",
More information about the llvm-commits
mailing list