[llvm] [RISCV] Support uimm5 operands for Xqcicm cmovs (PR #210955)

Sudharsan Veeravalli via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 21 08:07:56 PDT 2026


================
@@ -376,10 +377,12 @@ bool RISCVExpandPseudo::expandCCOpToCMov(MachineBasicBlock &MBB,
   case RISCV::BGEU:
     CMovRegOpcode = RISCV::QC_MVLTU;
     CMovImmOpcode = RISCV::QC_MVLTUI;
+    IsSigned = false;
     break;
   case RISCV::BLTU:
     CMovRegOpcode = RISCV::QC_MVGEU;
     CMovImmOpcode = RISCV::QC_MVGEUI;
+    IsSigned = false;
----------------
svs-quic wrote:

I think for these two case we will almost always chose the CMovRegOpcode with the immediate being loaded into a register. I have added the IsSigned check here as well but wasn't able to figure out a test.

Any thoughts?

https://github.com/llvm/llvm-project/pull/210955


More information about the llvm-commits mailing list