https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125478
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jeff Law <[email protected]>: https://gcc.gnu.org/g:dea02580a0fe0dc7da481a2e9267062ac5a21411 commit r17-1608-gdea02580a0fe0dc7da481a2e9267062ac5a21411 Author: Robin Dapp <[email protected]> Date: Tue Jun 16 22:40:34 2026 -0600 [PATCH] RISC-V: Fix more scalar mode_idx instances [PR125478]. Hi, This is another case of PR123022 and PR116149 where we query a scalar source operand instead of a vector operand, leading to a wrong AVL during avlprop. This patch moves viwalu, vfwalu, viwmul, and vfwmul to the proper bucket. I wonder why I didn't do that the last two times but it seems to be the correct choice now ð Regtested on rv64gcv_zvl512b and waiting for the CI. Regards Robin PR target/125478 gcc/ChangeLog: * config/riscv/vector.md: Set widen-alu mode_idx to 3. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/pr125478.c: New test.
