From patchwork Tue Nov 7 08:06:27 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: 162301 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:aa0b:0:b0:403:3b70:6f57 with SMTP id k11csp82600vqo; Tue, 7 Nov 2023 00:07:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IFR0pUANbAtoY+1qsAx1T1SG9VX5ZpMZiuB2O6gFI3TrsT714bZmlvAFdadkuxeKSfRH7PO X-Received: by 2002:ac8:5bca:0:b0:419:c8fd:3bb with SMTP id b10-20020ac85bca000000b00419c8fd03bbmr38967999qtb.31.1699344425244; Tue, 07 Nov 2023 00:07:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699344425; cv=pass; d=google.com; s=arc-20160816; b=bEXbeWLsSIdvHrKux5AyfE/m0ZQJ5LNlTymzfTP4Wea0rwo9jxdDIVtULGoTVZOzHr algXDpFA1ssmBvATj4mT1kWpQsUtbyrWxx/d3/9vG3utsR7Bri6gHNUfFbQDgW+d+aIf 6vs2XuJm0QHQvT9XrKaGJaaLTUutqgtHYAlfbJRbAsNg+IPRFgCAO3AkZRWgG81buaPO m3HIWanKXqF1gqV/IfjDQypgTGoeI7TUS/pZLAcL+MUSLIKyLdFlILvvKs9j9hGu5TNN wQnWIyyGlqMs2sXsd+r6UoEjbFYb+JQbxQ2tfsMew+HuQo+ExpqIq8RfrqdDTN83t5IY 4Fsg== 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=vhUEtgwH4/tlQGO8LvJEeV8AbzN1Kd1TdNIaE8yRXc0=; fh=12MRPJmZ1mgDpHqWoogMKqnaGRGM2b7lcuJroqfjJiw=; b=b/WbC3PWR71h97Ex7w8KI4wHI/ea5b5agBrHUAJK2OY0gW+qIQrq2ujStS6YPpZvWd 7apLlntLUjG+R/lCrh4EBbPlC8YlwoJ/tHQWu/Rxs58VTh0VvW4LYeasi7TdrQI9vzOT PDHtYk0hl7UZr/tgf44xYAGeB9G1Lx5GzpvAgSVs37aSz5ISADWft0A371ZG1qliTpiP oGqkiDMqNMRLpOrZiHfKXTE5CJipSJVRUmBcGo4aFitvPEOt/WHIOiFmxvJVjLHZXJ4I nzx2ncgajRdVumuHvlk4c6Ppr/Mrw+jnFnhKucyojWCtqiYIfcs2IdRxC8CRf9VYn5j0 gLWg== 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 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 p11-20020a05622a00cb00b004032d91e8b7si6644583qtw.295.2023.11.07.00.07.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 00:07:05 -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; arc=pass (i=1); 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 EE95B385C6EB for ; Tue, 7 Nov 2023 08:07:04 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgjp3.qq.com (smtpbgjp3.qq.com [54.92.39.34]) by sourceware.org (Postfix) with ESMTPS id 1194B385696A for ; Tue, 7 Nov 2023 08:06:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1194B385696A 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 1194B385696A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=54.92.39.34 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699344399; cv=none; b=BsUgCEh6AnacH9qH6ntCxQLLXL3B5GWIknCy+FwqytKT2Kic0qn5E6aqLOlQ0mflk+uWVuI9X6ppWYq594MVnpAmdl5BLoLj2aaB8GnOlctyi4iAtxSXCXRPm8Ub9gJPqcbmb2xfFQOSPE78h4Od8fqTXjx8kVRAoQLqEBoYiso= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699344399; c=relaxed/simple; bh=aaJGNzUAt+KkS1a9WlGoGayQTUmeVmUQUZv+fOWvaL8=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=TP8xLc+wNY8gbf3hFz+ttoq1elzUwk7IBsmic7xR4QWy3qp1ScT1hbbhtnLOH9KLq3dR6VD1E/R7ZobbNtqP6Xy4EcYna+6zVWagcGnU4gNZ8PX+G8BDLs17nDCA/KCj6ZZHZW/QbWIrxJU4jIpMx3R4U/iW5XD87PzkHBYMfOk= ARC-Authentication-Results: i=1; server2.sourceware.org X-QQ-mid: bizesmtp88t1699344390te51nni3 Received: from rios-cad121.hadoop.rioslab.org ( [58.60.1.9]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 07 Nov 2023 16:06:28 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: OFQdrTmJ2CTIXr9joR/rgmu/edw6jM7BaJgfj906g2jG/0POMiC2V+7C4N5zT Ot/B8UJN8WtR8q9NBzN69x3UpBRkqz9LsD7QsnKQSZtdWR59mxTv73vjPurb36iFzS+1njQ zcQwoSIdPPrV2jMGJntt5BMvkQFsFPogkOnyGt7MstJFVlA67BgPgZH7JYJhNEGN7OjfkAE O1Q9vQp38a+t8p8yEyZlkuK7PFL06T/DDrPWOvzI3oqj1dJbuVMuTQOhbHNJupHPQ+gvmp1 KmsJzqmYRMKN7zlpQkrSofeJkihCYFqwsnXgjdGBiJ3SEBvpF9wvI94R3EC7Aog/9ImvUAB Cr2Xmga0YnYCJ4YziUh2mmX+sQlS3EEdW2kGiN6LP5y0xUFAtCJsElkUp0G/8NSoBHx2/4/ pXtYfRAbb3dFq2XvaliG7w== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 2114699393490238588 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, kito.cheng@sifive.com, jeffreyalaw@gmail.com, rdapp.gcc@gmail.com, Juzhe-Zhong Subject: [PATCH] RISC-V regression test: Fix FAIL bb-slp-cond-1.c for RVV Date: Tue, 7 Nov 2023 16:06:27 +0800 Message-Id: <20231107080627.4178732-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, KAM_SHORT, 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 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: 1781891779787673908 X-GMAIL-MSGID: 1781891779787673908 Previously, in this patch: https://gcc.gnu.org/pipermail/gcc-patches/2023-November/635392.html I use vect64 && vect128 to represent both RVV and AMDGCN. However, it caused additional FAIL on ARM SVE. I don't know why ARM SVE vect64 is set as true since their AdvSIMD is 128bit vector and they don't use 64bit vector. So, here we leverage current AMDGCN solution, just add RISCV like AMDGCN. gcc/testsuite/ChangeLog: * gcc.dg/vect/bb-slp-cond-1.c: Add riscv. --- 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..4089eb51b2e 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 && { ! { amdgcn-*-* riscv*-*-* } } } } } } */ +/* { dg-final { scan-tree-dump-times "loop vectorized" 2 "vect" { target { amdgcn-*-* riscv*-*-* } } } } */