public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] RISC-V: Fix pointer tree type for store pointer.
@ 2022-12-28  5:11 juzhe.zhong
  2023-01-26 19:12 ` Kito Cheng
  0 siblings, 1 reply; 2+ messages in thread
From: juzhe.zhong @ 2022-12-28  5:11 UTC (permalink / raw)
  To: gcc-patches; +Cc: kito.cheng, palmer, jeffreyalaw, Ju-Zhe Zhong

From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>

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.  */
-- 
2.36.3


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] RISC-V: Fix pointer tree type for store pointer.
  2022-12-28  5:11 [PATCH] RISC-V: Fix pointer tree type for store pointer juzhe.zhong
@ 2023-01-26 19:12 ` Kito Cheng
  0 siblings, 0 replies; 2+ messages in thread
From: Kito Cheng @ 2023-01-26 19:12 UTC (permalink / raw)
  To: juzhe.zhong; +Cc: gcc-patches, palmer, jeffreyalaw

[-- Attachment #1: Type: text/plain, Size: 1198 bytes --]

committed, thanks.

On Wed, Dec 28, 2022 at 1:11 PM <juzhe.zhong@rivai.ai> wrote:

> From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
>
> 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.
> */
> --
> 2.36.3
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-26 19:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-28  5:11 [PATCH] RISC-V: Fix pointer tree type for store pointer juzhe.zhong
2023-01-26 19:12 ` Kito Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).