From patchwork Mon Oct 9 13:15:30 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: 150101 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp1860705vqo; Mon, 9 Oct 2023 06:16:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHsnEhkNm/a77JftSE5qRRKLd5OZYgy03OupJv/5NitpDalyZAb4KdiJL8bQpUCeyqgNH47 X-Received: by 2002:aa7:c505:0:b0:525:5ed2:abed with SMTP id o5-20020aa7c505000000b005255ed2abedmr14696122edq.30.1696857376717; Mon, 09 Oct 2023 06:16:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696857376; cv=none; d=google.com; s=arc-20160816; b=KM/nQRdq+dg5XTKaso88BPxrA/alGq8eBcMTXtWhzAKzOHWbXE4h1ph6LInEFIxFGn 3FUIJQCmVwx4NcIjWUKgl19lNZvZkv8stQEonAam0mQe/5XFxlN0T70dmagwFExnrxNn xPrcdzt+Lqo7NlFJpnyKhWjPSMuGfugw5shF0H7tfWD8LPrWiPrnpt/+fCBJoPBBd6ag 5YesA5ClyY43Z/8DohwtnLj8QPr5iUDe9/CrQOvdoCfM3TbUc31DmoBDiBLgCQdanUcE aGLWA4VhbNPdZA4MYpjvcrzLmivwgyKPnXSYif1VJERbzk75F09uWlde3W//Yi627w0+ vDdQ== 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=aHyVuOPYBGPhHOZUi6hEgV/6bMS6aly6cK8JkRT6X2Q=; fh=Ytz0BgUryGxSKnlvo5iIYZYov/AuWMbdn9WUJJDE2rE=; b=KD0bwlnEq1G1i/4wX5VARGNYv6jLcAzG4p+NDOFPEmRzikYYvOVhMVC/HvBMjZeCJ/ 6csVKPik+dBwrTS1NK12Bt39ns4zLQDGHnW5ayxu0SV60N+0txNz0QLEYwnZrQeheKjd XS3fv4IL0LkhfXJBzbGLtZsmtzFwznKf+Um3kEZVvODTrVFQZZhhMbzgSNJgBW4AdZl5 iRksr4mdmEOD+bunWZWrkhcjd5rw3j+Ug7mgZ9kqWM7Q+fnJ36Ci2xSCXWqgJYOvRrl9 +3FadXObxoBySE2a7IyOqVLVIkG90P5o5GUU7ocAH4Y/ODQ8KBodchakTc/S0bDCTUAP KdCw== 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 f14-20020a056402068e00b005255d8f2d00si4434374edy.672.2023.10.09.06.16.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 06:16:16 -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 D567D3857714 for ; Mon, 9 Oct 2023 13:16:08 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgeu2.qq.com (smtpbgeu2.qq.com [18.194.254.142]) by sourceware.org (Postfix) with ESMTPS id 4048F3858C2D for ; Mon, 9 Oct 2023 13:15:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4048F3858C2D 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: bizesmtp64t1696857332tuvduxkp Received: from rios-cad122.hadoop.rioslab.org ( [58.60.1.26]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 09 Oct 2023 21:15:31 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: 8dxKgT/1RlIrU+ZC6QtkN0U9Pi7ZumPXiE1WMs2TFmisbDQIwkOmuJBGye5MM 0pop8mM8dCOViyiM9fE77RsPOXSQDP3OrzFc2aN/iknv+j91KlEsHRjEmUT9c8w0c6pNPla mFkITIzKKiBTSMwmMSa9xV8VPQf8trisRcK1K6IiKgwvrnUV7ryn5/PDADogkbuN7QEJrB2 PKCxlgAZK4XfLE4BR6Y4VU0wy+GzjWHfPv9puW/inBKbj8SkSP8IkaYmqxOlNoapov7TmRe iZ05lGZ7F2O0Of279bvKn4p12h7oe8RUOmcVWTHKqDRZmsi3brH64209yRc4yDNl37aJFay Rs2KDkgZ30zPX2eZN54PiE+0EXY5Nxrxvq496ZY2Wnt5uQ2i3I7Bb5DF35xX4f4edrHQfw/ zXyVmmQ7z2w= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 15500290534351230695 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Cc: rguenther@suse.de, jeffreyalaw@gmail.com, Juzhe-Zhong Subject: [PATCH] RISC-V Regression tests: Fix FAIL of pr97832* for RVV Date: Mon, 9 Oct 2023 21:15:30 +0800 Message-Id: <20231009131530.24496-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=-10.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS, TXREP, T_SPF_HELO_TEMPERROR 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: 1779283920661943833 X-GMAIL-MSGID: 1779283920661943833 These cases are vectorized by vec_load_lanes with strided = 8 instead of SLP with -fno-vect-cost-model. gcc/testsuite/ChangeLog: * gcc.dg/vect/pr97832-2.c: Adapt dump check for target supports load_lanes with stride = 8. * gcc.dg/vect/pr97832-3.c: Ditto. * gcc.dg/vect/pr97832-4.c: Ditto. --- gcc/testsuite/gcc.dg/vect/pr97832-2.c | 4 ++-- gcc/testsuite/gcc.dg/vect/pr97832-3.c | 4 ++-- gcc/testsuite/gcc.dg/vect/pr97832-4.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/testsuite/gcc.dg/vect/pr97832-2.c b/gcc/testsuite/gcc.dg/vect/pr97832-2.c index 4f0578120ee..7d8d2691432 100644 --- a/gcc/testsuite/gcc.dg/vect/pr97832-2.c +++ b/gcc/testsuite/gcc.dg/vect/pr97832-2.c @@ -25,5 +25,5 @@ void foo1x1(double* restrict y, const double* restrict x, int clen) } } -/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */ -/* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" } } */ +/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { target { ! { vect_load_lanes && vect_strided8 } } } } } */ +/* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" { target { ! { vect_load_lanes && vect_strided8 } } } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/pr97832-3.c b/gcc/testsuite/gcc.dg/vect/pr97832-3.c index ad1225ddbaa..c0603e1432e 100644 --- a/gcc/testsuite/gcc.dg/vect/pr97832-3.c +++ b/gcc/testsuite/gcc.dg/vect/pr97832-3.c @@ -46,5 +46,5 @@ void foo(double* restrict y, const double* restrict x0, const double* restrict x } } -/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */ -/* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" } } */ +/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { target { ! { vect_load_lanes && vect_strided8 } } } } } */ +/* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" { target { ! { vect_load_lanes && vect_strided8 } } } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/pr97832-4.c b/gcc/testsuite/gcc.dg/vect/pr97832-4.c index 74ae27ff873..c03442816a4 100644 --- a/gcc/testsuite/gcc.dg/vect/pr97832-4.c +++ b/gcc/testsuite/gcc.dg/vect/pr97832-4.c @@ -24,5 +24,5 @@ void foo1x1(double* restrict y, const double* restrict x, int clen) } } -/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */ -/* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" } } */ +/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { target { ! { vect_load_lanes && vect_strided8 } } } } } */ +/* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" { target { ! { vect_load_lanes && vect_strided8 } } } } } */