[llvm] [RISCV] Codegen support for XCVmem extension (PR #76916)

Liao Chunyu via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 4 22:19:45 PST 2024


================
@@ -1210,7 +1210,7 @@ struct RISCVOperand final : public MCParsedAsmOperand {
   }
 
   void addRegRegOperands(MCInst &Inst, unsigned N) const {
-    assert(N == 1 && "Invalid number of operands!");
+    assert(N == 2 && "Invalid number of operands!");
----------------
ChunyuLiao wrote:

I think it's because I'm using `let MIOperandInfo = (ops GPR:$base, GPR:$offset)` for CVrr operand, so it triggers the assert.

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


More information about the llvm-commits mailing list