Skip to content

Commit d38979d

Browse files
authored
Revert "[PowerPC] clean unused PPC target feature FeatureBPERMD" (llvm#159837)
Reverts llvm#159782 The PR breaks multiple build bots and CI as well.
1 parent ef1372a commit d38979d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/lib/Target/PowerPC/PPC.td

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ def FeatureFPCVT : SubtargetFeature<"fpcvt", "HasFPCVT", "true",
129129
[FeatureFPU]>;
130130
def FeatureISEL : SubtargetFeature<"isel","HasISEL", "true",
131131
"Enable the isel instruction">;
132+
def FeatureBPERMD : SubtargetFeature<"bpermd", "HasBPERMD", "true",
133+
"Enable the bpermd instruction">;
132134
def FeatureExtDiv : SubtargetFeature<"extdiv", "HasExtDiv", "true",
133135
"Enable extended divide instructions">;
134136
def FeatureLDBRX : SubtargetFeature<"ldbrx","HasLDBRX", "true",
@@ -375,7 +377,7 @@ def NoNaNsFPMath
375377
: Predicate<"Subtarget->getTargetMachine().Options.NoNaNsFPMath">;
376378
def NaNsFPMath
377379
: Predicate<"!Subtarget->getTargetMachine().Options.NoNaNsFPMath">;
378-
def HasBPERMD : Predicate<"Subtarget->getCPUDirective() >= PPC::DIR_PWR7">;
380+
def HasBPERMD : Predicate<"Subtarget->hasBPERMD()">;
379381
def HasExtDiv : Predicate<"Subtarget->hasExtDiv()">;
380382
def IsISA2_06 : Predicate<"Subtarget->isISA2_06()">;
381383
def IsISA2_07 : Predicate<"Subtarget->isISA2_07()">;
@@ -440,6 +442,7 @@ def ProcessorFeatures {
440442
FeatureLDBRX,
441443
Feature64BitSupport,
442444
/* Feature64BitRegs, */
445+
FeatureBPERMD,
443446
FeatureExtDiv,
444447
FeatureMFTB,
445448
DeprecatedDST,

0 commit comments

Comments
 (0)