[llvm] [RISCV] Codegen support for XCVbi extension (PR #89719)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 23 09:37:49 PDT 2024


================
@@ -18035,6 +18053,7 @@ RISCVTargetLowering::EmitInstrWithCustomInserter(MachineInstr &MI,
            "ReadCounterWide is only to be used on riscv32");
     return emitReadCounterWidePseudo(MI, BB);
   case RISCV::Select_GPR_Using_CC_GPR:
+  case RISCV::Select_IMM_Using_CC_GPR:
   case RISCV::Select_FPR16_Using_CC_GPR:
----------------
topperc wrote:

Don't we need versions of all of these opcodes with an immediate condition? When you created RISCVISD::SELECTIMM_CC, you didn't check that the result type was integer so FP is possible.

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


More information about the llvm-commits mailing list