Message ID | 20221115121345.3650155-1-chenyixuan@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 l7csp2683385wru; Tue, 15 Nov 2022 04:14:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf5B0tjtvqsCv0cc4UOG+MMPK8yxutbL9j9Fg2JbhHcy69ub27PzKNW+cC40/VvNiW2TwTV4 X-Received: by 2002:a17:907:210d:b0:7ae:25ba:5e4b with SMTP id qn13-20020a170907210d00b007ae25ba5e4bmr13748601ejb.724.1668514462123; Tue, 15 Nov 2022 04:14:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668514462; cv=none; d=google.com; s=arc-20160816; b=akKXS28Ch837f6hJgPNKPMIjRTYJY+ulVU/8yoJqBmFF1t/7j7/k4DwLHooAb7ruPx sKCfZQ047QXwIA2q7HBLVENl6MKj5pEXlAMBI9H6cTVLzYt51mTvmOJcOMCjQ/+VZ8xq NxW+8rD+bYPfqvA7ey9H19/ypQstMNDz0t13XhK8lCKts2+6X/nRnKnsg4caRXT5IvRZ Hxz2PKepf8Wcz7RJX4ljmeH78cfheY98pnkenjA3gRzTwBSHLxoEL0BZfdvJWKohwi6+ dYbdLooNGO3pwMwoPCiQD193ImgSHuxIoO52uY7LWQnpdAXPiorGCgoBlx1ATp2QtSl5 2e0g== 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:message-id:date:subject:cc:to:from:dmarc-filter :delivered-to; bh=M4DYxb0wvNlV2iggiv6XqLqaFUj0boiMdJNzGD8IhpA=; b=Z7AvAkKc2rgHPfLu8qIxH3mr+Gp/opk1C+BNJJI3VicS6Z8LHc3Xhji9hRJnbrWQie e6L+4QxGkRU+1tnqy7grHAQMPu4HBxuZLLMlQd+LipGueq4Hw6b5s/jxCNQFOuh92z1o ZTITRQxWt9DilSG2LbwDldXqsAuAXxCqnGj+e/LsfRh2c3KsQQcYgVOblb7Fl2it4//z XLYqDK+VX4xq2VIaKx+pnzn90IchRm49qTd3XCRftqBuNGoBq9hHnJ8j4PBS7kew3jdz 53/GuoULpv0g7zcRLNhsJfJv7CYChG/WgpIn0AAZHKqYACqWnDNfTzTipviIDXoF3/s8 bbKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id o11-20020a170906974b00b0078d4a0c77f9si12800856ejy.458.2022.11.15.04.14.21 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 04:14:22 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 545533894C07 for <ouuuleilei@gmail.com>; Tue, 15 Nov 2022 12:14:18 +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 ESMTP id 3ECCB3889E34 for <gcc-patches@gcc.gnu.org>; Tue, 15 Nov 2022 12:13:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3ECCB3889E34 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 ubuntu.. (unknown [27.16.214.61]) by APP-05 (Coremail) with SMTP id zQCowABHTLR6gnNjZ_G0CQ--.45010S2; Tue, 15 Nov 2022 20:13:46 +0800 (CST) From: Yixuan Chen <chenyixuan@iscas.ac.cn> To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, andrew@sifive.com, Oria Chen <oriachiuan@gmail.com> Subject: [PATCH] Optimize testcase Date: Tue, 15 Nov 2022 20:13:45 +0800 Message-Id: <20221115121345.3650155-1-chenyixuan@iscas.ac.cn> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: zQCowABHTLR6gnNjZ_G0CQ--.45010S2 X-Coremail-Antispam: 1UD129KBjvdXoWrKFWDGF15WFWxtFy3urW8Crg_yoWDAFXEg3 WUXw4kAw48Aa1fJan5A3WUtrW2kF4vq34S9anFgrnxXrsrX3Z5X3WkCFyUtrWDur4fWFWS gr1fuFWayrnxujkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbF8YjsxI4VW3JwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVWUJVW8JwA2z4x0Y4vEx4A2jsIE14v26F4UJVW0owA2z4x0Y4vEx4 A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IE w4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JF0_Jw1lYx0Ex4A2jsIE14v26r1j6r4UMc vjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxGrwCFx2Iq xVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r 106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AK xVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7 xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_ GrUvcSsGvfC2KfnxnUUI43ZEXa7IU8HGQDUUUUU== X-Originating-IP: [27.16.214.61] X-CM-SenderInfo: xfkh05pl0xt046lvutnvoduhdfq/ X-Spam-Status: No, score=-13.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, 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?1749564220703695835?= X-GMAIL-MSGID: =?utf-8?q?1749564220703695835?= |
Series |
Optimize testcase
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
陈逸轩
Nov. 15, 2022, 12:13 p.m. UTC
From: Oria Chen <oriachiuan@gmail.com>
gcc/testsuite/ChangeLog:
2022-11-15 Yixuan Chen <chenyixuan@iscas.ac.cn>
* gcc.dg/fold-overflow-1.c: Optimize testcase, because riscv will use ".LC0" intead of ".LC1" and ".LC2" with "-O" compile option
---
gcc/testsuite/gcc.dg/fold-overflow-1.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On Tue, Nov 15, 2022 at 08:13:45PM +0800, Yixuan Chen wrote: > From: Oria Chen <oriachiuan@gmail.com> > > gcc/testsuite/ChangeLog: > > 2022-11-15 Yixuan Chen <chenyixuan@iscas.ac.cn> > > * gcc.dg/fold-overflow-1.c: Optimize testcase, because riscv will use ".LC0" intead of ".LC1" and ".LC2" with "-O" compile option This is wrong. See https://gcc.gnu.org/PR107608 Jakub
diff --git a/gcc/testsuite/gcc.dg/fold-overflow-1.c b/gcc/testsuite/gcc.dg/fold-overflow-1.c index 108df4e3155..02598bfa3d3 100644 --- a/gcc/testsuite/gcc.dg/fold-overflow-1.c +++ b/gcc/testsuite/gcc.dg/fold-overflow-1.c @@ -18,5 +18,6 @@ float foo2(void) return 1.0f/0.0f; } -/* { dg-final { scan-assembler-times "2139095040" 2 { target { ! mmix-*-* } } } } */ +/* { dg-final { scan-assembler-times "2139095040" 2 { target { ! { mmix-*-* riscv*-*-* } } } } } */ /* { dg-final { scan-assembler-times "#7f800000" 2 { target mmix-*-* } } } */ +/* { dg-final { scan-assembler-times "2139095040" 3 { target riscv*-*-* } } } */