Message ID | 20221228051108.196702-1-juzhe.zhong@rivai.ai |
---|---|
State | New |
Headers | show |
Series | RISC-V: Fix pointer tree type for store pointer. | expand |
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 > >
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. */
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(-)