Message ID | 20221221170706.2877188-1-christoph.muellner@vrull.eu |
---|---|
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp3637705wrn; Wed, 21 Dec 2022 09:07:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXtB1tFGCTYkPIxkKXUI/tSNnOoUureunFxjvEK8KhhynKBQC8nRrfnhMg2q1oiIE7y2xGKF X-Received: by 2002:a50:8d8d:0:b0:469:15eb:16fa with SMTP id r13-20020a508d8d000000b0046915eb16famr2216940edh.13.1671642444873; Wed, 21 Dec 2022 09:07:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671642444; cv=none; d=google.com; s=arc-20160816; b=pNE/5so2u4Us2PAb14loLAQ+5ol/bcCDsvn+AQLre9JtSS/97DuLvq37ZEAak6DyL3 +z7TgSG75vSz08QZvd5PkeHYZW03AGy18mQiW1NEBezQ3HSuNS1WL98eaFaloQz4D+vl AZFEsE1JGH5aNN+QAuLhWEpoj/vK1bxaNP/NSDdTTrGGxnwJ5o75D3mBglS4sjtZMseZ P9/4PNbAw/aFzUgBc22cOdfqth6gJqs/bGNhVDJq/jLWhmUvOVl+pBeRotd087bBqPpB ff+LFNenVmZSMxC8uApNOYdQwcJYuRkXOhCu7Baqr14L6cpWfY5yGQxT4LW7yMgEPkkT domQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dmarc-filter:delivered-to; bh=j4tUYh8KgP09QAAJsbCjkJve5yp3DpfrTIli6MVWHBc=; b=CrIbT5ngdtGCb35tG2tLAYOsVQLC6ksoEWUoCOsdPvaS1ZelPRmqTLQpU+vHrQ9iTs kkCjSs6ntwR1KCRLEmb8rRs6dZ79hbEPmsHpsvnwJAvQT8QxRJDPzz5n2UkAYSDNflzo gKtrOS8aiQprsDIdu1xOQ+HI87iB8kJpaHDbxC0iJ3POYjhlrL9TRVxpidGd6U+Vtppo KQiw4lR1QU+nUjziJg4P1IjdQB1eUeiusqDjB0a7EkondtNGk8/13xhwcG4l//mmIdbB 4o67vpkW0bx1dN1sng50QpABJqIicDGuT/oP5oZ7La/6+wgGanAcHcw4bVurd0/44xMp 8s2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vrull.eu header.s=google header.b="Lce/B85y"; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id dz20-20020a0564021d5400b0047035379d79si15197831edb.556.2022.12.21.09.07.24 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Dec 2022 09:07:24 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@vrull.eu header.s=google header.b="Lce/B85y"; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 816DD385B520 for <ouuuleilei@gmail.com>; Wed, 21 Dec 2022 17:07:23 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id 32D7E3858425 for <binutils@sourceware.org>; Wed, 21 Dec 2022 17:07:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 32D7E3858425 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=vrull.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=vrull.eu Received: by mail-ej1-x62f.google.com with SMTP id x22so38272912ejs.11 for <binutils@sourceware.org>; Wed, 21 Dec 2022 09:07:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=j4tUYh8KgP09QAAJsbCjkJve5yp3DpfrTIli6MVWHBc=; b=Lce/B85ySFbm2eCTz3jZmiTf6Ge4hDTng7NHxpvkxcywnMPoSTSk46u+SaTXFdL2Hy YGechhx/jTTx5p+0GC3q1SQ/mK+Q6T8J6ZSXPdCOcTZ7Rj0M8NH84NShaF345+kKq2Ki ydXymZZi4zxHMyqzcXnVJQVH9H2CAoSCf/Fd7i8aFNIk/tzbMEhxfopqbqvHs9QUQp++ EZ8nTZCUCJJuQznGIdwIZEZl6WAAh6zKiZVRK+0+/obPoJnbdPthdFFxcWfXFmGx1nas eVQVK9ajZkMD5pLgqWuozJ3dm/rY3fwaH6iWbQKxnYktt834SLCuCXZ6tsBP3rHomlcV Y3/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=j4tUYh8KgP09QAAJsbCjkJve5yp3DpfrTIli6MVWHBc=; b=LZykNFOocc/3P2HOuNz5tqmKSnLR+NKgltitjRazdfu2H9KCnebca4NAjfpZWV0Vwt wrjzikdgdH37Osm8g75C6sBYMBEvSBVRJMt1qevb0p3VzV9yqtTkRiUM0/bdFlG+U7H4 nS86nbyucN9NWZNgGQrgVIJsBWjaddCSOG814Ue2yovmaP08XvNrpAR5zDuV+OtVVjHI TeDot0kw2HxUwiBhg8PlQa4TRLUTvH3/tldyNwJzoP0BvUK2hUKBbRlvaSv21L1EsWqu GQ0z81RcQfCpRPs+kyowFFh7oHCkcCQIKD07a5YYf7k5SBRgMvIlLJ2Zw8G84hDEH/Jq GefA== X-Gm-Message-State: AFqh2krG6dpTYo72fnK8H7BT/+CwQZugp9dypdyjtCBJzdaoC1bSzVKH CS9xQZ3UMYGFuTUCSEDsdgQeTxLmpyE+DEVT X-Received: by 2002:a17:906:6dce:b0:7c3:e3ef:bca1 with SMTP id j14-20020a1709066dce00b007c3e3efbca1mr1935234ejt.60.1671642429228; Wed, 21 Dec 2022 09:07:09 -0800 (PST) Received: from beast.fritz.box (62-178-148-172.cable.dynamic.surfer.at. [62.178.148.172]) by smtp.gmail.com with ESMTPSA id t18-20020a17090605d200b007c16430e5c8sm7344770ejt.92.2022.12.21.09.07.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Dec 2022 09:07:08 -0800 (PST) From: Christoph Muellner <christoph.muellner@vrull.eu> To: binutils@sourceware.org, Nelson Chu <nelson@rivosinc.com>, Andrew Waterman <andrew@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Jim Wilson <jim.wilson.gcc@gmail.com>, Philipp Tomsich <philipp.tomsich@vrull.eu>, Aaron Durbin <adurbin@rivosinc.com>, Andrew de los Reyes <adlr@rivosinc.com>, Eric Gouriou <ego@rivosinc.com>, Barna Ibrahim <barna@rivosinc.com> Cc: =?utf-8?q?Christoph_M=C3=BCllner?= <christoph.muellner@vrull.eu> Subject: [RFC PATCH 0/6] RISC-V: Add support for vector crypto extensions Date: Wed, 21 Dec 2022 18:07:00 +0100 Message-Id: <20221221170706.2877188-1-christoph.muellner@vrull.eu> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, JMQ_SPF_NEUTRAL, KAM_MANYTO, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 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+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752844148693599387?= X-GMAIL-MSGID: =?utf-8?q?1752844148693599387?= |
Series |
RISC-V: Add support for vector crypto extensions
|
|
Message
Christoph Müllner
Dec. 21, 2022, 5:07 p.m. UTC
From: Christoph Müllner <christoph.muellner@vrull.eu>
This series add support for the vector crypto extensions:
* Zvkb
* Zvkg
* Zvkh[a,b]
* Zvkn
* Zvksed
* Zvksh
The implementation follows the version 20221220 of the specification,
which can be found here:
https://github.com/riscv/riscv-crypto/releases/tag/v20221220
Note, that this specification is not frozen yet, meaning that
incompatible changes are possible.
Therefore, this patchset is marked as RFC and should not be considered
for upstream inclusion.
All extensions come with (passing) tests.
A branch with all patches applied can be found in this GitHub repo:
https://github.com/cmuellner/binutils-gdb/tree/riscv-zvk
Christoph Müllner (6):
RISC-V: Add Zvkb ISA extension support
RISC-V: Add Zvkg ISA extension support
RISC-V: Add Zvkh[a,b] ISA extension support
RISC-V: Add Zvkn ISA extension support
RISC-V: Add Zvksed ISA extension support
RISC-V: Add Zvksh ISA extension support
bfd/elfxx-riscv.c | 38 +++++++++
gas/config/tc-riscv.c | 13 +++
gas/testsuite/gas/riscv/zvkb.d | 36 ++++++++
gas/testsuite/gas/riscv/zvkb.s | 28 +++++++
gas/testsuite/gas/riscv/zvkg.d | 9 ++
gas/testsuite/gas/riscv/zvkg.s | 1 +
gas/testsuite/gas/riscv/zvkha.d | 12 +++
gas/testsuite/gas/riscv/zvkha_zvkhb.s | 3 +
gas/testsuite/gas/riscv/zvkhb.d | 12 +++
gas/testsuite/gas/riscv/zvkn.d | 21 +++++
gas/testsuite/gas/riscv/zvkn.s | 13 +++
gas/testsuite/gas/riscv/zvksed.d | 12 +++
gas/testsuite/gas/riscv/zvksed.s | 4 +
gas/testsuite/gas/riscv/zvksh.d | 11 +++
gas/testsuite/gas/riscv/zvksh.s | 3 +
include/opcode/riscv-opc.h | 114 ++++++++++++++++++++++++++
include/opcode/riscv.h | 12 +++
opcodes/riscv-dis.c | 4 +
opcodes/riscv-opc.c | 46 +++++++++++
19 files changed, 392 insertions(+)
create mode 100644 gas/testsuite/gas/riscv/zvkb.d
create mode 100644 gas/testsuite/gas/riscv/zvkb.s
create mode 100644 gas/testsuite/gas/riscv/zvkg.d
create mode 100644 gas/testsuite/gas/riscv/zvkg.s
create mode 100644 gas/testsuite/gas/riscv/zvkha.d
create mode 100644 gas/testsuite/gas/riscv/zvkha_zvkhb.s
create mode 100644 gas/testsuite/gas/riscv/zvkhb.d
create mode 100644 gas/testsuite/gas/riscv/zvkn.d
create mode 100644 gas/testsuite/gas/riscv/zvkn.s
create mode 100644 gas/testsuite/gas/riscv/zvksed.d
create mode 100644 gas/testsuite/gas/riscv/zvksed.s
create mode 100644 gas/testsuite/gas/riscv/zvksh.d
create mode 100644 gas/testsuite/gas/riscv/zvksh.s
Comments
Thanks for the patch! actually I've a downstream version for that too, but apparently isn't as complete as your version (due to lack testsuite) :P On Thu, Dec 22, 2022 at 1:08 AM Christoph Muellner <christoph.muellner@vrull.eu> wrote: > > From: Christoph Müllner <christoph.muellner@vrull.eu> > > This series add support for the vector crypto extensions: > * Zvkb > * Zvkg > * Zvkh[a,b] > * Zvkn > * Zvksed > * Zvksh > > The implementation follows the version 20221220 of the specification, > which can be found here: > https://github.com/riscv/riscv-crypto/releases/tag/v20221220 > > Note, that this specification is not frozen yet, meaning that > incompatible changes are possible. > Therefore, this patchset is marked as RFC and should not be considered > for upstream inclusion. > > All extensions come with (passing) tests. > > A branch with all patches applied can be found in this GitHub repo: > https://github.com/cmuellner/binutils-gdb/tree/riscv-zvk > > Christoph Müllner (6): > RISC-V: Add Zvkb ISA extension support > RISC-V: Add Zvkg ISA extension support > RISC-V: Add Zvkh[a,b] ISA extension support > RISC-V: Add Zvkn ISA extension support > RISC-V: Add Zvksed ISA extension support > RISC-V: Add Zvksh ISA extension support > > bfd/elfxx-riscv.c | 38 +++++++++ > gas/config/tc-riscv.c | 13 +++ > gas/testsuite/gas/riscv/zvkb.d | 36 ++++++++ > gas/testsuite/gas/riscv/zvkb.s | 28 +++++++ > gas/testsuite/gas/riscv/zvkg.d | 9 ++ > gas/testsuite/gas/riscv/zvkg.s | 1 + > gas/testsuite/gas/riscv/zvkha.d | 12 +++ > gas/testsuite/gas/riscv/zvkha_zvkhb.s | 3 + > gas/testsuite/gas/riscv/zvkhb.d | 12 +++ > gas/testsuite/gas/riscv/zvkn.d | 21 +++++ > gas/testsuite/gas/riscv/zvkn.s | 13 +++ > gas/testsuite/gas/riscv/zvksed.d | 12 +++ > gas/testsuite/gas/riscv/zvksed.s | 4 + > gas/testsuite/gas/riscv/zvksh.d | 11 +++ > gas/testsuite/gas/riscv/zvksh.s | 3 + > include/opcode/riscv-opc.h | 114 ++++++++++++++++++++++++++ > include/opcode/riscv.h | 12 +++ > opcodes/riscv-dis.c | 4 + > opcodes/riscv-opc.c | 46 +++++++++++ > 19 files changed, 392 insertions(+) > create mode 100644 gas/testsuite/gas/riscv/zvkb.d > create mode 100644 gas/testsuite/gas/riscv/zvkb.s > create mode 100644 gas/testsuite/gas/riscv/zvkg.d > create mode 100644 gas/testsuite/gas/riscv/zvkg.s > create mode 100644 gas/testsuite/gas/riscv/zvkha.d > create mode 100644 gas/testsuite/gas/riscv/zvkha_zvkhb.s > create mode 100644 gas/testsuite/gas/riscv/zvkhb.d > create mode 100644 gas/testsuite/gas/riscv/zvkn.d > create mode 100644 gas/testsuite/gas/riscv/zvkn.s > create mode 100644 gas/testsuite/gas/riscv/zvksed.d > create mode 100644 gas/testsuite/gas/riscv/zvksed.s > create mode 100644 gas/testsuite/gas/riscv/zvksh.d > create mode 100644 gas/testsuite/gas/riscv/zvksh.s > > -- > 2.38.1 >