Re: [PATCH] RISC-V: Fix PR 110119

2023-06-14 Thread Lehua Ding
Resubmitted a new, more standardized patch(bellow is the new patch link), thanks. https://gcc.gnu.org/pipermail/gcc-patches/2023-June/621683.html  

Re: [PATCH] RISC-V: Fix PR 110119

2023-06-14 Thread juzhe.zh...@rivai.ai
Add PR target/pr110119 juzhe.zh...@rivai.ai From: Lehua Ding Date: 2023-06-14 18:34 To: gcc-patches; juzhe.zhong Subject: [PATCH] RISC-V: Fix PR 110119 Hi, This patch fix the PR 110119. The reason for this bug is that in the case where the vector register is set to a fixed length (with

[PATCH] RISC-V: Fix PR 110119

2023-06-14 Thread Lehua Ding
Hi, This patch fix the PR 110119. The reason for this bug is that in the case where the vector register is set to a fixed length (with `--param=riscv-autovec-preference=fixed-vlmax` option), TARGET_PASS_BY_REFERENCE thinks that variables of type vint32m1 can be passed through two scalar register