[clang] [llvm] [RISCV][MC] Add experimental `Zvvmm` MC support (PR #193956)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 27 03:38:08 PDT 2026
================
@@ -0,0 +1,49 @@
+//===---- RISCVInstrInfoZvvmm.td - 'Zvvmm' instructions -*- tablegen -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This file describes the RISC-V instructions from the standard 'Zvvmm'
+// extension for integer matrix multiply-accumulate.
+// This version is still experimental as the 'Zvvmm' extension hasn't been
+// ratified yet.
+//
+//===----------------------------------------------------------------------===//
+
+//===----------------------------------------------------------------------===//
+// Instructions
+//===----------------------------------------------------------------------===//
+
+class VIMEMACVV<bits<6> funct6, string opcodestr>
+ : RVInstVV<funct6, OPIVV, (outs VR:$vd_wb),
+ (ins VR:$vd, VR:$vs1, VR:$vs2), opcodestr,
+ "$vd, $vs1, $vs2"> {
+ let mayLoad = 0;
+ let mayStore = 0;
+ let hasSideEffects = 0;
+ let Constraints = "$vd = $vd_wb";
+ let vm = 1;
+ let VMConstraint = false;
+}
+
+let Predicates = [HasStdExtZvvmm] in {
+ def VMMACC_VV
+ : VIMEMACVV<0b111000, "vmmacc.vv">,
+ SchedTernaryMC<"WriteVIMulAddV", "ReadVIMulAddV", "ReadVIMulAddV",
----------------
imkiva wrote:
Thanks. Removed
https://github.com/llvm/llvm-project/pull/193956
More information about the cfe-commits
mailing list