[clang] [llvm] [RISCV][MC] Add assembler support for XRivosVisni (PR #128773)
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 25 14:40:49 PST 2025
================
@@ -10,6 +10,46 @@
//
//===----------------------------------------------------------------------===//
+class RVInstVXI<bits<6> funct6, RISCVVFormat opv, dag outs, dag ins,
+ string opcodestr, string argstr>
+ : RVInst<outs, ins, opcodestr, argstr, [], InstFormatR> {
+ bits<5> imm;
+ bits<5> rs1;
+ bits<5> vd;
+ bit vm;
+
+ let Inst{31-26} = funct6;
+ let Inst{25} = vm;
+ let Inst{24-20} = imm;
+ let Inst{19-15} = rs1;
+ let Inst{14-12} = opv.Value;
+ let Inst{11-7} = vd;
+ let Inst{6-0} = OPC_OP_V.Value;
----------------
topperc wrote:
The spec uses CUSTOM_2 not OP_V
https://github.com/llvm/llvm-project/pull/128773
More information about the cfe-commits
mailing list