From patchwork Thu Jun 1 23:04:41 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: 102232 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp666380vqr; Thu, 1 Jun 2023 16:05:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6XZKQ6s0+4xZ72NOMO0vilKK1ffxfrqsaNFQq54F+mwZZoT90Dd1PQU6qBTs5QGwROfe4/ X-Received: by 2002:a17:906:fd8b:b0:973:ca9c:3e43 with SMTP id xa11-20020a170906fd8b00b00973ca9c3e43mr9079385ejb.45.1685660727884; Thu, 01 Jun 2023 16:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685660727; cv=none; d=google.com; s=arc-20160816; b=jok0tarJwrYqf0mqh9aywxJJER0bLhDv3046uigqPP2vBy6ZYMlBNc2XbR+OOUMfvp tPs6SwKG7daAa7ELT6RM82maajMjbed9fmeaDYnTEoH37ysn8mkkURhIxUbSJgps0XRK RToTUosJky+lz+TcwHlpcB35izyDw/oSyvNGWimakCIwRQlAzQKbeeqFSiqHGtbzR+6q qzmcS2lcZ/a6CuqU9Yjgpt20UWc0L95Nw1mTGXF2mro2iCoktzPF9sP32qC7BCYJHJB0 ZxcDah4fkyIiksbkptTZCKzpS19MSaq0GhD4EGRZVXMPklWzlOeCWsZoYUahhOyReJEf LGYA== 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=Z61Hgsqpub8z+ORrCSJoJmXo1ZrVfScG8VJhYv3OLD0=; b=vifpag55INgWSa/7BkI//6iYrdYqAT/Uo4UZSwM8Pa9FML7stgm20mj3AQJqnHnzUM beE5jC5kgTcs/NE5rQaNG2YSl8EwP1BtFXsTDewk3eTGftPxrvZd4QjAxQCNxb0sWyY8 wOxrc5O/pQg5zstU1oPpuV1QS6D471jlQYA9oIHEOzATQpcy53nDr0SR0Xgg5i2kXFnZ 89pWfCXsBFEZ200swLQermlBm5Jz2wsb+HjfYInLLCG8anh6nauqPQMFpJbweG/JJPUL JKsAcawM7S1QOCKAmfw2SY4MLMwSW0FZF7PA8+ZZndHrIDXmUFD+JY8eNeBBNhAxvf/Q 8idg== 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 og23-20020a1709071dd700b0096f7cb174fbsi9218775ejc.564.2023.06.01.16.05.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 16:05:27 -0700 (PDT) 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 DEEDE3856969 for ; Thu, 1 Jun 2023 23:05:21 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgeu1.qq.com (smtpbgeu1.qq.com [52.59.177.22]) by sourceware.org (Postfix) with ESMTPS id 123B33858C50 for ; Thu, 1 Jun 2023 23:04:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 123B33858C50 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: bizesmtp76t1685660686tz8946sx Received: from server1.localdomain ( [58.60.1.22]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 02 Jun 2023 07:04:45 +0800 (CST) X-QQ-SSF: 01400000000000F0R000000A0000000 X-QQ-FEAT: QityeSR92A3SBk2Wah9uUfgHXDcG4zJ2qzpDpUkYBUR39+urF3esK63fFtyxC Ss7U1wlL/8xaf8LGGlzwVTZDo9PFUUTce1YceLzKweqvMqqBaHCbY7aELFN7w26anz3HBqJ Rty6Ll4mGx/2P9sATP+vMPFHMaSuV7VjHT5xuO5OE9/db5givh7Bo6zkW9N2v6aLGyST3wx 6Li/4Q7TXzqiQA6+cPch9wsHSZQgEBjbwseqkpE2LeirRJnLvSgjfsS/vMJsEhGQLBnSaXK 0/cZPB6/8oxXwmr7mH7xoZKwgEHeIsjgXrH9zNvERgn1jCO0vQij+/BxiuIfJRh6nqLlv36 NGr/PQ/HDRDqaWjKPwq1Pia1vId6vfzJzqHHJYQdNqQalBeZk64sTA89VS03Q== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 13811872394131773139 From: juzhe.zhong@rivai.ai To: gcc-patches@gcc.gnu.org Cc: kito.cheng@sifive.com, palmer@rivosinc.com, rdapp.gcc@gmail.com, jeffreyalaw@gmail.com, Juzhe-Zhong Subject: [PATCH] RISC-V: Add _mu C++ overloaded intrinsics for load && viota && vid Date: Fri, 2 Jun 2023 07:04:41 +0800 Message-Id: <20230601230441.294259-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-10.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, T_SPF_HELO_TEMPERROR 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?1767543383473792404?= X-GMAIL-MSGID: =?utf-8?q?1767543383473792404?= From: Juzhe-Zhong Base on these: https://github.com/riscv-non-isa/rvv-intrinsic-doc/issues/232 https://github.com/riscv-non-isa/rvv-intrinsic-doc/pull/233 Add _mu C++ overloaded intrinsics for load && viota && vid. gcc/ChangeLog: * config/riscv/riscv-vector-builtins-bases.cc: Add _mu overloaded intrinsics. --- gcc/config/riscv/riscv-vector-builtins-bases.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/config/riscv/riscv-vector-builtins-bases.cc b/gcc/config/riscv/riscv-vector-builtins-bases.cc index a8113f6602b..498c6ba042e 100644 --- a/gcc/config/riscv/riscv-vector-builtins-bases.cc +++ b/gcc/config/riscv/riscv-vector-builtins-bases.cc @@ -164,7 +164,7 @@ public: { if (STORE_P || LST_TYPE == LST_INDEXED) return true; - return pred != PRED_TYPE_none && pred != PRED_TYPE_mu; + return pred != PRED_TYPE_none; } rtx expand (function_expander &e) const override @@ -963,7 +963,7 @@ public: bool can_be_overloaded_p (enum predication_type_index pred) const override { return pred == PRED_TYPE_tu || pred == PRED_TYPE_tum - || pred == PRED_TYPE_tumu; + || pred == PRED_TYPE_tumu || pred == PRED_TYPE_mu; } rtx expand (function_expander &e) const override @@ -979,7 +979,7 @@ public: bool can_be_overloaded_p (enum predication_type_index pred) const override { return pred == PRED_TYPE_tu || pred == PRED_TYPE_tum - || pred == PRED_TYPE_tumu; + || pred == PRED_TYPE_tumu || pred == PRED_TYPE_mu; } rtx expand (function_expander &e) const override @@ -1749,7 +1749,7 @@ public: bool can_be_overloaded_p (enum predication_type_index pred) const override { - return pred != PRED_TYPE_none && pred != PRED_TYPE_mu; + return pred != PRED_TYPE_none; } rtx expand (function_expander &e) const override @@ -1794,7 +1794,7 @@ public: bool can_be_overloaded_p (enum predication_type_index pred) const override { - return pred != PRED_TYPE_none && pred != PRED_TYPE_mu; + return pred != PRED_TYPE_none; } rtx expand (function_expander &e) const override