diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td index d1a823be25b6..ab0b2ae00ab1 100644 --- a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td +++ b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td @@ -1581,13 +1581,13 @@ multiclass VPseudoTernaryV_VX_AAXA { multiclass VPseudoTernaryW_VV { defvar constraint = "@earlyclobber $rd"; - foreach m = MxList.m in + foreach m = MxList.m[0-5] in defm _VV : VPseudoTernary; } multiclass VPseudoTernaryW_VX { defvar constraint = "@earlyclobber $rd"; - foreach m = MxList.m in + foreach m = MxList.m[0-5] in defm !if(IsFloat, "_VF", "_VX") : VPseudoTernary; }