Skip to content

Commit 65f5e2c

Browse files
authored
[RISC-V] Add another missing cast in .td file (#85055)
Another instance where we produce an instruction that defines a vreg with an i32 value.
1 parent ece2c25 commit 65f5e2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfo.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,8 @@ multiclass BccPat<CondCode Cond, RVInstB Inst> {
14051405

14061406
class BrccCompressOpt<CondCode Cond, RVInstB Inst>
14071407
: Pat<(riscv_brcc GPR:$lhs, simm12_no6:$Constant, Cond, bb:$place),
1408-
(Inst (ADDI GPR:$lhs, (NegImm simm12:$Constant)), (XLenVT X0), bb:$place)>;
1408+
(Inst (XLenVT (ADDI GPR:$lhs, (NegImm simm12:$Constant))),
1409+
(XLenVT X0), bb:$place)>;
14091410

14101411
defm : BccPat<SETEQ, BEQ>;
14111412
defm : BccPat<SETNE, BNE>;

0 commit comments

Comments
 (0)