From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id 03E6138493CA for ; Mon, 13 Feb 2023 13:39:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 03E6138493CA 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-wr1-x42d.google.com with SMTP id k3so4630915wrv.5 for ; Mon, 13 Feb 2023 05:39:54 -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=bD/8qMyOKrw7g4FNcWop8+nnV5MyMZk7+ploYhFck9w=; b=I4/H5yHVjzOKnFAPl9xbJJtyhLzG8UopQ5SiGdcxZCi/agPhtAF0ZwCV5WK8J0p7vd tRb7rr+DTIa7wEqc7/X5NHhndwkJDrpmpBEKBZOLkEx51Dh4F/AA4vs5o5gBCK9VAIKz CbY1roqtEaw1i88wehoZomsV+Maznomr2uxQYooPGD5s9oL06ukotwpm1F5f3Pit2Ig0 mBhHsLMEC4O1pbEGI/86tWdB36/wWyYmUzY2sgpdzylpyKmHoQlLjrqvzzHeRikjKDzo W8TkH+6Oh18Yd7ktSU3hNmd5eIadAyP7NvwMp41sPi4aPcEv3n/OtvHFpfiNA70V3FLI 4PeQ== 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=bD/8qMyOKrw7g4FNcWop8+nnV5MyMZk7+ploYhFck9w=; b=w12o6BfKYTL6STlt0SDLrfRI5scj2RJT7LqcM2crIAYG5ylIiNZNwfNI8zwvajA+ak a8g873UKBZaaxyrinAeuECV/ypuaLFekf6EFopOe8AV+I3EalG/D/bJmBmhsOpmMGHPz NoG+3dvhhQsEJjmN1zTrdVQO5QSM3PaIHiexmHUrwaJs0CImIIqavst5LTjjKjPBD9mS CMIdX7kYqb5Oqq1zLRs29JIW/kjZfoRsHvOOGHvmFMtj4Znl3570duo9Oiz6/i8aNkI9 dkHmlQh/oos6gI6K7AIF4C/lJKUXAJ9Ysf0orhV2EoCNTCwPT1VuI6GLO0iyRZqEzmkH tXtA== X-Gm-Message-State: AO0yUKVOSfpRmyxjZfHsp1JZ9GzE/arC3mD/0istev240fCDp/CVBTW+ n2LtmUn9dfjOLzjAyyy5ee5iBazozWMLg5GU X-Google-Smtp-Source: AK7set9k8gJNXg7/X8paJBJ4lElAf/XWLFrzSWubhcI2Twz+krYx79jNkLV+MddoXYLWnEdVBculHA== X-Received: by 2002:adf:f111:0:b0:2c3:f06f:850c with SMTP id r17-20020adff111000000b002c3f06f850cmr21378568wro.31.1676295593322; Mon, 13 Feb 2023 05:39:53 -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 d1-20020adffd81000000b002bfe08c566fsm10406542wrr.106.2023.02.13.05.39.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 05:39:52 -0800 (PST) From: Christoph Muellner To: binutils@sourceware.org, Nelson Chu , Andrew Waterman , Palmer Dabbelt , Jim Wilson , Philipp Tomsich , Elda Kuka , Aaron Durbin , Andrew de los Reyes , Eric Gouriou , Barna Ibrahim , Jeff Law Cc: =?UTF-8?q?Christoph=20M=C3=BCllner?= Subject: [RFC PATCH v3 0/8] RISC-V: Add support for vector crypto extensions Date: Mon, 13 Feb 2023 14:39:41 +0100 Message-Id: <20230213133949.3773320-1-christoph.muellner@vrull.eu> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.7 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 * Zvknh[a,b] * Zvkned * Zvkn * Zvksed * Zvksh * Zvks The implementation follows version v0.3.0 20230206 of the specification, which can be found here: https://github.com/riscv/riscv-crypto/releases/tag/v20230206 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-v3 Changes in v3: - Rebased - Rename Zvkns -> Zvknsed - Drop vghmac.vv from Zvkg - Add vghsh.vv and vgmul.vv to Zvkg - Introduce Zvkn and Zvks Changes in v2: - Rebased - Adjusted code following 6eb099ae9324 (expr_end -> expr_parse_end) - Rename Zvkn -> Zvkns Christoph Müllner (8): RISC-V: Add Zvkb ISA extension support RISC-V: Add Zvkg ISA extension support RISC-V: Add Zvkned ISA extension support RISC-V: Add Zvknh[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 RISC-V: Add Zvks ISA extension support bfd/elfxx-riscv.c | 45 +++++++++ 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 | 10 ++ gas/testsuite/gas/riscv/zvkg.s | 2 + gas/testsuite/gas/riscv/zvkn.d | 10 ++ gas/testsuite/gas/riscv/zvkn.s | 2 + gas/testsuite/gas/riscv/zvkned.d | 21 +++++ gas/testsuite/gas/riscv/zvkned.s | 13 +++ gas/testsuite/gas/riscv/zvknha.d | 12 +++ gas/testsuite/gas/riscv/zvknha_zvknhb.s | 3 + gas/testsuite/gas/riscv/zvknhb.d | 12 +++ gas/testsuite/gas/riscv/zvks.d | 10 ++ gas/testsuite/gas/riscv/zvks.s | 2 + 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 | 117 ++++++++++++++++++++++++ include/opcode/riscv.h | 12 +++ opcodes/riscv-dis.c | 4 + opcodes/riscv-opc.c | 47 ++++++++++ 23 files changed, 429 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/zvkn.d create mode 100644 gas/testsuite/gas/riscv/zvkn.s create mode 100644 gas/testsuite/gas/riscv/zvkned.d create mode 100644 gas/testsuite/gas/riscv/zvkned.s create mode 100644 gas/testsuite/gas/riscv/zvknha.d create mode 100644 gas/testsuite/gas/riscv/zvknha_zvknhb.s create mode 100644 gas/testsuite/gas/riscv/zvknhb.d create mode 100644 gas/testsuite/gas/riscv/zvks.d create mode 100644 gas/testsuite/gas/riscv/zvks.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.39.1