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: =?utf-8?b?6ZKf5bGF5ZOy?= X-Patchwork-Id: 1860746 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SPgmF6NGKz1yRH for ; Tue, 7 Nov 2023 19:06:53 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2B645385E009 for ; Tue, 7 Nov 2023 08:06:51 +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+incoming=patchwork.ozlabs.org@gcc.gnu.org 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*-*-* } } } } */