Message ID | 20231107151315.2881621-1-juzhe.zhong@rivai.ai |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:aa0b:0:b0:403:3b70:6f57 with SMTP id k11csp300193vqo; Tue, 7 Nov 2023 07:13:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IGoF+K4mjS5F8ENs0fjD9Ddrzv1rfhnO0t+UM9k4rK5/d7hsjqFyJaK43++8FlwjvP6x/tZ X-Received: by 2002:a05:6214:1949:b0:655:935b:ca85 with SMTP id q9-20020a056214194900b00655935bca85mr41150661qvk.48.1699370027372; Tue, 07 Nov 2023 07:13:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699370027; cv=pass; d=google.com; s=arc-20160816; b=AJluabIoCMFvA2/HZWxrMRLBQC42YwzkgNokwIp3KZi5o+EXKX3oSSJghw4gG/rz/W uV3nr26R7pIzGSIIMesgtKV/JVu14KvpEvFkuuaK366CxSXKRIAKj49ifca531nBMD0p OS0ok0ATyMJgVM19yegc79xdxnTE+r8L8B0TrDk8uUlJq1swsxvt2DvU1644ppEy/DwB vMibvJuuGPl8fom9oy3W9rNqmD4t7Cr/dv3BITVRsj0H22ujHL62PPnZRYu8pONGXW9i tK/29gHnHCJYQlWfJXQ0kGPuWxOxNyGxt5CxXO8xAlmrr1pkFwdvr0+83zHTHE3VpjQ/ ZfoA== 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=Uqe2+2V8i2pq+N/oRaDb2OwiiUttjZN8khFboysKWuc=; fh=zFe76Ureu4a3OhTa7Y7HUK000hWvaXfU2DwtOZPu7ME=; b=tdVPpST7idB5h8WxtnTTGO+XArKKOHJkPC/48OGwVn7lSvUqId0HXcAfkdbOkYOvy/ FW0gJDpiem/OKK5mNvZqy8MmIwCh2FVN9P1z9uSFnKbToP56vgCfzP+HQXDyuylAD/32 3Vcd6+N0gAvGrDeEfcKKC49qWC7U/PnMEE/IiAxwAAK2PpCXF+AFoMjbtF1RdbeYN05f YpDJN4Yr5otoFqyrTdkhF4clqiDvdPS6o4n5hsKhqD/Ws/8rIzncTjDAS+hOb6ht1hBt 6incrEee2/fbzZ62Y+Yo3xIZwaB9FiaL01cLZxtI/0Qd+yhCmCLo1ikTnbUzZTgvNvaM beuQ== 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 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id dg3-20020a056214084300b00657b96cbcd9si7025515qvb.278.2023.11.07.07.13.47 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 07:13:47 -0800 (PST) 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; arc=pass (i=1); 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 28B1C385701E for <ouuuleilei@gmail.com>; Tue, 7 Nov 2023 15:13:47 +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 6E1CA3857717 for <gcc-patches@gcc.gnu.org>; Tue, 7 Nov 2023 15:13:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6E1CA3857717 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 6E1CA3857717 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=1699370004; cv=none; b=n3AAcazSmisrk6qxNTmXmBrHNSkVQrccsQJ1CxZjUhe1Zgy6r/fIG73+WnF5pC9lj9/h/uobQb+FqL7TGqMbGmiQVgclGDwzJqFRUxlRYFbWsenaUsrpJgRigLExftcjqPk551SrC0KEbzKvdmHEInbEqFsBakwoU+6WxNIAFXk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699370004; c=relaxed/simple; bh=w6c3APbwl9Uu50CMyuIuvFkP8NO7Dt6X36485fHkiQg=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=np5GKZbEOI6Q0wSY8wFxgg5QMweZqrm2xZHn1bPxQiQfCnzg9g2Tvx1REXwuFmZqFL4H1ht90avD1XHlXwQg7o/kzGLol6AEuyAm6FhRIFEwNTGfzjFjIJa1zghSkxqsXyY6CGwsgNfZOIfSxG7X1riI5wU1ri/ComXCb3yOuis= ARC-Authentication-Results: i=1; server2.sourceware.org X-QQ-mid: bizesmtp86t1699369998tx81fr7j Received: from rios-cad121.hadoop.rioslab.org ( [58.60.1.9]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 07 Nov 2023 23:13:16 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: OcwMSiKTK9Tb+wBGye99MGTBmkjZ7iKOEbDDSv2XJ+IMYhTzITybj2Yg9zmUc tHrcaauL9Tr4EJ3pnIa4zEA3t1zGwDa5ctcCwmUio27tfC+6ruhI5raJlosMcsftxahMmIX xdDHtHGNicqyhHjRvvEKXBokuRowHKunC+NhELywLbrylDj/bg0jIwA17id+BHRlgqf5RIF TweqakcIUY+OEhx8uK/5ZEqGXLfDwnfTsV0OexWtxmi1vuKnrjVl73TbO5myX661k1tF8L8 rQ4dA46vchCz66PTjFh87XUhFhk9jHn72DAv3tKS/9rUowSTxeKKajOrEv6lbcgIP8OxL9r mCCPuyixWDsX3PCduXJA6c69RrXhvHPtfY/npzrMGoPRgSWz/HZGPO5ppOOtoK6fD6jaQC4 X-QQ-GoodBg: 2 X-BIZMAIL-ID: 14349760843609254739 From: Juzhe-Zhong <juzhe.zhong@rivai.ai> To: gcc-patches@gcc.gnu.org Cc: rguenther@suse.de, Juzhe-Zhong <juzhe.zhong@rivai.ai> Subject: [PATCH V2] test: Fix bb-slp-33.c for RVV Date: Tue, 7 Nov 2023 23:13:15 +0800 Message-Id: <20231107151315.2881621-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781918625618508403 X-GMAIL-MSGID: 1781918625618508403 |
Series |
[V2] test: Fix bb-slp-33.c for RVV
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
juzhe.zhong@rivai.ai
Nov. 7, 2023, 3:13 p.m. UTC
gcc/testsuite/ChangeLog: * gcc.dg/vect/bb-slp-33.c: Rewrite the condition. --- gcc/testsuite/gcc.dg/vect/bb-slp-33.c | 35 ++++++++++++++++++++------- 1 file changed, 26 insertions(+), 9 deletions(-)
Comments
On Tue, 7 Nov 2023, Juzhe-Zhong wrote: > gcc/testsuite/ChangeLog: OK. > * gcc.dg/vect/bb-slp-33.c: Rewrite the condition. > > --- > gcc/testsuite/gcc.dg/vect/bb-slp-33.c | 35 ++++++++++++++++++++------- > 1 file changed, 26 insertions(+), 9 deletions(-) > > diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-33.c b/gcc/testsuite/gcc.dg/vect/bb-slp-33.c > index bbb13ef798e..74af8dd27ae 100644 > --- a/gcc/testsuite/gcc.dg/vect/bb-slp-33.c > +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-33.c > @@ -32,16 +32,33 @@ int main() > a[4] = 7; > check_vect (); > test(a, b); > - if (a[0] != 1 > - || a[1] != 2 > - || a[2] != 3 > - || a[3] != 4 > - || a[4] != 7 > - || a[5] != 0 > - || a[6] != 0 > - || a[7] != 0 > - || a[8] != 0) > + if (a[0] != 1) > abort (); > + __asm__ volatile (""); > + if (a[1] != 2) > + abort (); > + __asm__ volatile (""); > + if (a[2] != 3) > + abort (); > + __asm__ volatile (""); > + if (a[3] != 4) > + abort (); > + __asm__ volatile (""); > + if (a[4] != 7) > + abort (); > + __asm__ volatile (""); > + if (a[5] != 0) > + abort (); > + __asm__ volatile (""); > + if (a[6] != 0) > + abort (); > + __asm__ volatile (""); > + if (a[7] != 0) > + abort (); > + __asm__ volatile (""); > + if (a[8] != 0) > + abort (); > + __asm__ volatile (""); > return 0; > } > >
Committed, thanks Richard. Pan -----Original Message----- From: Richard Biener <rguenther@suse.de> Sent: Wednesday, November 8, 2023 2:58 PM To: Juzhe-Zhong <juzhe.zhong@rivai.ai> Cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH V2] test: Fix bb-slp-33.c for RVV On Tue, 7 Nov 2023, Juzhe-Zhong wrote: > gcc/testsuite/ChangeLog: OK. > * gcc.dg/vect/bb-slp-33.c: Rewrite the condition. > > --- > gcc/testsuite/gcc.dg/vect/bb-slp-33.c | 35 ++++++++++++++++++++------- > 1 file changed, 26 insertions(+), 9 deletions(-) > > diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-33.c b/gcc/testsuite/gcc.dg/vect/bb-slp-33.c > index bbb13ef798e..74af8dd27ae 100644 > --- a/gcc/testsuite/gcc.dg/vect/bb-slp-33.c > +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-33.c > @@ -32,16 +32,33 @@ int main() > a[4] = 7; > check_vect (); > test(a, b); > - if (a[0] != 1 > - || a[1] != 2 > - || a[2] != 3 > - || a[3] != 4 > - || a[4] != 7 > - || a[5] != 0 > - || a[6] != 0 > - || a[7] != 0 > - || a[8] != 0) > + if (a[0] != 1) > abort (); > + __asm__ volatile (""); > + if (a[1] != 2) > + abort (); > + __asm__ volatile (""); > + if (a[2] != 3) > + abort (); > + __asm__ volatile (""); > + if (a[3] != 4) > + abort (); > + __asm__ volatile (""); > + if (a[4] != 7) > + abort (); > + __asm__ volatile (""); > + if (a[5] != 0) > + abort (); > + __asm__ volatile (""); > + if (a[6] != 0) > + abort (); > + __asm__ volatile (""); > + if (a[7] != 0) > + abort (); > + __asm__ volatile (""); > + if (a[8] != 0) > + abort (); > + __asm__ volatile (""); > return 0; > } > >
diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-33.c b/gcc/testsuite/gcc.dg/vect/bb-slp-33.c index bbb13ef798e..74af8dd27ae 100644 --- a/gcc/testsuite/gcc.dg/vect/bb-slp-33.c +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-33.c @@ -32,16 +32,33 @@ int main() a[4] = 7; check_vect (); test(a, b); - if (a[0] != 1 - || a[1] != 2 - || a[2] != 3 - || a[3] != 4 - || a[4] != 7 - || a[5] != 0 - || a[6] != 0 - || a[7] != 0 - || a[8] != 0) + if (a[0] != 1) abort (); + __asm__ volatile (""); + if (a[1] != 2) + abort (); + __asm__ volatile (""); + if (a[2] != 3) + abort (); + __asm__ volatile (""); + if (a[3] != 4) + abort (); + __asm__ volatile (""); + if (a[4] != 7) + abort (); + __asm__ volatile (""); + if (a[5] != 0) + abort (); + __asm__ volatile (""); + if (a[6] != 0) + abort (); + __asm__ volatile (""); + if (a[7] != 0) + abort (); + __asm__ volatile (""); + if (a[8] != 0) + abort (); + __asm__ volatile (""); return 0; }