From: Mark Zhuang <zhuangqiubin@linux.spacemit.com>
To: binutils@sourceware.org
Cc: jbeulich@suse.com, schwab@suse.de
Subject: [PATCH v5 0/2] RISC-V: Add SpacemiT IME vendor extensions (xsmtvdot, xsmtvdotii)
Date: Sun, 3 May 2026 22:33:52 +0800 [thread overview]
Message-ID: <20260503143354.142807-1-zhuangqiubin@linux.spacemit.com> (raw)
In-Reply-To: <mvm5x5r8f2z.fsf@suse.de>
From: Mark Zhuang <mark.zhuang@spacemit.com>
This series adds support for two SpacemiT vendor extensions implementing
subsets of the SpacemiT Intrinsic Matrix Extension (IME) specification:
- XsmtVdot v1.0: Vector Dot Product Extension, implemented by SpacemiT X60
- XsmtVdotII v1.0: Vector Dot Product II Extension, implemented by
SpacemiT A100
Thanks to Jan and Andreas Schwab for reviewing.
Changes since v4:
1. Simplify code: replace the Xpw&S hex-bitmask operand with direct
operand matching, and remove unused i2 and i16 variants.
2. Add more test coverage.
3. Handle the unmatched operand branch with a proper error.
4. Add a new patch to support the xsmtvdotii extension. When v1 was
submitted five months ago, the xsmtvdotii spec was not yet ready.
Now that the SpacemiT K3 documentation has been published, we are
including it in this series.
Mark Zhuang (2):
RISC-V: Add SpacemiT vendor extension xsmtvdot
RISC-V: Add SpacemiT vendor extension xsmtvdotii
bfd/elfxx-riscv.c | 18 ++
gas/NEWS | 3 +
gas/config/tc-riscv.c | 183 +++++++++++++++++++
gas/doc/c-riscv.texi | 16 ++
gas/testsuite/gas/riscv/march-help.l | 2 +
gas/testsuite/gas/riscv/x-smt-vdot-fail.d | 3 +
gas/testsuite/gas/riscv/x-smt-vdot-fail.l | 73 ++++++++
gas/testsuite/gas/riscv/x-smt-vdot-fail.s | 50 +++++
gas/testsuite/gas/riscv/x-smt-vdot-ii-fail.d | 3 +
gas/testsuite/gas/riscv/x-smt-vdot-ii-fail.l | 99 ++++++++++
gas/testsuite/gas/riscv/x-smt-vdot-ii-fail.s | 118 ++++++++++++
gas/testsuite/gas/riscv/x-smt-vdot-ii.d | 69 +++++++
gas/testsuite/gas/riscv/x-smt-vdot-ii.s | 73 ++++++++
gas/testsuite/gas/riscv/x-smt-vdot.d | 41 +++++
gas/testsuite/gas/riscv/x-smt-vdot.s | 33 ++++
include/opcode/riscv-opc.h | 79 ++++++++
include/opcode/riscv.h | 16 ++
opcodes/riscv-dis.c | 69 +++++++
opcodes/riscv-opc.c | 58 ++++++
19 files changed, 1006 insertions(+)
create mode 100644 gas/testsuite/gas/riscv/x-smt-vdot-fail.d
create mode 100644 gas/testsuite/gas/riscv/x-smt-vdot-fail.l
create mode 100644 gas/testsuite/gas/riscv/x-smt-vdot-fail.s
create mode 100644 gas/testsuite/gas/riscv/x-smt-vdot-ii-fail.d
create mode 100644 gas/testsuite/gas/riscv/x-smt-vdot-ii-fail.l
create mode 100644 gas/testsuite/gas/riscv/x-smt-vdot-ii-fail.s
create mode 100644 gas/testsuite/gas/riscv/x-smt-vdot-ii.d
create mode 100644 gas/testsuite/gas/riscv/x-smt-vdot-ii.s
create mode 100644 gas/testsuite/gas/riscv/x-smt-vdot.d
create mode 100644 gas/testsuite/gas/riscv/x-smt-vdot.s
--
2.34.1
next prev parent reply other threads:[~2026-05-03 14:34 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-04 2:10 [PING^3][v2] RISC-V: Add SpacemiT vendor extensions xsmtvdot Mark Zhuang
2026-04-09 10:28 ` Michal Lach
2026-04-09 11:37 ` Mark Zhuang
2026-04-09 11:37 ` [PATCH] " Mark Zhuang
2026-04-09 12:21 ` Jan Beulich
2026-04-10 10:00 ` [PATCH v3 0/1] " Mark Zhuang
2026-04-10 10:00 ` [PATCH v3 1/1] " Mark Zhuang
2026-04-10 10:25 ` Jan Beulich
2026-04-10 15:11 ` [PATCH v4 0/1] " Mark Zhuang
2026-04-10 15:11 ` [PATCH v4 1/1] " Mark Zhuang
2026-04-16 6:34 ` Jan Beulich
2026-04-16 8:49 ` Andreas Schwab
2026-05-03 14:33 ` Mark Zhuang [this message]
2026-05-03 14:33 ` [PATCH v5 1/2] RISC-V: Add SpacemiT vendor extension xsmtvdot Mark Zhuang
2026-05-03 14:33 ` [PATCH v5 2/2] RISC-V: Add SpacemiT vendor extension xsmtvdotii Mark Zhuang
2026-04-16 6:28 ` [PATCH v4 0/1] RISC-V: Add SpacemiT vendor extensions xsmtvdot Jan Beulich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260503143354.142807-1-zhuangqiubin@linux.spacemit.com \
--to=zhuangqiubin@linux.spacemit.com \
--cc=binutils@sourceware.org \
--cc=jbeulich@suse.com \
--cc=schwab@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).