Skip to content

Commit a11e683

Browse files
topperclenary
andauthored
Update llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
Co-authored-by: Sam Elliott <[email protected]>
1 parent 33247a8 commit a11e683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ inline static unsigned encodeRlistNumRegs(unsigned NumRegs) {
628628
assert(NumRegs > 0 && NumRegs < 14 && NumRegs != 12 &&
629629
"Unexpected number of registers");
630630
if (NumRegs == 13)
631-
--NumRegs;
631+
return RLISTENCODE::RA_S0_S11;
632632

633633
return RLISTENCODE::RA + (NumRegs - 1);
634634
}

0 commit comments

Comments
 (0)