From patchwork Wed Dec 28 05:11:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?6ZKf5bGF5ZOy?= X-Patchwork-Id: 1719751 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Nhfl00xcZz23dD for ; Wed, 28 Dec 2022 16:11:38 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B6675385840A for ; Wed, 28 Dec 2022 05:11:30 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgsg1.qq.com (smtpbgsg1.qq.com [54.254.200.92]) by sourceware.org (Postfix) with ESMTPS id F3D2E3858D37 for ; Wed, 28 Dec 2022 05:11:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F3D2E3858D37 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: bizesmtp86t1672204270tlxkf7am Received: from rios-cad5.localdomain ( [58.60.1.11]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 28 Dec 2022 13:11:09 +0800 (CST) X-QQ-SSF: 01400000000000E0L000000A0000000 X-QQ-FEAT: /gpUuYPpeIXitYVNJlRRWIc6csFpDvpkLJg/x0r291syJ/T5vw4vj4VxmgUl6 rmdPLIzqLKPBk6gAr+dtLj+31lVelPbbcJH55FKBEwkSnL/d11cA3aO+BjaKwT9ih1jn8tn VrXKKVQBvQ7glxEHdKoTze5tBpGL02VllPLnV5/x0E4X5xeXu/qp6yGw2/YoypzRwZ6nrET nrGpiXf94Ih1GbDpG9+RVgX5256LDczrzCzjSdFWKux7iz+uTOzlAubECoCo3N4dFLG1YyQ MAz3ksYFsQFJtIo2/qxs2EixEI6hlwfVmgYkBWCb9HDfJFDKpWQfzNMlJOiRfDyxnU9jnKc g2xQnjuyPIB133Bk1kHa4Ux3qRzyzJ77OpwX8CqqPEu3Y8vytrKDpXxkN7jON0zrkcsFM76 X-QQ-GoodBg: 2 From: juzhe.zhong@rivai.ai To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, palmer@dabbelt.com, jeffreyalaw@gmail.com, Ju-Zhe Zhong Subject: [PATCH] RISC-V: Fix pointer tree type for store pointer. Date: Wed, 28 Dec 2022 13:11:08 +0800 Message-Id: <20221228051108.196702-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.5 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+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" From: Ju-Zhe Zhong For store intrinsic, the function type should be void store (T *...) instead of void store (const T *...) gcc/ChangeLog: * config/riscv/riscv-vector-builtins.cc: Change to scalar pointer. --- gcc/config/riscv/riscv-vector-builtins.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/riscv/riscv-vector-builtins.cc b/gcc/config/riscv/riscv-vector-builtins.cc index 9170776f979..e39bfea9636 100644 --- a/gcc/config/riscv/riscv-vector-builtins.cc +++ b/gcc/config/riscv/riscv-vector-builtins.cc @@ -158,7 +158,7 @@ static CONSTEXPR const rvv_arg_type_info scalar_const_ptr_args[] /* A list of args for void func (scalar_type *, vector_type) function. */ static CONSTEXPR const rvv_arg_type_info scalar_ptr_args[] - = {rvv_arg_type_info (RVV_BASE_scalar_const_ptr), + = {rvv_arg_type_info (RVV_BASE_scalar_ptr), rvv_arg_type_info (RVV_BASE_vector), rvv_arg_type_info_end}; /* A list of none preds that will be registered for intrinsic functions. */