From patchwork Mon Oct 9 13:02:18 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: 150076 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp1851064vqo; Mon, 9 Oct 2023 06:03:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFsQAU4G2iCihNAi95HEBBAf2UklIse8v5OsaT/MXYON3v2rlsvHnN761eR9zWUxy/7CwrZ X-Received: by 2002:a17:906:738f:b0:9ba:14a3:7221 with SMTP id f15-20020a170906738f00b009ba14a37221mr3732118ejl.73.1696856609737; Mon, 09 Oct 2023 06:03:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696856609; cv=none; d=google.com; s=arc-20160816; b=Cd8kQraBruOf0npXrChIDROW40IsKzz7+Z3JQHxA4bEMoDJFDGDm/rI+lsR5os6DhD mtGNNtY9Udw9Td8T/yJ9IYy+OJifXEFm2mTMYBY90cWIhmKQ1HQsHSNiQm2PCwrZ82n8 xsPxeWbJHfvPASQOEpmRMgIqm1F4/eoZ51RUgDcqsKZj9W8cFnG1ndl54JGELiC6XxV/ KpDTxuCqn/lgRw2cYlqVhdyHdXosW0WmDgkwZg6aIaeaFo1aX5YdyBW5cxlBA2drOArm aeJlNufv9el4ht3D45C7+vpbHHUbQXfAj4F+rYKebVZBfBnYqNYLunyOnHZnR+UQ3z7+ FSRQ== 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=XhYNbG8fpmEfb/qCD8MMnjF75xU+13O/yXVMXBphJ8Q=; fh=Ytz0BgUryGxSKnlvo5iIYZYov/AuWMbdn9WUJJDE2rE=; b=M8SXBuaDP9n0xOV/AMKjWrlIEDZ6AO8BeaOry7U3mw9BGXke1Pc+qNknG077253CQy 8qPW8nwdWSx2pOTQGsa9YO9KqVUOeTNXDzWyVobeePIW2TygMVx/NbjclSKdSedsx+xE 8cwlPGdDDZ4fWTOao8LEi9ednkZwCICNIB2apwGjHDz0zlwymc+N0Dx6bURzBZ1dKsc2 grwAOU5mJvgDqldbY65Ok+c6XSAsrZHt3alzyP2OZflG+DC2WGMkz/CRmjCbp3WSU0wr GOtOs6MHjsIMv9ACMLStOZrINwf+ugorJ255gBb4ZOUz8elK7SMG9hHdBMscfMHlbibC Hd4Q== 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 server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id dy22-20020a05640231f600b0053603ad9b28si4179966edb.388.2023.10.09.06.03.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 06:03:29 -0700 (PDT) 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 2A681385E03D for ; Mon, 9 Oct 2023 13:02:58 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgau2.qq.com (smtpbgau2.qq.com [54.206.34.216]) by sourceware.org (Postfix) with ESMTPS id 769993858C2D for ; Mon, 9 Oct 2023 13:02:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 769993858C2D 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: bizesmtp81t1696856542tjis5puc Received: from rios-cad122.hadoop.rioslab.org ( [58.60.1.26]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 09 Oct 2023 21:02:21 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: PS/N6jJLnDZubTclYnX1t12OLdBYL4FcUUMUXXzd7VBSC9x354tn/aD1tPoym BXF9ZyvwvKuoGhuxMjPHUNn2NSbIWV54+qK4LYNeCVr6dN5hNec1vFnQ3U8va1wjxzU6UmB rZAuRLifEIL2QIeL7NNqcarebCSEkaSeqlxFEv/mYMscY9CQAAQkOwr4MOwRtWY4MNgp7eh 2rc9ObiMlok0ineThKwFUTAZtINeQ2x/TsCT7JwDWczMHyc4pf4Z9lZYrmc4mVuC17+qMI3 m9SrLED/6DRsxsnfDKoWbBqpbqt5BhvT+ezgD3ukmy+5DGslfKQxSqCEHfsp2Wl5mF1AUq8 nH2PlUVDABMLBYmBkb1DcgCf0BZDS6CbftjNvf0W/mUlF4lrTFR4G7aK8r2pFBI+uxm1dOj cazhvV6eXVw= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 18229230538508434485 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Cc: rguenther@suse.de, jeffreyalaw@gmail.com, Juzhe-Zhong Subject: [PATCH] RISC-V Regression test: Fix FAIL of pr45752.c for RVV Date: Mon, 9 Oct 2023 21:02:18 +0800 Message-Id: <20231009130218.20525-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_H2, 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: 1779283116151012154 X-GMAIL-MSGID: 1779283116151012154 RVV use load_lanes with stride = 5 vectorize this case with -fno-vect-cost-model instead of SLP. gcc/testsuite/ChangeLog: * gcc.dg/vect/pr45752.c: Adapt dump check for target supports load_lanes with stride = 5. --- gcc/testsuite/gcc.dg/vect/pr45752.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/vect/pr45752.c b/gcc/testsuite/gcc.dg/vect/pr45752.c index e8b364f29eb..3c87d9b04fc 100644 --- a/gcc/testsuite/gcc.dg/vect/pr45752.c +++ b/gcc/testsuite/gcc.dg/vect/pr45752.c @@ -159,4 +159,4 @@ int main (int argc, const char* argv[]) /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */ /* { dg-final { scan-tree-dump-times "gaps requires scalar epilogue loop" 0 "vect" } } */ -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "vect" } } */ +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "vect" {target { ! { vect_load_lanes && vect_strided5 } } } } } */