From patchwork Mon Nov 6 22:35:03 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: 162207 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp2967690vqu; Mon, 6 Nov 2023 14:35:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNPxd6SMFma4NviAxgN5xpxce9+wBc8Na24Owr4O18jr47/V7H9Wz93zJRRi3jJIHJ+BFp X-Received: by 2002:a05:620a:2403:b0:777:784:3458 with SMTP id d3-20020a05620a240300b0077707843458mr35890501qkn.64.1699310138705; Mon, 06 Nov 2023 14:35:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699310138; cv=pass; d=google.com; s=arc-20160816; b=uR9/cMWf3Ds8Y8yZadN0EYGEeDytUZyEyHfntw3iz1xeQUHl30c0nnMeuQp9COL7HC kNg5PjMXVWyo39eHZFsFN9t9ODG1oGMmK5tK9s8NP7Gug1lw8oXP6E2Cqk4ViuBvSnyq bgPWLfxJ46UbD6D+euGCeIUDUaZ1huy3e7TgFIawvO0G9Y6HZTtlA+HdT5elrfo83ZyA VyA8u/dp+aZTM8WeI+63TifOuAsDPG8cVEd5JN7zUhsWZPfrJLgiml5hhFRiZxr0F1y0 t24MIV30C/oSj/O0WauyPUezJP3QpbaED21KeJIJaQDX99KDtmPyrw6t9TwXPCYqXMTg T1kw== 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=qoGHAEMuxYbUnV7aLg3HqAlgDXrtsNnAZ8z8ARxujps=; fh=QnYeIuSDZIkkrq4NGGcEzEzAeV420tPuJ8WfS7fJHyk=; b=gv4tI1AxyBjKDSciDHFj8y9vdMkHhM47fW4yG/JMsKwB1U/kkfP108ZG5Nq1vWK2vu 7c1tW/pzp4TSAC1No6kS7pItufmGOBsg/jm+fUK+PqnCS8m/WuTYehxoFZsGJZLmNFJz uiTBg8IJ4bDq0ZNjFwQ/neoBMEkq1MOborA2S+QEb5YlUJDjNYcJ6cFFUQz9lXLORmhP 4eU2hiecvsL4bdyHa4xdx/6CbFSo9DBZ2HqyK8v7chnmBSOJuxE0ygLE77vGKFUEsrKO O6eaDUJVY0jMyAlY0ipndHqbl6fpuLwGMoDtmFjM+5fUn4T7g3Xh46xXTZIultoVH9YF lEyA== 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 a25-20020a05620a439900b00778a4087339si6199262qkp.479.2023.11.06.14.35.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 14:35:38 -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 77DDB38618E1 for ; Mon, 6 Nov 2023 22:35:38 +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 EB216385841B for ; Mon, 6 Nov 2023 22:35:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EB216385841B 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 EB216385841B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=54.206.34.216 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699310115; cv=none; b=hKXeC9cnJxT2oosN/gs7hmNmNKU0LxUgBqqDTFM/mnYGbcdhAK4lWYYFojhmXdeBaNOlB8npTrmF1DMKGOIytzyz7E/u+44heOUeHg/isLYks7mCcUe0gC55JiGzW4qsZGsd4xkxLntObXlHySWvGSESTKnVeo4LmY8DHm1AEQI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699310115; c=relaxed/simple; bh=DBohW3pvdoXW/AG5tDPk2065uOXW+G7qo5EuMg0Chxs=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=g50qiuobfdzJy0T8XSJJEOQqigwb2x4FdFH8tVd6c22vDkEumoE45yHwRemZPhYWZYiiSYSXanT1rlHgoAbEomsDB5L+98ZFpAgElGUonoKy8slve9XJoNkiET/iNhFkUkODoIJjsqauXyXdAeKzQfVPW4OekmbYNWX9K6t6ZAs= ARC-Authentication-Results: i=1; server2.sourceware.org X-QQ-mid: bizesmtp90t1699310106tvs72m64 Received: from rios-cad121.hadoop.rioslab.org ( [58.60.1.9]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 07 Nov 2023 06:35:05 +0800 (CST) X-QQ-SSF: 01400000000000G0V000B00A0000000 X-QQ-FEAT: +bXiSo2NuBeDNrF3WD8QZsEgn1vBO3kbhTxjd/HFqSis3EUdfSK0dR5/fB58B EcmkFFi66VHiramMucCZwj3f4Oz+nAvt6gz3OkfgF6L3H8fUUUBxvdJPoTXeQ/h6cYTgCwf /y130LdiS64FWLW9nqk/fCOfX45+U2ucHv5wO+d6R/5BpPKZC3ngcNkKXUDwt1DOsxeij3E LUjT/Ri4PwpOmcmrnbyTX/eqd3xaJMdG1/1pPg8HBSzdzsUd9wgnJxh+hxfwqmTyMKQYRsJ jrmagxwUzMxG8P2nwLe8ZK4JYwbLgpBj8aTWfmJQHlwJgNkxNkOPx9ba/T19qUH+GAQf97n pBCwqU5tXy3wU3mIKXo8EQo6Hv8vN7e29S8CwRLEi4jMMqNyeo= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 13634613141227401300 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Cc: jeffreyalaw@gmail.com, Juzhe-Zhong Subject: [PATCH] test: Fix XPASS of bb-slp-43.c for RVV Date: Tue, 7 Nov 2023 06:35:03 +0800 Message-Id: <20231106223503.3271116-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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781855827987209574 X-GMAIL-MSGID: 1781855827987209574 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 } } } } } */