Skip to content

Commit de4956e

Browse files
4vtomatDanielCChen
authored andcommitted
[RISCV][VCIX] Add a tied constraint between rd and rs3 in sf.v.xvv and sf.v.xvw instructions (llvm#111630)
The instruction has the constraint, but the pseudo instruction is missing.
1 parent 0de27a4 commit de4956e

File tree

3 files changed

+345
-344
lines changed

3 files changed

+345
-344
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoXSf.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ class VPseudoVC_V_XVV<Operand OpClass, VReg RDClass, VReg RS2Class,
305305
let HasVLOp = 1;
306306
let HasSEWOp = 1;
307307
let hasSideEffects = 0;
308+
let Constraints = "$rd = $rs3";
308309
let BaseInstr = !cast<Instruction>(PseudoToVInst<NAME>.VInst);
309310
}
310311

0 commit comments

Comments
 (0)