From patchwork Mon Nov 13 12:00:50 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: 164443 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1150838vqg; Mon, 13 Nov 2023 04:02:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBG011zv1YPvJGpTvix5u7h8u51zgmU3rJVY6bvsurAiZf2VfGWyyGlY27fL6buy6JCgA5 X-Received: by 2002:a67:c392:0:b0:45f:1bed:cec9 with SMTP id s18-20020a67c392000000b0045f1bedcec9mr2473942vsj.34.1699876931537; Mon, 13 Nov 2023 04:02:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699876931; cv=pass; d=google.com; s=arc-20160816; b=P9yrWVYk3BZIAZY60XYea5OMFhXGlw/KsjhKYI19nJMEPBJqSGVxfQfLVZURjoCRk8 MimkKp6JuDGPKpf033CNknPJsyzlkpQk3XxOhdVihYEUYD8u2ruJUeXuaEDLm4vTqso5 sRiHEvMTFc5qmJpS8sKgYlXFqRX+/LMYj2fMjKHo04PlBQaLgmx6L/1qgXIGy+Wc50hu Od1ViGdQ97itbpEBLicwQRoDxw1YcBQDoK+XeUlPkQxu/9Ko+ZhERZqfUuRKj5yXqOlg vBzrpuCxqL8anjPnSBQobieN7+zpW58/ZIvCgZ8vHG9QYiL9vUv937DzqvHtzkNjC/Af 0sfA== 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=m/gXmVR7RacgJ+CQBBkkWUXoQ/yeg+qh4Ai5Mk+wKzE=; fh=idvV5TQ1gmHAoU8u1GUGfjilVySOK+BR5TeZLoSouN8=; b=htuN9MYOCd5qayMsRb+REStX2SQZn2E3IgS4MtN09xYvvUaKK8e3ZDxmL/x8jezuMh 65tobCjVW/0khxgrRMCQPBl2efjoc/1X+D/ysowM13o0Z5YiUsyTIhcnRtgDS+MOh/8a KY3D4J1jOaOqZ7I4EOkgcakmV0XfBEN5iWUn7Zsro7E3fUn0CUtGHyrLs9c3dj83nTKF Nn1S5zgAJoNyfj8ae+8ALhfFeEhdwwfPWaxlX7tWcqI6F9qvFCWeMs328W9laeuLO9Z4 AoslniFvqtdiHRWSTpz1PUP+51wzPwOTMTfE1lnPpx2j15Ciji6xvzkUmEbRgeokn4uG 1DCg== 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 l7-20020a67fdc7000000b0044d51370c3asi468270vsq.363.2023.11.13.04.02.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 04:02:11 -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 7EE923891B5D for ; Mon, 13 Nov 2023 12:01:27 +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 9B3BD393825E for ; Mon, 13 Nov 2023 12:00:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9B3BD393825E 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 9B3BD393825E 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=1699876862; cv=none; b=JuuN2aJgG4ISJybOcHK3MVvyyAXngFvg67cz2gd+/0Am6q2GWce1W2VGhijh3lqavJFriLEEJcTLyKTXnXe512iTLTPxgQdBPgAweoraeFb/WsQzcMgIoNCJvECFVr27g3kCDNVpPemb5a7J/ovJKIY0MgTLk2YD4vy8O5dZWoo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699876862; c=relaxed/simple; bh=QaySsAr9vKIx8kySpAsfy7t9dNCpcIo7jXX81O7a7xc=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=XHD6zJJFnJYta1ky32eK1zUyFWB4Zgw4iGrRBxkNUMJBHhNDZKGrahe/lD629hnysiWUh1HecNzxWrjNozYLTKNmvwDDaANenqBzp6XaQrCpZwtGShRiP8OFTlyg5GiMv2vjHCzFdx8WvOR8+P8gpgUPeK0dzK0cJywULiFHzjo= ARC-Authentication-Results: i=1; server2.sourceware.org X-QQ-mid: bizesmtp74t1699876852tauiqfb1 Received: from rios-cad122.hadoop.rioslab.org ( [58.60.1.26]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 13 Nov 2023 20:00:51 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: lm7sZZPcOdbCMLJM1kf3cltvMWnM/534JIFsq6H2nQhIA6vo8VuN6wj1e1BWn ReXoqs32vxkjBq6X4Rn390Z6KZ/+VxmGPXbWshvl0HFIgFbPYKIt7Z/K1J1COwVJsDK33/d l90b88sYhjd3Ix+grw3dRXzlKVSB0URMc2Il1N11tb0FINAvNr6XEjNmc5IDC8rAY/FPemc vmNmcnRrDu0Uj8OFanr4zQhLWdwSE0LELBcpEbx9gWZaajr/mgrycRQq8D368NWci2Ujki4 OT+HnnZW5+aViVPEFhgvTKMxFudvl7UMguqXArxdqVnSw6Jb+Bdy7ZLA215aeRmkc/sx+q1 dSCV4qP+XnHcAtGaBjYkSFNGhgJYFFP1aaMSWSbg3k20lkre2McYBmM94YJ+ogtzXz4jNiq gjvFA0fw/a7yLB+DEHLJzg== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 4632602751090880950 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Cc: Juzhe-Zhong Subject: [Committed] RISC-V: Adapt VLS init tests Date: Mon, 13 Nov 2023 20:00:50 +0800 Message-Id: <20231113120050.608605-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=-9.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SCC_10_SHORT_WORD_LINES, SCC_5_SHORT_WORD_LINES, 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: 1782450153404656007 X-GMAIL-MSGID: 1782450153404656007 Realize that init tests are wrong by my previous mistakes. Fix them and committed. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vls/def.h: Fix init test. * gcc.target/riscv/rvv/autovec/vls/init-1.c: Ditto. * gcc.target/riscv/rvv/autovec/vls/init-2.c: Ditto. * gcc.target/riscv/rvv/autovec/vls/init-3.c: Ditto. * gcc.target/riscv/rvv/autovec/vls/init-4.c: Ditto. * gcc.target/riscv/rvv/autovec/vls/init-5.c: Ditto. * gcc.target/riscv/rvv/autovec/vls/init-6.c: Ditto. * gcc.target/riscv/rvv/autovec/vls/init-7.c: Ditto. --- gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/def.h | 2 +- gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-1.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-2.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-3.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-4.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-5.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-6.c | 2 +- gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-7.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/def.h b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/def.h index 2e91b9a9664..9cc3656e710 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/def.h +++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/def.h @@ -437,7 +437,7 @@ typedef double v512df __attribute__ ((vector_size (4096))); void init_##TYPE1##_##TYPE2##_##NUM (VARS##NUM (TYPE2, __VA_ARGS__), \ TYPE2 *__restrict out) \ { \ - TYPE1 v = {INIT##NUM (__VA_ARGS__)}; \ + TYPE1 v = {__VA_ARGS__}; \ *(TYPE1 *) out = v; \ } diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-1.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-1.c index aec2c6e5e5f..0f78ae0ebe2 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-1.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-1.c @@ -43,4 +43,4 @@ DEF_INIT (v128uqi, uint8_t, 128, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127) -/* { dg-final { scan-assembler-times {vslide1down\.vx} 494 } } */ +/* { dg-final { scan-assembler-times {vid\.v} 14 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-2.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-2.c index f9c58aef553..f27c395441b 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-2.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-2.c @@ -45,4 +45,4 @@ DEF_INIT (v128uhi, uint16_t, 128, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127) -/* { dg-final { scan-assembler-times {vslide1down\.vx} 494 } } */ +/* { dg-final { scan-assembler-times {vid\.vx} 494 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-3.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-3.c index eb970c7b042..df15bd7300f 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-3.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-3.c @@ -24,4 +24,4 @@ DEF_INIT (v128hf, _Float16, 128, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127) -/* { dg-final { scan-assembler-times {vfslide1down\.vf} 247 } } */ +/* { dg-final { scan-assembler-times {vle16\.v} 7 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-4.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-4.c index fedeb445a2b..09bdbd19cc0 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-4.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-4.c @@ -45,4 +45,4 @@ DEF_INIT (v128usi, uint32_t, 128, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127) -/* { dg-final { scan-assembler-times {vslide1down\.vx} 494 } } */ +/* { dg-final { scan-assembler-times {vid\.v} 14 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-5.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-5.c index c93ac524c88..65ca8cb41e3 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-5.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-5.c @@ -23,4 +23,4 @@ DEF_INIT (v128sf, float, 128, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127) -/* { dg-final { scan-assembler-times {vfslide1down\.vf} 247 } } */ +/* { dg-final { scan-assembler-times {vle32\.v} 7 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-6.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-6.c index 304539f4868..9cd36ce2ec1 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-6.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-6.c @@ -45,4 +45,4 @@ DEF_INIT (v128udi, uint64_t, 128, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127) -/* { dg-final { scan-assembler-times {vslide1down\.vx} 494 } } */ +/* { dg-final { scan-assembler-times {vid\.v} 14 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-7.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-7.c index 4b966010dca..ad337054f3a 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-7.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/init-7.c @@ -23,4 +23,4 @@ DEF_INIT (v128df, double, 128, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127) -/* { dg-final { scan-assembler-times {vfslide1down\.vf} 247 } } */ +/* { dg-final { scan-assembler-times {vle64\.v} 7 } } */