[Bug c/113474] RISC-V: Fail to use vmerge.vim for constant vector

2024-01-18 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113474 --- Comment #2 from JuzheZhong --- Oh. It's pretty simple fix. I am not sure whether Richards allow it since it's stage4 but worth to have a try. Could you send a patch ?

[Bug c/113474] RISC-V: Fail to use vmerge.vim for constant vector

2024-01-18 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113474 --- Comment #1 from Robin Dapp --- Good catch. Looks like the ifn expander always forces into a register. That's probably necessary on all targets except riscv. diff --git a/gcc/internal-fn.cc b/gcc/internal-fn.cc index