Message ID | 20221115083358.4130952-2-jiawei@iscas.ac.cn |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2590955wru; Tue, 15 Nov 2022 00:35:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf6oi95y/ZgcZuHsXtm68/J93qpsTT3QOuxgAyw1UHD4LSNtyKz9k9TEdQP5XbxutBp7wyeO X-Received: by 2002:a05:6402:95b:b0:459:401:c23e with SMTP id h27-20020a056402095b00b004590401c23emr14666702edz.23.1668501356530; Tue, 15 Nov 2022 00:35:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668501356; cv=none; d=google.com; s=arc-20160816; b=TG3mxeYE0qU7ohOQdglwE6eiJo7XQCzuD+pysQoYtqW2/+TAUdMEu+9R+35fxboYAF gqfh2luUlIrksxEhe2uEq1tc1voGrOmQlcbrFIOKzYR5D11Uew8RDJU66fgUs1KVTcL4 ip1/lMKJc//lECOO3QJxioQQ5FR8E8nyYH3X8dY9Zj6Xq5Z6MOOWEcoU+Sc511olDuM/ PFA6OI/HoDs2/JY2dYUGoetxC+GnxcqMCMb3+EFfdnCwaT5Yvv1aUlncdVT5PXS+hA+r cTAtd3dEKaDQoY3f62oeyCtEkCXFeWo1tMN+pNm+T0MoAkkbTEkeg/jYJQCpY8rmQULG sPhQ== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dmarc-filter:delivered-to; bh=NUtVXV8yDJmtGmqIj4r5ZyTVFUP/hav18jcDghFOYq0=; b=zEkmMaIZ3AFYnu0xYMhvQn5ZOFrpEuh+7TOehoHbZ5/Ja0g52MFB1HwzpwfTIveTss gAuMdp6mkDVaQptel0hpCgnceXJtHLbKrfqdFr5aVfKOMwlpgM27gXJepsDpLCAMR+rJ L+MDHNED7rD/z14OxibO/lzFnMPHVXyNNxOb+u4+Q5j3g69pMN83GqdniJP3u+ks/Rr+ FpXiktkIG9eokJGDo6Fx+30THvqqOFp3Ea38F1X/NkkDoIz1mvF0ps02phnjUy+TxXAp HDqekLa+ToPh0BHYL6SOEmGrkvOniWIGiXQm/I/3bFdaOR6tfaPgUYKAEiUD29S76rQ/ Jvpw== ARC-Authentication-Results: i=1; mx.google.com; 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 sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id j6-20020a170906050600b0077083e6dde7si8196012eja.183.2022.11.15.00.35.56 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 00:35:56 -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; 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 7687C3888816 for <ouuuleilei@gmail.com>; Tue, 15 Nov 2022 08:35:36 +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 ESMTP id D4CAD3885531 for <gcc-patches@gcc.gnu.org>; Tue, 15 Nov 2022 08:34:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D4CAD3885531 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 Received: from localhost.localdomain (unknown [47.113.87.88]) by APP-01 (Coremail) with SMTP id qwCowABX92gDT3NjglDgCQ--.2434S3; Tue, 15 Nov 2022 16:34:12 +0800 (CST) From: jiawei <jiawei@iscas.ac.cn> To: gcc-patches@gcc.gnu.org Cc: kito.cheng@sifive.com, palmer@rivosinc.com, juzhe.zhong@rivai.ai, jeffreyalaw@gmail.com, christoph.muellner@vrull.eu, philipp.tomsich@vrull.eu, wuwei2016@iscas.ac.cn, jiawei <jiawei@iscas.ac.cn> Subject: [PATCH v2 1/2] RISC-V: Add spill sp adjust check testcase. Date: Tue, 15 Nov 2022 16:33:57 +0800 Message-Id: <20221115083358.4130952-2-jiawei@iscas.ac.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221115083358.4130952-1-jiawei@iscas.ac.cn> References: <20221115083358.4130952-1-jiawei@iscas.ac.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: qwCowABX92gDT3NjglDgCQ--.2434S3 X-Coremail-Antispam: 1UD129KBjvdXoW7Gw4UGr1xJr17GF45uw43GFg_yoWDCFgEyr 18K34fWr4Uua18tFWkZFsrCa4xCw4rXryaya9xJFn7Wa4DXan7u3Z2kF17t34UCr15JF4f AFWIyr97JF98KjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbfAFF20E14v26ryj6rWUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28IrcIa0xkI8VA2jI8067AKxVWUGwA2048vs2IY02 0Ec7CjxVAFwI0_JFI_Gr1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26F4UJVW0owA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_GcCE3s1le2I2 62IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcV AFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG 0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lc2xSY4AK67A8MxAIw28IcxkI7V AKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCj r7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6x IIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAI w20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x 0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7sRROJ53UUUUU== X-Originating-IP: [47.113.87.88] X-CM-SenderInfo: 5mld4v3l6l2u1dvotugofq/1tbiAwcLAGNzLGOBkwAAsC X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, 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.29 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 Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749550478353153319?= X-GMAIL-MSGID: =?utf-8?q?1749550478353153319?= |
Series |
RISC-V: Optimize RVV epilogue logic.
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Jiawei
Nov. 15, 2022, 8:33 a.m. UTC
This testcase mix exist spill-1.c and adding new fun to check if there have redundant addi intructions. Idea provided by Jeff Law. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/base/spill-sp-adjust.c: New test. --- .../gcc.target/riscv/rvv/base/spill-sp-adjust.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/spill-sp-adjust.c
Comments
On 11/15/22 01:33, jiawei wrote: > This testcase mix exist spill-1.c and adding new fun to check if > there have redundant addi intructions. Idea provided by Jeff Law. > > gcc/testsuite/ChangeLog: > > * gcc.target/riscv/rvv/base/spill-sp-adjust.c: New test. I made several whitespace/formatting fixes to the riscv.cc part of this series, improved the Changelog and and committed it for you. Thanks, Jeff
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/spill-sp-adjust.c b/gcc/testsuite/gcc.target/riscv/rvv/base/spill-sp-adjust.c new file mode 100644 index 00000000000..0226554abf3 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/spill-sp-adjust.c @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv" } */ + +#include "spill-1.c" + +void +spill_sp_adjust (int8_t *v) +{ + vint8mf8_t v1 = *(vint8mf8_t*)v; +} + +/* Make sure we do not have a useless SP adjustment. */ +/* { dg-final { scan-assembler-not "addi\tsp,sp,0" } } */