From patchwork Mon Nov 6 22:35:31 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: 1860485 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 4SPR5S42Vtz1yQ5 for ; Tue, 7 Nov 2023 09:35:56 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 05C9638618E9 for ; Mon, 6 Nov 2023 22:35:54 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgbr2.qq.com (smtpbgbr2.qq.com [54.207.22.56]) by sourceware.org (Postfix) with ESMTPS id CD81138618F5 for ; Mon, 6 Nov 2023 22:35:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CD81138618F5 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 CD81138618F5 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=54.207.22.56 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699310144; cv=none; b=UknVkMktC8JBksv9xwhn5c3IBC2UBcJ/Nq+fBtnYCWi1yWPSYDu/Wgk7YGBF24We8z/ZxgTa3UnaFAw60ydM5vSKYvRA2flivUiLuRKGyHo5BZET5pOPCgUborzmWGK0AyasQG5Yb7tQUMA8smNZ8XgAsrZ/XXlviAJUZjXrEeo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699310144; c=relaxed/simple; bh=DBohW3pvdoXW/AG5tDPk2065uOXW+G7qo5EuMg0Chxs=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=arNiC4Lo3PXiR7iXi9z64QG28Z8caIAxXmtSkHql5vrpC2RCodlDUCKR0OKdY4G5y+ApkHL3E/Ankc8YHLKpz5XXh5ALrtmY0Gv1wtGOA5bliNA24JIdihB3zj9FwLSV+oryIl2E7Mx2Nw8ImQP/tYvzeSfXTHV9OyjFF6D9GSM= ARC-Authentication-Results: i=1; server2.sourceware.org X-QQ-mid: bizesmtp90t1699310133tmfe8az3 Received: from rios-cad121.hadoop.rioslab.org ( [58.60.1.9]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 07 Nov 2023 06:35:32 +0800 (CST) X-QQ-SSF: 01400000000000G0V000B00A0000000 X-QQ-FEAT: 6LJTjlC9C7N+Ia56tCau3fiX01QBM/HYgVbQ+1V7fEOxuH1sCeWM8OyWz16Ia K1iG0sXFrBtnnVuyqMX/mo+zdg0OsILHL1VPdbczlxmryjVM2HQkP7NG992VOUBbo3KJm/s kshVovh3F1JgWdNYRSMAPlEaVqDeNrUd6YsjMZWZ9wtN3zavLyaT55lUqnV6CrmI+oNl/mv ZSR16FGTTA6OqK/Pl772QhmLEvSWqUJ8yNRXdpdNqKy6nZP6yAMFn+HIhdM8r2jPDs+92Je N7bWFuUAGb0vVYBliR9ysdxyikZzxrRJkCZQw8yTXnyVthHpmEUI/tGsrLLAZXJqej49jG2 AMAaCcQTVwzgT1I+q35GlfuPq25JV2hvqXYBmxGhdEFmAw+g+v5m0MfzTaBlOQmwAlUg/68 X-QQ-GoodBg: 2 X-BIZMAIL-ID: 5822394262857816854 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Cc: jeffreyalaw@gmail.com, rguenther@suse.de, Juzhe-Zhong Subject: [PATCH] test: Fix XPASS of bb-slp-43.c for RVV Date: Tue, 7 Nov 2023 06:35:31 +0800 Message-Id: <20231106223531.3271166-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_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 RVV is variable length vector but also has 256 bit VLS mode vector. This test is vectorized as: f: vsetivli zero,8,e32,m2,ta,ma vle32.v v2,0(a0) vmv.v.i v4,1 vle16.v v1,0(a1) vmseq.vv v0,v2,v4 vsetvli zero,zero,e16,m1,ta,ma vmseq.vi v1,v1,2 vsetvli zero,zero,e32,m2,ta,ma vmv.v.i v2,0 vmand.mm v0,v0,v1 vmerge.vvm v2,v2,v4,v0 vse32.v v2,0(a0) ret Use 256 bit vector, so remove XFAIL for 256 bits vector. gcc/testsuite/ChangeLog: * gcc.dg/vect/bb-slp-43.c: Fix XPASS for RVV. --- gcc/testsuite/gcc.dg/vect/bb-slp-43.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-43.c b/gcc/testsuite/gcc.dg/vect/bb-slp-43.c index a65d9513c4d..dad2d24262d 100644 --- a/gcc/testsuite/gcc.dg/vect/bb-slp-43.c +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-43.c @@ -14,4 +14,4 @@ f (int *restrict x, short *restrict y) } /* { dg-final { scan-tree-dump-not "mixed mask and nonmask" "slp2" } } */ -/* { dg-final { scan-tree-dump-not "vector operands from scalars" "slp2" { target { { vect_int && vect_bool_cmp } && { vect_unpack && vect_hw_misalign } } xfail vect_variable_length } } } */ +/* { dg-final { scan-tree-dump-not "vector operands from scalars" "slp2" { target { { vect_int && vect_bool_cmp } && { vect_unpack && vect_hw_misalign } } xfail { vect_variable_length && { ! vect256 } } } } } */