Skip to content

Commit 9b7bf1f

Browse files
committed
[RISCV] Set the SEW field in the VPseudoTiedBinaryRoundingMode.
Noticed some oddities in the InversePseudo table. TIED pseudos are in there but sorted differently than their non-TIED version. I think we always check non-zero SEW first which should hit the non-tied version. I'm working on a larger patch to remove _MASK and _TIED from the InversePseudo table.
1 parent 0859df4 commit 9b7bf1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2168,7 +2168,7 @@ multiclass VPseudoTiedBinaryRoundingMode<VReg RetClass,
21682168
int sew = 0,
21692169
bits<2> TargetConstraintType = 1> {
21702170
defvar suffix = !if(sew, "_" # MInfo.MX # "_E" # sew, "_" # MInfo.MX);
2171-
let VLMul = MInfo.value in {
2171+
let VLMul = MInfo.value, SEW=sew in {
21722172
def suffix # "_TIED":
21732173
VPseudoTiedBinaryNoMaskRoundingMode<RetClass, Op2Class, Constraint, TargetConstraintType>;
21742174
def suffix # "_MASK_TIED" :

0 commit comments

Comments
 (0)