Skip to content

Commit 842f7b0

Browse files
committed
[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"
1 parent 7c555cb commit 842f7b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/AArch64/AArch64Features.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ class FMVOnlyExtension<string FMVBit, string Name, string Deps, int Priority>
7171
}
7272

7373
def : FMVOnlyExtension<"FEAT_DGH", "dgh", "", 260>;
74-
def : FMVOnlyExtension<"FEAT_DIT", "dit", "+dit", 180>;
7574
def : FMVOnlyExtension<"FEAT_DPB", "dpb", "+ccpp", 190>;
7675
def : FMVOnlyExtension<"FEAT_DPB2", "dpb2", "+ccpp,+ccdp", 200>;
7776
def : FMVOnlyExtension<"FEAT_EBF16", "ebf16", "+bf16", 290>;
@@ -455,9 +454,10 @@ def FeatureMPAM : SubtargetFeature<
455454
"mpam", "HasMPAM", "true",
456455
"Enable v8.4-A Memory system Partitioning and Monitoring extension (FEAT_MPAM)">;
457456

458-
def FeatureDIT : SubtargetFeature<
459-
"dit", "HasDIT", "true",
460-
"Enable v8.4-A Data Independent Timing instructions (FEAT_DIT)">;
457+
def FeatureDIT : Extension<
458+
"dit", "DIT",
459+
"Enable v8.4-A Data Independent Timing instructions (FEAT_DIT)", [],
460+
"FEAT_DIT", "+dit", 180>;
461461

462462
def FeatureTRACEV8_4 : SubtargetFeature<
463463
"tracev8.4", "HasTRACEV8_4", "true",

0 commit comments

Comments
 (0)