From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 ; 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 ; 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-Google-Smtp-Source: AMrXdXvmqVsmZeaeteLP3s0wAYaEFM8f+IOO5KuKIiBBvdGyOctS5M/Lh9cqeISwFpuFWq+d6QFLBw== 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 To: binutils@sourceware.org, Nelson Chu , Andrew Waterman , Palmer Dabbelt , Jim Wilson , Philipp Tomsich , Aaron Durbin , Andrew de los Reyes , Eric Gouriou , Barna Ibrahim Cc: =?UTF-8?q?Christoph=20M=C3=BCllner?= 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 List-Id: From: Christoph Müllner 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