https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125476
--- Comment #6 from Zhongyao Chen <chenzhongyao.hit at gmail dot com> ---
(In reply to Robin Dapp from comment #5)
> Does adjusting the params help (--param=gpr2vr-cost=1 --param=vr2gpr-cost=1)?
> We added them specifically for these test cases.
it help. (only try these two cases: vx-5-i64.c vx-6-i64.c)
--- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vx_vf/vx-5-i64.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vx_vf/vx-5-i64.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-march=rv64gcv_zvl128b -mabi=lp64d --param=gpr2vr-cost=1
--param=vr2gpr-cost=1" } */
+/* { dg-options "-march=rv64gcv_zvl128b -mabi=lp64d --param=gpr2vr-cost=0
--param=vr2gpr-cost=0 " } */
--- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vx_vf/vx-6-i64.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vx_vf/vx-6-i64.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-march=rv64gcv_zvl128b -mabi=lp64d --param=gpr2vr-cost=2
--param=vr2gpr-cost=2" } */
+/* { dg-options "-march=rv64gcv_zvl128b -mabi=lp64d --param=gpr2vr-cost=1
--param=vr2gpr-cost=1" } */