[gcc r13-5401] RISC-V: Fix pointer tree type for store pointer.
Kito Cheng
kito@gcc.gnu.org
Thu Jan 26 19:11:45 GMT 2023
https://gcc.gnu.org/g:f91cd98ebc3599d514c42db23606b4b9474ef1fe
commit r13-5401-gf91cd98ebc3599d514c42db23606b4b9474ef1fe
Author: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
Date: Wed Dec 28 13:11:08 2022 +0800
RISC-V: Fix pointer tree type for store pointer.
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.
Diff:
---
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 59d4f2d20f5..d7a9fe4bda0 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. */
More information about the Gcc-cvs
mailing list