Message ID | 20240115083135.2120665-1-shihua@iscas.ac.cn |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp1575178dyc; Mon, 15 Jan 2024 00:39:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IF0rLHP7CmcibKpjcaO0sA00IMU4fdUVnnaGZ/OpUybhlVl43Ize74KfR2rmQZbZFOrC1QH X-Received: by 2002:a25:d084:0:b0:dbf:e0e:f5d9 with SMTP id h126-20020a25d084000000b00dbf0e0ef5d9mr2426829ybg.101.1705307990972; Mon, 15 Jan 2024 00:39:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705307990; cv=pass; d=google.com; s=arc-20160816; b=VemTMvag0tBzqvMlaSKXahZapWCzPNpSu9mgmaH9+swpvbx1R05tPsmw56+N2hjbP3 AhPhr8wsIQe4L/68vn4zDSq+qgaWHUbGRfGKIkCJqTQ0iIZ6S9FENGO2hxpHjIemQSyj 0Ts3Yd/Y6UIRfYwhHIVrgy6TcPKm+zC+Y6a5H+Awj/xRHzbqOLBuoV5r5QjjZf6TcRtK xD4d7Flf3iIUZEYOw8GptWpFHg5hvDt08Bp/ZGYhVC/x0q6f1PsPvk6UNC1aq0A3Q37H 1QiN5x2R8iSbxR6UlVDn85Se1m5PNeXHUrgNgJxUfslB0JSVtM9pruYgjMjZgBMl9B/X XBIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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:arc-filter :dmarc-filter:delivered-to; bh=rNZ/OrKLWbZmzfXoDgCpeJEe9CYukqsfrH488ExhyVo=; fh=rIG0jZOOrQ476Of+MPLqD65mkGKeunSiqnOO0+GHD0E=; b=D/SkkTjAVu48Wo1JyLCLOtFxsZUdKPNyreqexxbMOeyHjvwZW5gBhErQYtsoiolaIp bJcboUN1sVbiFofwGxQx4CBL4V4JbHXBOl4YWrVK+EGwfI4KBf5OxcWUgXVvQ3tC19Vm TPz8wo2OpRqCFuCiiYKMU5u66XbMU4RRn36MVn0D066sHpEfJL+8TeX+ROJhXWUajwd9 mTkGAn+RylBGq0NirkOB71dF9wEeYMqZ62ZqrOxY5wviWaiZpScUhe+hcAJDGcrGVCgy 30j2GzcCirPqfQnOZ3z26WQ/LFfWeEnEMHvLOG+ea+Jjge0uxw47yHeIeGUdwNqUAOB9 3XQQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id p9-20020a05622a048900b00429b3b3dc08si7735865qtx.742.2024.01.15.00.39.50 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 00:39:50 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AAD023858C60 for <ouuuleilei@gmail.com>; Mon, 15 Jan 2024 08:39:50 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from cstnet.cn (smtp21.cstnet.cn [159.226.251.21]) by sourceware.org (Postfix) with ESMTPS id A28E53858C56 for <gcc-patches@gcc.gnu.org>; Mon, 15 Jan 2024 08:35:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A28E53858C56 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=iscas.ac.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=iscas.ac.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A28E53858C56 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=159.226.251.21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705307741; cv=none; b=oHC46JXv4bKWhXbu8QpQ0NKCGr5kESopLE6c8emtEZvs0RDk5gamkMUF1szNL9wzSB2pByJmn70dp2bIZXgw12r+PvenIl0viB1f4jdb5EmbHz6EQmZ90meEKKs5JD0gv2KkCYnXMCcl42nDai5IfONRmWYlAOhWhKA0UZ1xA78= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705307741; c=relaxed/simple; bh=JHhkCPlykwST73bn50iORkVi9OGhmc7iIaGDgdqh5V0=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=jGTR3iwYraQZgHyZycJlcWFZxFHYOq6pkt9l22kZys3ouZiqBy2CvfJcfAe+TuBpb6VnnloVv/3kHLHHD30BuocqpPEdRiXmHE0ATWU2nLFMECcly/NsNKL4qLqJVBBqgy9yhD7p8LZuqyccmfGq1HZAn3eeYUMYgtMAXgrB5Wk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost.localdomain (unknown [122.8.183.87]) by APP-01 (Coremail) with SMTP id qwCowAAHDIwm7aRl0e5RBw--.60161S2; Mon, 15 Jan 2024 16:30:34 +0800 (CST) From: Liao Shihua <shihua@iscas.ac.cn> To: gcc-patches@gcc.gnu.org Cc: christoph.muellner@vrull.eu, kito.cheng@gmail.com, shiyulong@iscas.ac.cn, jiawei@iscas.ac.cn, chenyixuan@iscas.ac.cn, jeffreyalaw@gmail.com, Liao Shihua <shihua@iscas.ac.cn> Subject: [PATCH v4 0/3] RISC-V: Add intrinsics for Bitmanip and Scalar Crypto extensions Date: Mon, 15 Jan 2024 16:31:32 +0800 Message-Id: <20240115083135.2120665-1-shihua@iscas.ac.cn> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: qwCowAAHDIwm7aRl0e5RBw--.60161S2 X-Coremail-Antispam: 1UD129KBjvJXoW3AF13GryrWFWfAFW5Cry7trb_yoW7Xr17p3 WUGr9Ikr15JFZrGr1SqFy7tr4rAws3Wry5uw1xCw1IyayftrWjq3Z7Kw1fAa15JFW8Xr1S kw43u3W5u3W2qFDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUyq14x267AKxVW8JVW5JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26r4j6ryUM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j 6F4UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s 0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xII jxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr 1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7MxAIw28IcxkI7VAKI48J MxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwV AFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv2 0xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4 v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AK xVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjfUoOJ5UUUUU X-Originating-IP: [122.8.183.87] X-CM-SenderInfo: xvklx33d6l2u1dvotugofq/1tbiBg0REWWk3iwV+QABsV X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, URIBL_BLACK 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788145031618562187 X-GMAIL-MSGID: 1788145031618562187 |
Series |
RISC-V: Add intrinsics for Bitmanip and Scalar Crypto extensions
|
|
Message
Liao Shihua
Jan. 15, 2024, 8:31 a.m. UTC
Update v3 -> v4: 1.Typo fix. 2.Only test *intrinsic-32 on rv32 and *intrinsic-64 on rv64. 3.Update Copyright year to 2024. Update v2 -> v3: 1. Change pattern mode form X to GPR in orcb, clmul, and brev8. 2. Add emulated testsuite. 3. Removed duplicate testsuite between built-in and intrinsic. 4. Typo fix. Update v1 -> v2: 1. Rename *_intrinsic-* to *_intrinsic-XLEN. 2. Typo fix. 3. Intrinsics with immediate arguments will use marcos at O0 . It's a little patch add just provides a mapping from the RV intrinsics to the builtin names within GCC. Liao Shihua (3): RISC-V: Remove the Scalar Bitmanip and Crypto Built-In function testsuites RISC-V: Add C intrinsic for Scalar Crypto Extension RISC-V: Add C intrinsic for Scalar Bitmanip Extension gcc/config.gcc | 2 +- gcc/config/riscv/bitmanip.md | 10 +- gcc/config/riscv/crypto.md | 4 +- gcc/config/riscv/riscv-builtins.cc | 22 ++ gcc/config/riscv/riscv-cmo.def | 12 +- gcc/config/riscv/riscv-ftypes.def | 2 + gcc/config/riscv/riscv-scalar-crypto.def | 22 +- gcc/config/riscv/riscv_bitmanip.h | 297 +++++++++++++++++ gcc/config/riscv/riscv_crypto.h | 309 ++++++++++++++++++ .../riscv/scalar_bitmanip_intrinsic-32.c | 97 ++++++ .../scalar_bitmanip_intrinsic-64-emulated.c | 33 ++ .../riscv/scalar_bitmanip_intrinsic-64.c | 115 +++++++ .../riscv/scalar_crypto_intrinsic-32.c | 115 +++++++ .../riscv/scalar_crypto_intrinsic-64.c | 123 +++++++ .../gcc.target/riscv/zbb_32_bswap-1.c | 11 - gcc/testsuite/gcc.target/riscv/zbb_bswap-1.c | 11 - gcc/testsuite/gcc.target/riscv/zbb_bswap-2.c | 12 - .../riscv/{zbb_32_bswap-2.c => zbb_bswap16.c} | 3 +- gcc/testsuite/gcc.target/riscv/zbbw.c | 26 -- gcc/testsuite/gcc.target/riscv/zbc32.c | 23 -- gcc/testsuite/gcc.target/riscv/zbc64.c | 23 -- gcc/testsuite/gcc.target/riscv/zbkb32.c | 18 - gcc/testsuite/gcc.target/riscv/zbkb64.c | 5 - gcc/testsuite/gcc.target/riscv/zbkc32.c | 17 - gcc/testsuite/gcc.target/riscv/zbkc64.c | 17 - gcc/testsuite/gcc.target/riscv/zbkx32.c | 18 - gcc/testsuite/gcc.target/riscv/zbkx64.c | 18 - gcc/testsuite/gcc.target/riscv/zknd32-2.c | 28 -- gcc/testsuite/gcc.target/riscv/zknd64-2.c | 42 --- gcc/testsuite/gcc.target/riscv/zkne32-2.c | 28 -- gcc/testsuite/gcc.target/riscv/zkne64-2.c | 34 -- .../gcc.target/riscv/zknh-sha256-32.c | 10 - .../gcc.target/riscv/zknh-sha256-64.c | 28 -- .../gcc.target/riscv/zknh-sha512-32.c | 42 --- .../gcc.target/riscv/zknh-sha512-64.c | 31 -- gcc/testsuite/gcc.target/riscv/zksed32-2.c | 29 -- gcc/testsuite/gcc.target/riscv/zksed64-2.c | 29 -- gcc/testsuite/gcc.target/riscv/zksh32.c | 19 -- gcc/testsuite/gcc.target/riscv/zksh64.c | 19 -- 39 files changed, 1149 insertions(+), 555 deletions(-) create mode 100644 gcc/config/riscv/riscv_bitmanip.h create mode 100644 gcc/config/riscv/riscv_crypto.h create mode 100644 gcc/testsuite/gcc.target/riscv/scalar_bitmanip_intrinsic-32.c create mode 100644 gcc/testsuite/gcc.target/riscv/scalar_bitmanip_intrinsic-64-emulated.c create mode 100644 gcc/testsuite/gcc.target/riscv/scalar_bitmanip_intrinsic-64.c create mode 100644 gcc/testsuite/gcc.target/riscv/scalar_crypto_intrinsic-32.c create mode 100644 gcc/testsuite/gcc.target/riscv/scalar_crypto_intrinsic-64.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zbb_32_bswap-1.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zbb_bswap-1.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zbb_bswap-2.c rename gcc/testsuite/gcc.target/riscv/{zbb_32_bswap-2.c => zbb_bswap16.c} (59%) delete mode 100644 gcc/testsuite/gcc.target/riscv/zbbw.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zbc32.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zbc64.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zbkc32.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zbkc64.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zbkx32.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zbkx64.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zknd32-2.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zknd64-2.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zkne32-2.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zkne64-2.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zknh-sha256-32.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zknh-sha256-64.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zknh-sha512-32.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zknh-sha512-64.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zksed32-2.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zksed64-2.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zksh32.c delete mode 100644 gcc/testsuite/gcc.target/riscv/zksh64.c
Comments
On Mon, Jan 15, 2024 at 9:35 AM Liao Shihua <shihua@iscas.ac.cn> wrote: > > Update v3 -> v4: > 1.Typo fix. > 2.Only test *intrinsic-32 on rv32 and *intrinsic-64 on rv64. > 3.Update Copyright year to 2024. Thanks, for fixing the rv32/rv64 issues! I've tested this series: no regressions and all new tests pass. I've also reviewed this series again, and I think it is ready. I can push once a maintainer approves (e.g. Kito or Jeff). Thanks for working on this! > > Update v2 -> v3: > 1. Change pattern mode form X to GPR in orcb, clmul, and brev8. > 2. Add emulated testsuite. > 3. Removed duplicate testsuite between built-in and intrinsic. > 4. Typo fix. > > Update v1 -> v2: > 1. Rename *_intrinsic-* to *_intrinsic-XLEN. > 2. Typo fix. > 3. Intrinsics with immediate arguments will use marcos at O0 . > > It's a little patch add just provides a mapping from the RV intrinsics to the builtin > names within GCC. > > Liao Shihua (3): > RISC-V: Remove the Scalar Bitmanip and Crypto Built-In function > testsuites > RISC-V: Add C intrinsic for Scalar Crypto Extension > RISC-V: Add C intrinsic for Scalar Bitmanip Extension > > gcc/config.gcc | 2 +- > gcc/config/riscv/bitmanip.md | 10 +- > gcc/config/riscv/crypto.md | 4 +- > gcc/config/riscv/riscv-builtins.cc | 22 ++ > gcc/config/riscv/riscv-cmo.def | 12 +- > gcc/config/riscv/riscv-ftypes.def | 2 + > gcc/config/riscv/riscv-scalar-crypto.def | 22 +- > gcc/config/riscv/riscv_bitmanip.h | 297 +++++++++++++++++ > gcc/config/riscv/riscv_crypto.h | 309 ++++++++++++++++++ > .../riscv/scalar_bitmanip_intrinsic-32.c | 97 ++++++ > .../scalar_bitmanip_intrinsic-64-emulated.c | 33 ++ > .../riscv/scalar_bitmanip_intrinsic-64.c | 115 +++++++ > .../riscv/scalar_crypto_intrinsic-32.c | 115 +++++++ > .../riscv/scalar_crypto_intrinsic-64.c | 123 +++++++ > .../gcc.target/riscv/zbb_32_bswap-1.c | 11 - > gcc/testsuite/gcc.target/riscv/zbb_bswap-1.c | 11 - > gcc/testsuite/gcc.target/riscv/zbb_bswap-2.c | 12 - > .../riscv/{zbb_32_bswap-2.c => zbb_bswap16.c} | 3 +- > gcc/testsuite/gcc.target/riscv/zbbw.c | 26 -- > gcc/testsuite/gcc.target/riscv/zbc32.c | 23 -- > gcc/testsuite/gcc.target/riscv/zbc64.c | 23 -- > gcc/testsuite/gcc.target/riscv/zbkb32.c | 18 - > gcc/testsuite/gcc.target/riscv/zbkb64.c | 5 - > gcc/testsuite/gcc.target/riscv/zbkc32.c | 17 - > gcc/testsuite/gcc.target/riscv/zbkc64.c | 17 - > gcc/testsuite/gcc.target/riscv/zbkx32.c | 18 - > gcc/testsuite/gcc.target/riscv/zbkx64.c | 18 - > gcc/testsuite/gcc.target/riscv/zknd32-2.c | 28 -- > gcc/testsuite/gcc.target/riscv/zknd64-2.c | 42 --- > gcc/testsuite/gcc.target/riscv/zkne32-2.c | 28 -- > gcc/testsuite/gcc.target/riscv/zkne64-2.c | 34 -- > .../gcc.target/riscv/zknh-sha256-32.c | 10 - > .../gcc.target/riscv/zknh-sha256-64.c | 28 -- > .../gcc.target/riscv/zknh-sha512-32.c | 42 --- > .../gcc.target/riscv/zknh-sha512-64.c | 31 -- > gcc/testsuite/gcc.target/riscv/zksed32-2.c | 29 -- > gcc/testsuite/gcc.target/riscv/zksed64-2.c | 29 -- > gcc/testsuite/gcc.target/riscv/zksh32.c | 19 -- > gcc/testsuite/gcc.target/riscv/zksh64.c | 19 -- > 39 files changed, 1149 insertions(+), 555 deletions(-) > create mode 100644 gcc/config/riscv/riscv_bitmanip.h > create mode 100644 gcc/config/riscv/riscv_crypto.h > create mode 100644 gcc/testsuite/gcc.target/riscv/scalar_bitmanip_intrinsic-32.c > create mode 100644 gcc/testsuite/gcc.target/riscv/scalar_bitmanip_intrinsic-64-emulated.c > create mode 100644 gcc/testsuite/gcc.target/riscv/scalar_bitmanip_intrinsic-64.c > create mode 100644 gcc/testsuite/gcc.target/riscv/scalar_crypto_intrinsic-32.c > create mode 100644 gcc/testsuite/gcc.target/riscv/scalar_crypto_intrinsic-64.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbb_32_bswap-1.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbb_bswap-1.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbb_bswap-2.c > rename gcc/testsuite/gcc.target/riscv/{zbb_32_bswap-2.c => zbb_bswap16.c} (59%) > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbbw.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbc32.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbc64.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbkc32.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbkc64.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbkx32.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbkx64.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zknd32-2.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zknd64-2.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zkne32-2.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zkne64-2.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zknh-sha256-32.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zknh-sha256-64.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zknh-sha512-32.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zknh-sha512-64.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zksed32-2.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zksed64-2.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zksh32.c > delete mode 100644 gcc/testsuite/gcc.target/riscv/zksh64.c > > -- > 2.34.1 >
Ok :) Christoph Müllner <christoph.muellner@vrull.eu> 於 2024年1月15日 週一 23:17 寫道: > On Mon, Jan 15, 2024 at 9:35 AM Liao Shihua <shihua@iscas.ac.cn> wrote: > > > > Update v3 -> v4: > > 1.Typo fix. > > 2.Only test *intrinsic-32 on rv32 and *intrinsic-64 on rv64. > > 3.Update Copyright year to 2024. > > Thanks, for fixing the rv32/rv64 issues! > I've tested this series: no regressions and all new tests pass. > I've also reviewed this series again, and I think it is ready. > I can push once a maintainer approves (e.g. Kito or Jeff). > > Thanks for working on this! > > > > > Update v2 -> v3: > > 1. Change pattern mode form X to GPR in orcb, clmul, and brev8. > > 2. Add emulated testsuite. > > 3. Removed duplicate testsuite between built-in and intrinsic. > > 4. Typo fix. > > > > Update v1 -> v2: > > 1. Rename *_intrinsic-* to *_intrinsic-XLEN. > > 2. Typo fix. > > 3. Intrinsics with immediate arguments will use marcos at O0 . > > > > It's a little patch add just provides a mapping from the RV intrinsics > to the builtin > > names within GCC. > > > > Liao Shihua (3): > > RISC-V: Remove the Scalar Bitmanip and Crypto Built-In function > > testsuites > > RISC-V: Add C intrinsic for Scalar Crypto Extension > > RISC-V: Add C intrinsic for Scalar Bitmanip Extension > > > > gcc/config.gcc | 2 +- > > gcc/config/riscv/bitmanip.md | 10 +- > > gcc/config/riscv/crypto.md | 4 +- > > gcc/config/riscv/riscv-builtins.cc | 22 ++ > > gcc/config/riscv/riscv-cmo.def | 12 +- > > gcc/config/riscv/riscv-ftypes.def | 2 + > > gcc/config/riscv/riscv-scalar-crypto.def | 22 +- > > gcc/config/riscv/riscv_bitmanip.h | 297 +++++++++++++++++ > > gcc/config/riscv/riscv_crypto.h | 309 ++++++++++++++++++ > > .../riscv/scalar_bitmanip_intrinsic-32.c | 97 ++++++ > > .../scalar_bitmanip_intrinsic-64-emulated.c | 33 ++ > > .../riscv/scalar_bitmanip_intrinsic-64.c | 115 +++++++ > > .../riscv/scalar_crypto_intrinsic-32.c | 115 +++++++ > > .../riscv/scalar_crypto_intrinsic-64.c | 123 +++++++ > > .../gcc.target/riscv/zbb_32_bswap-1.c | 11 - > > gcc/testsuite/gcc.target/riscv/zbb_bswap-1.c | 11 - > > gcc/testsuite/gcc.target/riscv/zbb_bswap-2.c | 12 - > > .../riscv/{zbb_32_bswap-2.c => zbb_bswap16.c} | 3 +- > > gcc/testsuite/gcc.target/riscv/zbbw.c | 26 -- > > gcc/testsuite/gcc.target/riscv/zbc32.c | 23 -- > > gcc/testsuite/gcc.target/riscv/zbc64.c | 23 -- > > gcc/testsuite/gcc.target/riscv/zbkb32.c | 18 - > > gcc/testsuite/gcc.target/riscv/zbkb64.c | 5 - > > gcc/testsuite/gcc.target/riscv/zbkc32.c | 17 - > > gcc/testsuite/gcc.target/riscv/zbkc64.c | 17 - > > gcc/testsuite/gcc.target/riscv/zbkx32.c | 18 - > > gcc/testsuite/gcc.target/riscv/zbkx64.c | 18 - > > gcc/testsuite/gcc.target/riscv/zknd32-2.c | 28 -- > > gcc/testsuite/gcc.target/riscv/zknd64-2.c | 42 --- > > gcc/testsuite/gcc.target/riscv/zkne32-2.c | 28 -- > > gcc/testsuite/gcc.target/riscv/zkne64-2.c | 34 -- > > .../gcc.target/riscv/zknh-sha256-32.c | 10 - > > .../gcc.target/riscv/zknh-sha256-64.c | 28 -- > > .../gcc.target/riscv/zknh-sha512-32.c | 42 --- > > .../gcc.target/riscv/zknh-sha512-64.c | 31 -- > > gcc/testsuite/gcc.target/riscv/zksed32-2.c | 29 -- > > gcc/testsuite/gcc.target/riscv/zksed64-2.c | 29 -- > > gcc/testsuite/gcc.target/riscv/zksh32.c | 19 -- > > gcc/testsuite/gcc.target/riscv/zksh64.c | 19 -- > > 39 files changed, 1149 insertions(+), 555 deletions(-) > > create mode 100644 gcc/config/riscv/riscv_bitmanip.h > > create mode 100644 gcc/config/riscv/riscv_crypto.h > > create mode 100644 > gcc/testsuite/gcc.target/riscv/scalar_bitmanip_intrinsic-32.c > > create mode 100644 > gcc/testsuite/gcc.target/riscv/scalar_bitmanip_intrinsic-64-emulated.c > > create mode 100644 > gcc/testsuite/gcc.target/riscv/scalar_bitmanip_intrinsic-64.c > > create mode 100644 > gcc/testsuite/gcc.target/riscv/scalar_crypto_intrinsic-32.c > > create mode 100644 > gcc/testsuite/gcc.target/riscv/scalar_crypto_intrinsic-64.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbb_32_bswap-1.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbb_bswap-1.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbb_bswap-2.c > > rename gcc/testsuite/gcc.target/riscv/{zbb_32_bswap-2.c => > zbb_bswap16.c} (59%) > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbbw.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbc32.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbc64.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbkc32.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbkc64.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbkx32.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbkx64.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zknd32-2.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zknd64-2.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zkne32-2.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zkne64-2.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zknh-sha256-32.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zknh-sha256-64.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zknh-sha512-32.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zknh-sha512-64.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zksed32-2.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zksed64-2.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zksh32.c > > delete mode 100644 gcc/testsuite/gcc.target/riscv/zksh64.c > > > > -- > > 2.34.1 > > >
On Mon, Jan 15, 2024 at 4:35 PM Kito Cheng <kito.cheng@gmail.com> wrote: > > Ok :) I've re-created changelog entries in commit messages (commit hook rejected the commits) and pushed. Thanks, Christoph > > > Christoph Müllner <christoph.muellner@vrull.eu> 於 2024年1月15日 週一 23:17 寫道: >> >> On Mon, Jan 15, 2024 at 9:35 AM Liao Shihua <shihua@iscas.ac.cn> wrote: >> > >> > Update v3 -> v4: >> > 1.Typo fix. >> > 2.Only test *intrinsic-32 on rv32 and *intrinsic-64 on rv64. >> > 3.Update Copyright year to 2024. >> >> Thanks, for fixing the rv32/rv64 issues! >> I've tested this series: no regressions and all new tests pass. >> I've also reviewed this series again, and I think it is ready. >> I can push once a maintainer approves (e.g. Kito or Jeff). >> >> Thanks for working on this! >> >> > >> > Update v2 -> v3: >> > 1. Change pattern mode form X to GPR in orcb, clmul, and brev8. >> > 2. Add emulated testsuite. >> > 3. Removed duplicate testsuite between built-in and intrinsic. >> > 4. Typo fix. >> > >> > Update v1 -> v2: >> > 1. Rename *_intrinsic-* to *_intrinsic-XLEN. >> > 2. Typo fix. >> > 3. Intrinsics with immediate arguments will use marcos at O0 . >> > >> > It's a little patch add just provides a mapping from the RV intrinsics to the builtin >> > names within GCC. >> > >> > Liao Shihua (3): >> > RISC-V: Remove the Scalar Bitmanip and Crypto Built-In function >> > testsuites >> > RISC-V: Add C intrinsic for Scalar Crypto Extension >> > RISC-V: Add C intrinsic for Scalar Bitmanip Extension >> > >> > gcc/config.gcc | 2 +- >> > gcc/config/riscv/bitmanip.md | 10 +- >> > gcc/config/riscv/crypto.md | 4 +- >> > gcc/config/riscv/riscv-builtins.cc | 22 ++ >> > gcc/config/riscv/riscv-cmo.def | 12 +- >> > gcc/config/riscv/riscv-ftypes.def | 2 + >> > gcc/config/riscv/riscv-scalar-crypto.def | 22 +- >> > gcc/config/riscv/riscv_bitmanip.h | 297 +++++++++++++++++ >> > gcc/config/riscv/riscv_crypto.h | 309 ++++++++++++++++++ >> > .../riscv/scalar_bitmanip_intrinsic-32.c | 97 ++++++ >> > .../scalar_bitmanip_intrinsic-64-emulated.c | 33 ++ >> > .../riscv/scalar_bitmanip_intrinsic-64.c | 115 +++++++ >> > .../riscv/scalar_crypto_intrinsic-32.c | 115 +++++++ >> > .../riscv/scalar_crypto_intrinsic-64.c | 123 +++++++ >> > .../gcc.target/riscv/zbb_32_bswap-1.c | 11 - >> > gcc/testsuite/gcc.target/riscv/zbb_bswap-1.c | 11 - >> > gcc/testsuite/gcc.target/riscv/zbb_bswap-2.c | 12 - >> > .../riscv/{zbb_32_bswap-2.c => zbb_bswap16.c} | 3 +- >> > gcc/testsuite/gcc.target/riscv/zbbw.c | 26 -- >> > gcc/testsuite/gcc.target/riscv/zbc32.c | 23 -- >> > gcc/testsuite/gcc.target/riscv/zbc64.c | 23 -- >> > gcc/testsuite/gcc.target/riscv/zbkb32.c | 18 - >> > gcc/testsuite/gcc.target/riscv/zbkb64.c | 5 - >> > gcc/testsuite/gcc.target/riscv/zbkc32.c | 17 - >> > gcc/testsuite/gcc.target/riscv/zbkc64.c | 17 - >> > gcc/testsuite/gcc.target/riscv/zbkx32.c | 18 - >> > gcc/testsuite/gcc.target/riscv/zbkx64.c | 18 - >> > gcc/testsuite/gcc.target/riscv/zknd32-2.c | 28 -- >> > gcc/testsuite/gcc.target/riscv/zknd64-2.c | 42 --- >> > gcc/testsuite/gcc.target/riscv/zkne32-2.c | 28 -- >> > gcc/testsuite/gcc.target/riscv/zkne64-2.c | 34 -- >> > .../gcc.target/riscv/zknh-sha256-32.c | 10 - >> > .../gcc.target/riscv/zknh-sha256-64.c | 28 -- >> > .../gcc.target/riscv/zknh-sha512-32.c | 42 --- >> > .../gcc.target/riscv/zknh-sha512-64.c | 31 -- >> > gcc/testsuite/gcc.target/riscv/zksed32-2.c | 29 -- >> > gcc/testsuite/gcc.target/riscv/zksed64-2.c | 29 -- >> > gcc/testsuite/gcc.target/riscv/zksh32.c | 19 -- >> > gcc/testsuite/gcc.target/riscv/zksh64.c | 19 -- >> > 39 files changed, 1149 insertions(+), 555 deletions(-) >> > create mode 100644 gcc/config/riscv/riscv_bitmanip.h >> > create mode 100644 gcc/config/riscv/riscv_crypto.h >> > create mode 100644 gcc/testsuite/gcc.target/riscv/scalar_bitmanip_intrinsic-32.c >> > create mode 100644 gcc/testsuite/gcc.target/riscv/scalar_bitmanip_intrinsic-64-emulated.c >> > create mode 100644 gcc/testsuite/gcc.target/riscv/scalar_bitmanip_intrinsic-64.c >> > create mode 100644 gcc/testsuite/gcc.target/riscv/scalar_crypto_intrinsic-32.c >> > create mode 100644 gcc/testsuite/gcc.target/riscv/scalar_crypto_intrinsic-64.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbb_32_bswap-1.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbb_bswap-1.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbb_bswap-2.c >> > rename gcc/testsuite/gcc.target/riscv/{zbb_32_bswap-2.c => zbb_bswap16.c} (59%) >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbbw.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbc32.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbc64.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbkc32.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbkc64.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbkx32.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zbkx64.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zknd32-2.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zknd64-2.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zkne32-2.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zkne64-2.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zknh-sha256-32.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zknh-sha256-64.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zknh-sha512-32.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zknh-sha512-64.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zksed32-2.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zksed64-2.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zksh32.c >> > delete mode 100644 gcc/testsuite/gcc.target/riscv/zksh64.c >> > >> > -- >> > 2.34.1 >> >