From patchwork Tue Oct 10 02:47:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "juzhe.zhong@rivai.ai" X-Patchwork-Id: 150450 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp2241682vqo; Mon, 9 Oct 2023 19:48:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHDJi+YfXvB2nJ0/11lCCyyQu6AFgg4TB2rxeRbrlZxgDN+EYKYIrGTBmSaFg0S6jDzVj8U X-Received: by 2002:a17:906:3089:b0:9ad:c132:b93e with SMTP id 9-20020a170906308900b009adc132b93emr14475782ejv.28.1696906107519; Mon, 09 Oct 2023 19:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696906107; cv=none; d=google.com; s=arc-20160816; b=KW9vLgo2WaENJz5Oy/VY+eT4fvV6gz1UKBzVB2BaMkyfQUosomBG9r3gu5UTO723Zv l1BZ4fh9AW13WZjCFoWJO6p0L4iFEV1eBF5+FjoFnVGldVEtzDxpmu8L5aphwcWMW16u jXpCaU6y4FKz52rfHyr4mml7B8JrDy1Eks1dMD8GBPrx0FwOkUEeG7B0KsWWKF1QxWie /q61JRFku7cN38RV20RnotIEHKfHdsDTSn5uxnejIrGtZhlGCPaK+H+g1aFH7P9yuKKA eBrjW2duiHZDIjWSxS40+6LDJMRBSnAYR3OV4hU7bu1+O1pYnGW7VDCRoDdxa39WU+aA WOAg== ARC-Message-Signature: i=1; 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:dmarc-filter:delivered-to; bh=fmt2rKg02YOpWUPgeJ6m/dorIHCd7nPCDOoz+dDEZOc=; fh=yBhBYpuPIOgrXC1e/CBrSGTklImhq8otxtMfvESr7dM=; b=iNUnmT20Ir0yXsLHz2tWkDiCD/nQ9Rhos3jCwsW8NNP4J+0LXEh8+kWuePB93fHXIV gs5WhE2YVIVQ6WVF22CNkAv9rAll1DbXAuwAlHY5Q4khJY1wxN44Hn0dSssL/nxuDYjK f0MyYou+UbVF1erbhg1eMZ9Jwb2vESQ4uuZDujVTTb74p2SSy+X9BuXBHKB0PowzthSJ ZiWXg/K53eimmgLWwJm3O9zZlbx4XGgGghO8ER5+NpXCD6XB2//dgBp0/Ydn3th89XI6 k0o9wJMrS82tATpT0G/a+HkQpKrMPddhtpMCho9Adfzt/EbpCOczKJ0kB/A77mWkofLD +hvw== 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 server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id gg17-20020a170906e29100b0099bc7292ed0si4817390ejb.806.2023.10.09.19.48.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 19:48:27 -0700 (PDT) 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 E12783858409 for ; Tue, 10 Oct 2023 02:48:22 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbguseast2.qq.com (smtpbguseast2.qq.com [54.204.34.130]) by sourceware.org (Postfix) with ESMTPS id 389D33858D28 for ; Tue, 10 Oct 2023 02:47:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 389D33858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai X-QQ-mid: bizesmtp67t1696906065tdp9y552 Received: from rios-cad121.hadoop.rioslab.org ( [58.60.1.9]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 10 Oct 2023 10:47:44 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: 3M0okmaRx3jWbwqBU7Ktg/i7IvlD2emWDmtpxtBqyjNsTTCq/7Nw8bTtLpk5j fzebs2gg5zsVSWyGdwyZDaQWt3CSA1cQKwq9RJzZKUQSd9gNJbrOyhnPbYP9rgVt9Rf0vnK AuYd7/KkJXkkjhyNX1vHiSzvgQh7ff3bVF55295e0ce7RTCMXxuA4GVX1YvBnaH5T3IR+dA hRkKaIGyuEctIByFGCAViVkfLA2+Sj0li9KHWlnbPeZdqSVOuiYoJsEXZ6EshJ/ugPCNf+u XJ2Ugeiyo54Okd0T17XG9FGeBFTjdeKbJI4qmfkGfc9AtLoqX2uLqhJWUc8ZxGiPvSWdyHW mRvwEhD+PNOGsS3I+rkj4rLCYeJRFe0Hpwf3Cr9Q5wCm8+Vg05aY7hwXxINTfMFJmR8Ka03 JdqWr7m7uTc= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 5182065449649708725 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Cc: rguenther@suse.de, jeffreyalaw@gmail.com, rdapp.gcc@gmail.com, Juzhe-Zhong Subject: [PATCH] RISC-V Regression: Make match patterns more accurate Date: Tue, 10 Oct 2023 10:47:42 +0800 Message-Id: <20231010024742.3092307-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.3 MIME-Version: 1.0 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_H3, RCVD_IN_MSPIKE_WL, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779335018670890266 X-GMAIL-MSGID: 1779335018670890266 This patch fixes following 2 FAILs in RVV regression since the check is not accurate. It's inspired by Robin's previous patch: https://patchwork.sourceware.org/project/gcc/patch/dde89b9e-49a0-d70b-0906-fb3022cac11b@gmail.com/ gcc/testsuite/ChangeLog: * gcc.dg/vect/no-scevccp-outer-7.c: Adjust regex pattern. * gcc.dg/vect/no-scevccp-vect-iv-3.c: Ditto. --- gcc/testsuite/gcc.dg/vect/no-scevccp-outer-7.c | 2 +- gcc/testsuite/gcc.dg/vect/no-scevccp-vect-iv-3.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/vect/no-scevccp-outer-7.c b/gcc/testsuite/gcc.dg/vect/no-scevccp-outer-7.c index 543ee98b5a4..058d1d2db2d 100644 --- a/gcc/testsuite/gcc.dg/vect/no-scevccp-outer-7.c +++ b/gcc/testsuite/gcc.dg/vect/no-scevccp-outer-7.c @@ -77,4 +77,4 @@ int main (void) } /* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED." 1 "vect" { target vect_widen_mult_hi_to_si } } } */ -/* { dg-final { scan-tree-dump-times "vect_recog_widen_mult_pattern: detected" 1 "vect" } } */ +/* { dg-final { scan-tree-dump-times "vect_recog_widen_mult_pattern: detected(?:(?!failed)(?!Re-trying).)*succeeded" 1 "vect" } } */ diff --git a/gcc/testsuite/gcc.dg/vect/no-scevccp-vect-iv-3.c b/gcc/testsuite/gcc.dg/vect/no-scevccp-vect-iv-3.c index 7049e4936b9..6f2b2210b11 100644 --- a/gcc/testsuite/gcc.dg/vect/no-scevccp-vect-iv-3.c +++ b/gcc/testsuite/gcc.dg/vect/no-scevccp-vect-iv-3.c @@ -30,4 +30,4 @@ unsigned int main1 () } /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_widen_sum_hi_to_si } } } */ -/* { dg-final { scan-tree-dump-times "vect_recog_widen_sum_pattern: detected" 1 "vect" { target vect_widen_sum_hi_to_si } } } */ +/* { dg-final { scan-tree-dump-times "vect_recog_widen_sum_pattern: detected(?:(?!failed)(?!Re-trying).)*succeeded" 1 "vect" { target vect_widen_sum_hi_to_si } } } */