Skip to content

Commit ff62a78

Browse files
committed
[Fix] code review.
1 parent 3d857ca commit ff62a78

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

llvm/lib/Target/RISCV/RISCVFeatures.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1644,7 +1644,7 @@ def HasVendorXAndesVDot
16441644

16451645
def FeatureVendorXSMTVDot
16461646
: RISCVExtension<1, 0, "SpacemiT Vector Dot Product Extension",
1647-
[FeatureStdExtV]>;
1647+
[FeatureStdExtZve32f]>;
16481648
def HasVendorXSMTVDot
16491649
: Predicate<"Subtarget->hasVendorXSMTVDot()">,
16501650
AssemblerPredicate<(all_of FeatureVendorXSMTVDot),

llvm/lib/Target/RISCV/RISCVInstrInfoXSMTVDot.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88
//
99
// This file describes the xsmtvdot vendor extensions defined by SpacemiT.
10+
// NOTE: This extension instructions only support cases where LMUL is less than
11+
// or equal to 1
1012
//
1113
//===----------------------------------------------------------------------===//
1214

llvm/lib/Target/RISCV/RISCVRegisterInfo.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,8 @@ def VR : VReg<!listconcat(VM1VTs, VMaskVTs),
787787

788788
def VRNoV0 : VReg<!listconcat(VM1VTs, VMaskVTs), (sub VR, V0), 1>;
789789

790-
def VREven : VReg<!listconcat(VM1VTs, VMaskVTs), (add (sequence "V%u", 0, 31, 2)), 1>;
790+
def VREven : VReg<!listconcat(VM1VTs, VMaskVTs),
791+
(add (sequence "V%u", 0, 30, 2)), 1>;
791792

792793
def VRM2 : VReg<VM2VTs, (add (sequence "V%uM2", 8, 31, 2),
793794
(sequence "V%uM2", 6, 0, 2)), 2>;

0 commit comments

Comments
 (0)