Message ID | 20231106230343.3273494-1-juzhe.zhong@rivai.ai |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp2978736vqu; Mon, 6 Nov 2023 15:04:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IF48tuCxo0xgrcShXRtw78hiYpqj3raViEZh1Dcw+2aKZQC791OUUVME8YsTUis3inuQnRj X-Received: by 2002:a05:620a:3907:b0:775:6785:3051 with SMTP id qr7-20020a05620a390700b0077567853051mr36118541qkn.50.1699311866629; Mon, 06 Nov 2023 15:04:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699311866; cv=pass; d=google.com; s=arc-20160816; b=lnqbiiVDQG3giK4/zv9TbzX8S7NpCfPC9kXzdfi/ZhesI6coZjPZxKF8LEayihgC4k MvIF3xjrJtcNXrOQVL0EoIZzYIqkdWoeEa+mSgrz0/yA5kbJMxCZScVw1sQkAeEz6sNd Cuuy2m1jSNF6trvKJjjjRPPU68tWB9l7afcv/xolClef01+Xrldwmen8r8SaWLUuV6S3 /dvThyvOw5LGqs4d0sPwfNyFix2wjnu8UdQEP5/PZXpAT9e5YKU95CadywceJ0Gh6Mn0 AWRWaxt8haGSwCeSW/rbIC0rR08qyGeTXUzmHknWKZmuwxfZMeIuaK1tmOGGJlOeEEdk lMOQ== 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:feedback-id :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:arc-filter:dmarc-filter:delivered-to; bh=JKCQIqXJHj0zGYP/ocDnJOoOhglKBoJmg8ceCqJEnkY=; fh=Ytz0BgUryGxSKnlvo5iIYZYov/AuWMbdn9WUJJDE2rE=; b=S8BEGQnjpphJpNTEAWWNKcfO7+7hRNXmbl+KeZ2obAirQ/LcPnQOJis7HKZpE3k+97 LGYUdqVYSo8wz1e+jhWs5I4Z8Pt0ywnUAxiMEB35az0nn/Q/KLlpWJd9Q4Yhaz9Xague g9EqWLEHLMGHUwfpQ6WudYAOxCfIKqkblZgPbih7XmMSPes3+8drZBVneFq1XzxWnZRv UWVnkuAERywaFs7y/CVRxYWUHec/JHSfD9uvuRqZEgPd7plj5bmlhhda+4ToMvJ4yr5Q oYKpVa0iDRjusVP7pUn0bRrbePUTWyQE/HSD+RaY8Vsu/cSbJpC6bx4Aq5VLbcLpSfhA 1m0g== 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 e17-20020a05620a015100b00774182478b5si6207474qkn.11.2023.11.06.15.04.26 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 15:04:26 -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 64F98385800C for <ouuuleilei@gmail.com>; Mon, 6 Nov 2023 23:04:26 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbg151.qq.com (smtpbg151.qq.com [18.169.211.239]) by sourceware.org (Postfix) with ESMTPS id 3FF543858D35 for <gcc-patches@gcc.gnu.org>; Mon, 6 Nov 2023 23:03:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3FF543858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3FF543858D35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=18.169.211.239 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699311843; cv=none; b=bjsUD8sy3Pw5z3sNCYWojQa2MqcrkBrol9lXrp1gEvTfivWe3NBTWCDoK2pyt7AV4RYj3MBXBqleU0T3OyTkkvvnUBNpOlY0RoBESgusB519t8qIY83CMG4L0BL9ayRkA1g+ZVGtaj2V7AKG6b9tUEEAKszga9l9VHYci8TT0t8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699311843; c=relaxed/simple; bh=QVYa1F+KLMrkewW3Rg8Hf4znCrJW+76xfZUd0IpMDPY=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=PWM1X4ZdEswrIBhs1gHKKxZBmSByil9ndm03Sz7PJ6yZYYSVNvbQTiJKUTMmqruVHjAxF3GBsCvq9XOrz6XIs4K0CLuMrDy1PLGHIwRxNpIyyslLasTVUTNOqLpKeMjdZxGaMW5KKf02laOssQrgMchIkf29erC9rAoeW8+THhE= ARC-Authentication-Results: i=1; server2.sourceware.org X-QQ-mid: bizesmtp82t1699311825tx9fcxdx Received: from rios-cad121.hadoop.rioslab.org ( [58.60.1.9]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 07 Nov 2023 07:03:44 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: J5JfekO1WshswMP0FR+IEgMlSIkUAzyWLjkGbufkPK133homqTRtCAuPCG1y0 qlM3l/mOM1exyl/0WPHMLaCtnxy5zjCQ+2/f3eIwmxNMeG0yhCbX5TmqKNXrJVt7ZUyDnOP ht/jICTOJVCOxcKSkG6zMw2ZbSliyrExE0C/0iV0emibLqYONh2Fg1AINGXqGfieu4pwYvH b71Y7rQfVzDwazL3F72tCtAf5VNh74LLs7f4xuiAeKtwHPKBCwmqFjlNkBCDTCSOtJgcJq0 G3VReszNte1+Fcw9cu8TJUHg83aqFdB1/OnHpz2XtXO3p77wyWCfRqfNraXzIhgOVTSyD5x pzDZ+OcGEeH7ip49pxvweX7uPDCYUtOxqkQYtqJW2VzIIoQTodhIdvJ2Juupg== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 15644649098279430994 From: Juzhe-Zhong <juzhe.zhong@rivai.ai> To: gcc-patches@gcc.gnu.org Cc: rguenther@suse.de, jeffreyalaw@gmail.com, Juzhe-Zhong <juzhe.zhong@rivai.ai> Subject: [PATCH] test: Fix FAIL of bb-slp-cond-1.c for RVV Date: Tue, 7 Nov 2023 07:03:43 +0800 Message-Id: <20231106230343.3273494-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781857640043257543 X-GMAIL-MSGID: 1781857640043257543 |
Series |
test: Fix FAIL of bb-slp-cond-1.c for RVV
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
juzhe.zhong@rivai.ai
Nov. 6, 2023, 11:03 p.m. UTC
This patch fixes: FAIL: gcc.dg/vect/bb-slp-cond-1.c -flto -ffat-lto-objects scan-tree-dump-times vect "loop vectorized" 1 FAIL: gcc.dg/vect/bb-slp-cond-1.c scan-tree-dump-times vect "loop vectorized" 1 For RVV, "loop vectorized" appears 2 times instead of 1. Because: optimized: loop vectorized using 16 byte vectors optimized: loop vectorized using 8 byte vectors As long as targets have both 64bit and 128bit vectors, it will occur 2 times. 2 targets are same situation, one is AMDGCN, the other is RVV. Replace it target amdgcn with vect64 && vect128 to make test more general and easy maintain. gcc/testsuite/ChangeLog: * gcc.dg/vect/bb-slp-cond-1.c: Fix FAIL. --- gcc/testsuite/gcc.dg/vect/bb-slp-cond-1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On 11/6/23 16:03, Juzhe-Zhong wrote: > This patch fixes: > FAIL: gcc.dg/vect/bb-slp-cond-1.c -flto -ffat-lto-objects scan-tree-dump-times vect "loop vectorized" 1 > FAIL: gcc.dg/vect/bb-slp-cond-1.c scan-tree-dump-times vect "loop vectorized" 1 > > For RVV, "loop vectorized" appears 2 times instead of 1. Because: > optimized: loop vectorized using 16 byte vectors > optimized: loop vectorized using 8 byte vectors > > As long as targets have both 64bit and 128bit vectors, it will occur 2 times. > 2 targets are same situation, one is AMDGCN, the other is RVV. > > Replace it target amdgcn with vect64 && vect128 to make test more general and easy maintain. > > gcc/testsuite/ChangeLog: > > * gcc.dg/vect/bb-slp-cond-1.c: Fix FAIL. OK. jeff
Committed, thanks Jeff. Pan -----Original Message----- From: Jeff Law <jeffreyalaw@gmail.com> Sent: Tuesday, November 7, 2023 11:25 AM To: Juzhe-Zhong <juzhe.zhong@rivai.ai>; gcc-patches@gcc.gnu.org Cc: rguenther@suse.de Subject: Re: [PATCH] test: Fix FAIL of bb-slp-cond-1.c for RVV On 11/6/23 16:03, Juzhe-Zhong wrote: > This patch fixes: > FAIL: gcc.dg/vect/bb-slp-cond-1.c -flto -ffat-lto-objects scan-tree-dump-times vect "loop vectorized" 1 > FAIL: gcc.dg/vect/bb-slp-cond-1.c scan-tree-dump-times vect "loop vectorized" 1 > > For RVV, "loop vectorized" appears 2 times instead of 1. Because: > optimized: loop vectorized using 16 byte vectors > optimized: loop vectorized using 8 byte vectors > > As long as targets have both 64bit and 128bit vectors, it will occur 2 times. > 2 targets are same situation, one is AMDGCN, the other is RVV. > > Replace it target amdgcn with vect64 && vect128 to make test more general and easy maintain. > > gcc/testsuite/ChangeLog: > > * gcc.dg/vect/bb-slp-cond-1.c: Fix FAIL. OK. jeff
On Tue, 7 Nov 2023, Juzhe-Zhong wrote: > This patch fixes: > FAIL: gcc.dg/vect/bb-slp-cond-1.c -flto -ffat-lto-objects scan-tree-dump-times vect "loop vectorized" 1 > FAIL: gcc.dg/vect/bb-slp-cond-1.c scan-tree-dump-times vect "loop vectorized" 1 > > For RVV, "loop vectorized" appears 2 times instead of 1. Because: > optimized: loop vectorized using 16 byte vectors > optimized: loop vectorized using 8 byte vectors > > As long as targets have both 64bit and 128bit vectors, it will occur 2 times. > 2 targets are same situation, one is AMDGCN, the other is RVV. > > Replace it target amdgcn with vect64 && vect128 to make test more general and easy maintain. I think we usually add --param vect-epilogues-nomask=0 instead to avoid epilogue vectorization. I wonder why the test is called bb-slp-* though ... > gcc/testsuite/ChangeLog: > > * gcc.dg/vect/bb-slp-cond-1.c: Fix FAIL. > > --- > gcc/testsuite/gcc.dg/vect/bb-slp-cond-1.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-cond-1.c b/gcc/testsuite/gcc.dg/vect/bb-slp-cond-1.c > index c8024429e9c..7efb91725df 100644 > --- a/gcc/testsuite/gcc.dg/vect/bb-slp-cond-1.c > +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-cond-1.c > @@ -47,6 +47,6 @@ int main () > } > > /* { dg-final { scan-tree-dump {(no need for alias check [^\n]* when VF is 1|no alias between [^\n]* when [^\n]* is outside \(-16, 16\))} "vect" { target vect_element_align } } } */ > -/* { dg-final { scan-tree-dump-times "loop vectorized" 1 "vect" { target { vect_element_align && { ! amdgcn-*-* } } } } } */ > -/* { dg-final { scan-tree-dump-times "loop vectorized" 2 "vect" { target amdgcn-*-* } } } */ > +/* { dg-final { scan-tree-dump-times "loop vectorized" 1 "vect" { target { vect_element_align && { ! { vect64 && vect128 } } } } } } */ > +/* { dg-final { scan-tree-dump-times "loop vectorized" 2 "vect" { target { vect64 && vect128 } } } } */ > >
diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-cond-1.c b/gcc/testsuite/gcc.dg/vect/bb-slp-cond-1.c index c8024429e9c..7efb91725df 100644 --- a/gcc/testsuite/gcc.dg/vect/bb-slp-cond-1.c +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-cond-1.c @@ -47,6 +47,6 @@ int main () } /* { dg-final { scan-tree-dump {(no need for alias check [^\n]* when VF is 1|no alias between [^\n]* when [^\n]* is outside \(-16, 16\))} "vect" { target vect_element_align } } } */ -/* { dg-final { scan-tree-dump-times "loop vectorized" 1 "vect" { target { vect_element_align && { ! amdgcn-*-* } } } } } */ -/* { dg-final { scan-tree-dump-times "loop vectorized" 2 "vect" { target amdgcn-*-* } } } */ +/* { dg-final { scan-tree-dump-times "loop vectorized" 1 "vect" { target { vect_element_align && { ! { vect64 && vect128 } } } } } } */ +/* { dg-final { scan-tree-dump-times "loop vectorized" 2 "vect" { target { vect64 && vect128 } } } } */