From patchwork Fri Jan 27 12:30:20 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: 49348 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp806799wrn; Fri, 27 Jan 2023 04:30:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXuhPx+UMtp9tmLhdalQXVo94m8gMWJbZC5AZ4JSSsZ05LEj5fRNmj+ddj2xECQT3mi4o45T X-Received: by 2002:a17:907:874e:b0:872:27cb:9430 with SMTP id qo14-20020a170907874e00b0087227cb9430mr47341721ejc.74.1674822658241; Fri, 27 Jan 2023 04:30:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674822658; cv=none; d=google.com; s=arc-20160816; b=hXrmcx1G7xiJ09fKxS12Dx0u1kC8/nbdFsIUiMoZwpP8TbiArMkS3l2pmpryE9qYst 4VlF0TwVBAFoYNNUEaQHZ3yY5lT2+BfRPMMBYhI54MJ71/KJIHYU9bZAgADK361waZIX UajSPnOiMMHG3Wy7GH8d7Wr5CdIzCgFi/Ye3zAfNAlxoQaVd4aEPj+6K4Tr6vVF5h98h VUJdQBq8b41k0ILIKmLYHvtuZwLbFPpXuxWpenPu9YBik+Li0N5wweknPUpIOQCE4Bqw QxlY5hSavkc1P/vWq4wR2jU5SChhivP4OjfV9a17JKdmcepU77XK2ts7fR7NoPeK8CGo ig0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender: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:dmarc-filter:delivered-to; bh=BcXpRSEhOIupYjf/4wItAoVWgmta5R3a4AhfVrHeXmI=; b=u3AnEFqQ0uIWLSdiHHKg4xlVBNi9Yx/5yA9IMcFDl8UPu0A6JlXUmRS/+Hhu8k/tkk NEYH02vmfxLt//LCABdsHfAF140ziONNJHirtDfYkzBHhFSbr/zfREVNBmZBIJezaSdv fUJt5uKT84RLYCvNsrc3/TVvtiOnDcUPhuNXu1K3dqvEQV+axP4CAjFw7oZhL/CJVmYc jHWfduAzfw2tbkPzF1OEDJ4rKvz/zRrFNakHXRpJKkmXrfY3+eGAbSftm7Q73yNYX9X9 Q9K3mS/3Wo53R7a6lZRXuvDJzhZrIOhW0iuo/4TKUp/84twi1nk8Hopay0+IBsouhN3d pLWA== ARC-Authentication-Results: i=1; mx.google.com; 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 sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id gh2-20020a1709073c0200b0084d172e0b0esi4687946ejc.35.2023.01.27.04.30.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 04:30:58 -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; 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 E5A6E3858426 for ; Fri, 27 Jan 2023 12:30:53 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbguseast2.qq.com (smtpbguseast2.qq.com [54.204.34.130]) by sourceware.org (Postfix) with ESMTPS id 100B83858C74 for ; Fri, 27 Jan 2023 12:30:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 100B83858C74 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai X-QQ-mid: bizesmtp80t1674822622tpv51in7 Received: from rios-cad5.localdomain ( [58.60.1.11]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 27 Jan 2023 20:30:21 +0800 (CST) X-QQ-SSF: 01400000002000E0L000B00A0000000 X-QQ-FEAT: HHPuPN/BfjXId3AqtON9AA0I1RtyS/+fDJPc3hnGyznA93LlqtaCFRCtEU3BG f0DqNp4v7BREGaLnJlZdJved6wftK9eVwleldJIWErkyB6oYmzZdyrTD1Ghkc0vp4ITKIRn /eIunJ8DghgAX0BSJI/lIKK14wgfov56exJ07KPeuJQLNZQTGOLXq0/grXG5a+TfUkvMwFX DOxej5q1Sy3GzfhqEUJdmgIfX799QenRWYaNfv96kOXBrNjicLsCiQ0IQM5QljC5lS4XffV rU/VCnnJV3377tJorbqb8UyMQx4Xt9Lgw87zsSt4pbwFkZbgreZTaEV29KGF9Hm1v52fJgA EltoobDtC8LsbSth2MsCnfZlanr5iMGRgk/1PE28K/Vi5VxFMLY3TD192aOM2qWqEbJ4mNb fjNlMTkSm9c= X-QQ-GoodBg: 2 From: juzhe.zhong@rivai.ai To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, palmer@dabbelt.com, Ju-Zhe Zhong Subject: [PATCH] RISC-V: Fix testcases check. Date: Fri, 27 Jan 2023 20:30:20 +0800 Message-Id: <20230127123020.260769-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:qybglogicsvr:qybglogicsvr7 X-Spam-Status: No, score=-12.6 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 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.29 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 Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756178843668664250?= X-GMAIL-MSGID: =?utf-8?q?1756178843668664250?= From: Ju-Zhe Zhong gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/vsetvl/avl_multiple-7.c: Fix testcase check. * gcc.target/riscv/rvv/vsetvl/avl_multiple-8.c: Ditto. * gcc.target/riscv/rvv/vsetvl/vsetvl-18.c: Ditto. --- gcc/testsuite/gcc.target/riscv/rvv/vsetvl/avl_multiple-7.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/vsetvl/avl_multiple-8.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-18.c | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/avl_multiple-7.c b/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/avl_multiple-7.c index e855f86b9a3..2e1f68f9bdc 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/avl_multiple-7.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/avl_multiple-7.c @@ -37,4 +37,4 @@ void f (void * restrict in, void * restrict out, int l, int n, int m, int cond) } } -/* { dg-final { scan-assembler-times {add\s+\s*[a-x0-9]+,\s*[a-x0-9]+,\s*[a-x0-9]+\s+vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]} 1 { target { no-opts "-O0" no-opts "-O1" no-opts "-Os" no-opts "-g" no-opts "-funroll-loops" } } } } */ +/* { dg-final { scan-assembler {add\s+\s*[a-x0-9]+,\s*[a-x0-9]+,\s*[a-x0-9]+\s+vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]} { target { no-opts "-O0" no-opts "-O1" no-opts "-Os" no-opts "-g" no-opts "-funroll-loops" } } } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/avl_multiple-8.c b/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/avl_multiple-8.c index 316a4ce6193..a3dca3834e3 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/avl_multiple-8.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/avl_multiple-8.c @@ -36,4 +36,4 @@ void f (void * restrict in, void * restrict out, int l, int n, int m, int cond) } } -/* { dg-final { scan-assembler-times {vsetvli} 1 { target { no-opts "-O0" no-opts "-g" no-opts "-funroll-loops" } } } } */ +/* { dg-final { scan-assembler {add\s+\s*[a-x0-9]+,\s*[a-x0-9]+,\s*[a-x0-9]+\s+vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]} { target { no-opts "-O0" no-opts "-O1" no-opts "-Os" no-opts "-g" no-opts "-funroll-loops" } } } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-18.c b/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-18.c index df4fdf24a4a..7ad277e0266 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-18.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-18.c @@ -16,4 +16,5 @@ void f(int8_t *base, int8_t *out, size_t vl, size_t m, size_t n) { } } -/* { dg-final { scan-assembler-times {vsetvli} 5 { target { no-opts "-O0" no-opts "-Os" no-opts "-g" no-opts "-funroll-loops" } } } } */ +/* { dg-final { scan-assembler {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]} { target { no-opts "-O0" no-opts "-g" no-opts "-funroll-loops" } } } } */ +/* { dg-final { scan-assembler {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf4,\s*t[au],\s*m[au]} { target { no-opts "-O0" no-opts "-g" no-opts "-funroll-loops" } } } } */