Skip to content

Commit

Permalink
[AArch64] make +dit non-FMV-only (#90987)
Browse files Browse the repository at this point in the history
Required to fix an llvm-test-suite failure:

    error: expected writable system register or pstate: "msr DIT, x0"
  • Loading branch information
tmatheson-arm committed May 10, 2024
1 parent 7c555cb commit 842f7b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions llvm/lib/Target/AArch64/AArch64Features.td
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 842f7b0

Please sign in to comment.