Skip to content

Commit bf1a33e

Browse files
committed
fixup! Recommit [RISCV] Update the interface of sifive vqmaccqoq (llvm#74284)
1 parent 6efc6f1 commit bf1a33e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoXSf.td

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ multiclass VPseudoSiFiveVQMACCDOD<string Constraint = ""> {
356356
}
357357

358358
multiclass VPseudoSiFiveVQMACCQOQ<string Constraint = ""> {
359-
foreach i = [0, 1, 2, 3] in
359+
foreach i = 0-3 in
360360
let VLMul = MxListVF4[i].value in
361361
defm NAME : VPseudoSiFiveVMACC<MxListVF4[i].MX, MxListVF8[i].vrclass,
362362
MxListVF4[i].vrclass, Constraint>;
@@ -560,17 +560,15 @@ class GetFTypeInfo<int Sew> {
560560
}
561561

562562
multiclass VPatVMACC<string intrinsic, string instruction, string kind,
563-
list<VTypeInfoToWide> info_pairs, ValueType vec_m1,
564-
bit lmul_follows_vd = 0> {
563+
list<VTypeInfoToWide> info_pairs, ValueType vec_m1> {
565564
foreach pair = info_pairs in {
566565
defvar VdInfo = pair.Wti;
567566
defvar Vs2Info = pair.Vti;
568-
defvar LMul = !if(!eq(lmul_follows_vd, 1), VdInfo.LMul, Vs2Info.LMul);
569567
let Predicates = [HasVInstructions] in
570568
def : VPatTernaryNoMaskWithPolicy<"int_riscv_sf_" # intrinsic,
571569
"Pseudo" # instruction, kind, VdInfo.Vector,
572570
vec_m1, Vs2Info.Vector,
573-
Vs2Info.Log2SEW, LMul,
571+
Vs2Info.Log2SEW, Vs2Info.LMul,
574572
VdInfo.RegClass, VR, Vs2Info.RegClass>;
575573
}
576574
}
@@ -590,7 +588,7 @@ defset list<VTypeInfoToWide> VQMACCQOQInfoPairs = {
590588
}
591589

592590
multiclass VPatVQMACCDOD<string intrinsic, string instruction, string kind>
593-
: VPatVMACC<intrinsic, instruction, kind, VQMACCDODInfoPairs, vint8m1_t, 1>;
591+
: VPatVMACC<intrinsic, instruction, kind, VQMACCDODInfoPairs, vint8m1_t>;
594592

595593
multiclass VPatVQMACCQOQ<string intrinsic, string instruction, string kind>
596594
: VPatVMACC<intrinsic, instruction, kind, VQMACCQOQInfoPairs, vint8m1_t>;

0 commit comments

Comments
 (0)