| Message ID | 20260525082008.1219171-1-zhuangqiubin@linux.spacemit.com |
|---|---|
| Headers |
Return-Path: <binutils-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2F5684BA23D3 for <patchwork@sourceware.org>; Mon, 25 May 2026 08:22:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F5684BA23D3 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=linux.spacemit.com header.i=@linux.spacemit.com header.a=rsa-sha256 header.s=mxsw2412 header.b=fKW4Pl+I X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from smtpbg150.qq.com (smtpbg150.qq.com [18.132.163.193]) by sourceware.org (Postfix) with ESMTPS id AF6B64BA2E1A for <binutils@sourceware.org>; Mon, 25 May 2026 08:20:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AF6B64BA2E1A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.spacemit.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=linux.spacemit.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AF6B64BA2E1A Authentication-Results: sourceware.org; arc=none smtp.remote-ip=18.132.163.193 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1779697238; cv=none; b=H/hBN5sT2uovdVzFSLUFUJLTllSL1aH9k5VBI9kJtyVN7Rep6ozDN07WfQgX5moWUCyuAlwfa1gHV30H2Zmzx12f0VKFjU3MBlKUr4aP6n5qLJk1nKLK2fCzOcGu85RaANb9vggIDU1U6phbrOgF8XGcTzwfNYTwEwNHZXGQefg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1779697238; c=relaxed/simple; bh=qdP29pWesavRmY8IqkfSC3ZWo5H1cod+Y+IccD/wNS8=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=QFrWhbbEHzy51EeU0aea59EiwjUbZ6b3lJD3RRNsM5YiAiWW2s3ci9ndN+XBdIVe1u9dy39tImw3KUU9azNiZZ0fJc5ge/WfKwG6pzvc6zon3oG8IuC+wplrOleANqx8BDh3ewcpjEuUdNxcOl9rIylFLiBj9UJYotJeK1d3Onc= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=linux.spacemit.com header.i=@linux.spacemit.com header.a=rsa-sha256 header.s=mxsw2412 header.b=fKW4Pl+I DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF6B64BA2E1A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.spacemit.com; s=mxsw2412; t=1779697221; bh=sQhmXrE9VgMsZXxu9e/TwkZxj3cYn5mqlqRz5lS+jNk=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=fKW4Pl+IjtDSMGsZPiz6iqggziY+3bsQCi9gRx3F7utAg1a0dZXErebNWAjTOCgqH 65HNBDe4uxRIkrxZ5N+qgLBsKwGBmmrTqmjA5fEn7GkSdRbAieaJDqTmMFa5UukdYC 5eSA4EVhBRXueuwbGZ/DLKWo/GnVl8YEVexTlQLY= X-QQ-mid: zesmtpsz2t1779697220t45625210 X-QQ-Originating-IP: e5Z7kTgz6JhtVJhXCsqNMwoLgRjHFIu3tRn/G+SjJiY= Received: from SNode3.. ( [61.145.255.150]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 25 May 2026 16:20:18 +0800 (CST) X-QQ-SSF: 0001000000000000000000000000000 X-QQ-GoodBg: 1 X-BIZMAIL-ID: 16156335544671662757 From: Mark Zhuang <zhuangqiubin@linux.spacemit.com> To: binutils@sourceware.org Cc: jbeulich@suse.com, schwab@suse.de, jiawei@iscas.ac.cn, nelson.chu1990@gmail.com Subject: [PATCH v6 0/2] RISC-V: Add SpacemiT vendor extensions xsmtvdot and xsmtvdotii Date: Mon, 25 May 2026 16:20:05 +0800 Message-Id: <20260525082008.1219171-1-zhuangqiubin@linux.spacemit.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <e066f12c-6e51-4d5f-ad2a-2955e99b5008@iscas.ac.cn> References: <e066f12c-6e51-4d5f-ad2a-2955e99b5008@iscas.ac.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: zesmtpsz:linux.spacemit.com:qybglogicsvrgz:qybglogicsvrgz5b-2 X-QQ-XMAILINFO: MNbA5mkmBXEJ223kJuUSDI94pouevnAjQhyagcDFLDJu1sTmp4qYWTuQ VHVte82Z4CUVL0DUqPt5cvy7AeAmmKRrtsGLShkj1OjLm2xaBbI9KtbzH/4vVo5UExSVHoz ThWLENx6eGG2E+rq42RU+or8vyeMJIYsTuKDKmtpfKfKyHe97eHB1mZJQ9y2wMRFwCP/YwK dzAB88mr+Adr09Wh7ykIrv0vq4N0W8dDBQKXMLn+t7EeOmURvyo8NKmpWSb/x/Oa8Qy8LNJ xDtVzQIaUzqTeLbDgz51Suz9Ldc/BXYhp/et/5baUiRRBf7VYoP9Z2G7UsDlnPEx5AVGNNZ fFjAQan6110iZo3nob4cMy3+huFw4f132ZJw7W4kgyXoB1GxmVz3WnfYo2gbcmpWw+oZ211 NchdjXksjuqMT8vSZLdk2Laj77d5Ou7meKuqM+oO2V281pQxJiM6ZnPQo6S8XcY+M799Sds Bk4ax3hgModOzVb0by0P0Qcwf4O+br5U4P7oz4ym4PS2itcCWOqshvHVQs3/NF5pQdJ3ggw gpIZ69pz2Mh7C+GnrkZV71EsscNTcK9Gid+FKtOZ8qtiRwh/qKUUE7gvn3qMFSMV0eBVAxS 2XAF9xd8XViMgsiEq+R3golX3EDzstt9ye0d21OwnZFE4edX+iNIOPU8p7QuSTlYT2IUerL mV2wMe90/BB6t8axB1RsfndjHHc1mpTb+TLUNP60kNVud3YbSGDeYbKAHhFko5vh6n/FXfd HGMM5H8bY7L/dpgrx9WCHSh9qUz0ALW5qR1taZOn2oqx0V3gHzs0naOJ7ZSk3JHXqT/596W ssZWKSB4MDQX1omVCdDH1q+jQY65qNDZSN4h8YdivuCP2qJpVcoEDyAoGL2L0HXHa5vUO7K QsfZXhL42/OS3LhJ6zlqIEyD2nl7uP22lwNy1/Vk8bwX67b+XTT+2ogkvN+strEgGPtr4Y+ J49laxOC7SvH51/d1fHlcR3fP07Y0Vazgu0GLE+3PVZU5HmjnSICbhcLIlTsXeSd4NU+z0h NV64HMQ6O1YukX39lrn80XbSCeEaw= X-QQ-XMRINFO: OWPUhxQsoeAVwkVaQIEGSKwwgKCxK/fD5g== X-QQ-RECHKSPAM: 0 X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_NONE, RCVD_IN_PBL, SPF_HELO_PASS, SPF_NONE, TXREP shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
RISC-V: Add SpacemiT vendor extensions xsmtvdot and xsmtvdotii
|
|
Message
Mark Zhuang
May 25, 2026, 8:20 a.m. UTC
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
Changes since v5:
- Fix grammar: "implement" -> "implements".
- riscv-dis.c: Jump to undefined_modifier when 'wi' field is neither 2 nor 3.
- riscv-opc.c: Remove the misleading comment.
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 | 54 ++++++
19 files changed, 1002 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