Message ID | 20241029101234.985973-1-shiyulong@iscas.ac.cn |
---|---|
Headers | show
Return-Path: <gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Xd5gR5rQ9z1xwF for <incoming@patchwork.ozlabs.org>; Tue, 29 Oct 2024 21:13:23 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DA0933858C78 for <incoming@patchwork.ozlabs.org>; Tue, 29 Oct 2024 10:13:21 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from cstnet.cn (smtp84.cstnet.cn [159.226.251.84]) by sourceware.org (Postfix) with ESMTPS id 0376B385840C for <gcc-patches@gcc.gnu.org>; Tue, 29 Oct 2024 10:12:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0376B385840C 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 0376B385840C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=159.226.251.84 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730196777; cv=none; b=TU0FNEy+tP23GMH9D5XpoVK8SoYb6nwbXBKI7Y9EOqiYEs5gJEZcG8LJPFEa2nyvLAkF0/WNQU7av3OX7GZZCbW8dfCA4zxkaWHBoBFPndW9BUWF8vDP4Nd/pblDopT8xa6nd58tNK4si2UG5y3g1DSCMOZD73GF1DSPfzapVE4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730196777; c=relaxed/simple; bh=ouuKLO7SV1ez9K/hkZWNyJyeN1PzPgqbUtox1JxZ9Sg=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=GR5PczCnbQj7ODKkAn/a7Z9Pus7HgwMG658/XULlK4hKAbwFYMQZtNSQjHfPFZNtf1/SuyYmK3zM8FM8OLuPKFQ9UxDOFBVVp97nWS9yxadtBaWPJEA6A4UCODvDxfx3AhyPKiazFogz4jzWXJPuY3EWsy1YRPM1dxFi2O9NYts= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost.localdomain (unknown [122.8.183.87]) by APP-05 (Coremail) with SMTP id zQCowAAnEGcZtSBn7MpyCw--.5692S2; Tue, 29 Oct 2024 18:12:47 +0800 (CST) From: shiyulong@iscas.ac.cn To: gcc-patches@gcc.gnu.org Cc: palmer@dabbelt.com, kito.cheng@sifive.com, wuwei2016@iscas.ac.cn, jiawei@iscas.ac.cn, shihua@iscas.ac.cn, chenyixuan@iscas.ac.cn, dje.gcc@gmail.com, mirimmad@outlook.com, pinskia@gmail.com, jeffreyalaw@gmail.com, craig.topper@sifive.com, yulong <shiyulong@iscas.ac.cn> Subject: [PATCH V2 0/2] RISC-V:Add Cache Management Operation ISA Extensions Intrinsics Date: Tue, 29 Oct 2024 18:12:32 +0800 Message-Id: <20241029101234.985973-1-shiyulong@iscas.ac.cn> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: zQCowAAnEGcZtSBn7MpyCw--.5692S2 X-Coremail-Antispam: 1UD129KBjvdXoWrZr47Z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UUU X-Originating-IP: [122.8.183.87] X-CM-SenderInfo: 5vkl53porqwq5lvft2wodfhubq/ X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham 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~incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
RISC-V:Add Cache Management Operation ISA Extensions Intrinsics
|
expand
|
From: yulong <shiyulong@iscas.ac.cn> This patchset adds intrinsic support for CMOs extensions. cf. <https://github.com/riscv-non-isa/riscv-c-api-doc/pull/93>; Patch 1: Add Zicbom/z/p intrinsic support Patch 2: Add test cases. Diff with V1: Add intrinsic support for the prefetchi instruction. yulong (2): RISC-V:Add intrinsic support for the CMOs extensions RISC-V:Add intrinsic cases for the CMOs extensions gcc/config.gcc | 2 +- gcc/config/riscv/riscv_cmo.h | 93 +++++++++++++++++++++++++ gcc/testsuite/gcc.target/riscv/cmo-32.c | 58 +++++++++++++++ gcc/testsuite/gcc.target/riscv/cmo-64.c | 58 +++++++++++++++ 4 files changed, 210 insertions(+), 1 deletion(-) create mode 100644 gcc/config/riscv/riscv_cmo.h create mode 100644 gcc/testsuite/gcc.target/riscv/cmo-32.c create mode 100644 gcc/testsuite/gcc.target/riscv/cmo-64.c