From patchwork Fri Feb 10 10:19:37 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: 55367 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp870368wrn; Fri, 10 Feb 2023 02:20:16 -0800 (PST) X-Google-Smtp-Source: AK7set8Q1gOih8wS6SpzzVVra1+JuGoMaTbG7/IA0mpJpn2Izopmmn9A11ZR0TPUa+pE8ytOB0ii X-Received: by 2002:a17:907:1c18:b0:878:481c:c49b with SMTP id nc24-20020a1709071c1800b00878481cc49bmr20712538ejc.1.1676024416334; Fri, 10 Feb 2023 02:20:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676024416; cv=none; d=google.com; s=arc-20160816; b=gVJfinzIx+UvVwsBSwOzAX8DxCO1ArHMAe3GL1g80qdJuQ5kkh463b0CFhI3ujxFwp c25kLlD12Fs3XLGZsr9Y/7s1i8ORqkxE1isIjjr7kpCMkRpZtuLbMBWr9MQ8QIfvGjGk TbU09gyohZtdm/OUe0uuYP47bNw/vAREXgy1U3rpwby6KRsTFt4I9auQ3becin9ao8VU EUSwOlIk+0fAVs1LYAK55gHPrOaWJc89wVdFg9HgtYxjn8yp87DSWPF1yPlAn3jDVym8 AXILMirRvyNjyuEyrS/ug0DMudQcoB1pegZNwNP0EUICQUqaFGLYZ8XGedmkFWpdyVhB OxXA== 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=iyN+F0yiRhL60ocEOJLItaw8FU9uZ+K4E5kFGF2HOnw=; b=KKOvtpWGNJ6Dof8luf6SiUNVnSgT7h2pMo+1Qm6KdWmM53Fd/QZaV40HhmVUH5UfcD E+mtGlzkbranqjZ2l3eSXYjiLYa8u5FAIl5tQQJCgJjMtD5GQyPvUCnKKjkhhDa7AwBa Ha1TNj2I6ySKqoVhV7FPJXvL2YSKmrQNG1yzBCfor0+ROSY9sORbYlWLyoANYUYNHsqO Qvi3WIKPFU7eSzX4Wgy/SZ7hQrQuh/KBBYjSg5FvArCXNsTbAd+0IDKT32SjePZBzpc2 +flYN7NRdJIN+H3Fl+uCeFEVn2AwBBqYrmQf49CvR96JrTfgUpgpPYD+kzDSkCjQVqhn y9Vw== ARC-Authentication-Results: i=1; mx.google.com; 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 sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id 21-20020a170906005500b0089cc0dfb4fesi5509029ejg.166.2023.02.10.02.20.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 02:20:16 -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; 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 07A9A385B509 for ; Fri, 10 Feb 2023 10:20:13 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbg156.qq.com (smtpbg156.qq.com [15.184.82.18]) by sourceware.org (Postfix) with ESMTPS id 9F0CF3858D28 for ; Fri, 10 Feb 2023 10:19:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9F0CF3858D28 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: bizesmtp73t1676024380tpi6j0qv Received: from rios-cad5.localdomain ( [58.60.1.11]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 10 Feb 2023 18:19:39 +0800 (CST) X-QQ-SSF: 01400000000000E0L000000A0000000 X-QQ-FEAT: CR3LFp2JE4lb6C0tD25ByJbQMMy8AGrKSY2tWPiqAeByDkvaMCWHimdIWgpgf h7ryz/tNq2NoPWRDxeFKHUOVu+eSwLVM4xLqTHogyA364SGkYndWy5+NheFOOOwxmHbt2m6 nGhM5ifIAOhChTkmyTLGr5F3UC4tGeFfKDLscQkZcVWmi97bNuoubbLMgBuNBoywnetFbar +amnVZlPg75p6ndop+ycjQAY1GI7xno6l4nXq0XrEzSjCQgV8InJRtcuOUZRhh3yQ+bM4ww a014fMCCZqCQ6oMxCacGWadr3ZH5GbuE7aq7ZmhaC0ticH9IVooahTFbZkrnEN3D13rOyQV NQfOE55SHmlwLtGub7p9SuSF3FJ4Fv0ZyLdwIvl2VpABOwhEbCGBwvYTmhRDNKl3eN39b5o ZKtphyNuEI8= X-QQ-GoodBg: 2 From: juzhe.zhong@rivai.ai To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, Ju-Zhe Zhong Subject: [PATCH] RISC-V: Add Full 'v' extension predicate to vsmul intrinsic Date: Fri, 10 Feb 2023 18:19:37 +0800 Message-Id: <20230210101937.137591-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.9 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 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?1757438978399254433?= X-GMAIL-MSGID: =?utf-8?q?1757438978399254433?= From: Ju-Zhe Zhong According to RVV ISA, vsmul are not supported for EEW=64 in Zve64*, so add Full 'V' extension required into predicate of vsmul intrinsics. gcc/ChangeLog: * config/riscv/riscv-vector-builtins-functions.def (vsmul): Change iterators. --- gcc/config/riscv/riscv-vector-builtins-functions.def | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/riscv/riscv-vector-builtins-functions.def b/gcc/config/riscv/riscv-vector-builtins-functions.def index cea44c8fb20..66fa63530f3 100644 --- a/gcc/config/riscv/riscv-vector-builtins-functions.def +++ b/gcc/config/riscv/riscv-vector-builtins-functions.def @@ -170,14 +170,14 @@ DEF_RVV_FUNCTION (vaadd, alu, full_preds, i_vvv_ops) DEF_RVV_FUNCTION (vasub, alu, full_preds, i_vvv_ops) DEF_RVV_FUNCTION (vaaddu, alu, full_preds, u_vvv_ops) DEF_RVV_FUNCTION (vasubu, alu, full_preds, u_vvv_ops) -DEF_RVV_FUNCTION (vsmul, alu, full_preds, i_vvv_ops) +DEF_RVV_FUNCTION (vsmul, alu, full_preds, full_v_i_vvv_ops) DEF_RVV_FUNCTION (vssra, alu, full_preds, i_shift_vvv_ops) DEF_RVV_FUNCTION (vssrl, alu, full_preds, u_shift_vvv_ops) DEF_RVV_FUNCTION (vaadd, alu, full_preds, i_vvx_ops) DEF_RVV_FUNCTION (vasub, alu, full_preds, i_vvx_ops) DEF_RVV_FUNCTION (vaaddu, alu, full_preds, u_vvx_ops) DEF_RVV_FUNCTION (vasubu, alu, full_preds, u_vvx_ops) -DEF_RVV_FUNCTION (vsmul, alu, full_preds, i_vvx_ops) +DEF_RVV_FUNCTION (vsmul, alu, full_preds, full_v_i_vvx_ops) DEF_RVV_FUNCTION (vssra, alu, full_preds, i_shift_vvx_ops) DEF_RVV_FUNCTION (vssrl, alu, full_preds, u_shift_vvx_ops) DEF_RVV_FUNCTION (vnclipu, narrow_alu, full_preds, u_narrow_shift_vwv_ops)