Skip to content

Commit 7317e3c

Browse files
committed
[NFC][RISCV] Correct signed/unsigned in Comment
1 parent fc2146e commit 7317e3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2525,7 +2525,8 @@ static void translateSetCCForBranch(const SDLoc &DL, SDValue &LHS, SDValue &RHS,
25252525
case ISD::SETUGT:
25262526
if (Subtarget.hasVendorXqcibi() && C != INT64_MAX && isUInt<16>(C + 1)) {
25272527
// We have a branch immediate instruction for SETUGE but not SETUGT.
2528-
// Convert X > C to X >= C + 1, if (C + 1) is a 16-bit signed immediate.
2528+
// Convert X > C to X >= C + 1, if (C + 1) is a 16-bit unsigned
2529+
// immediate.
25292530
RHS = DAG.getConstant(C + 1, DL, RHS.getValueType());
25302531
CC = ISD::SETUGE;
25312532
return;

0 commit comments

Comments
 (0)