https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123839
--- Comment #4 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:b9facf8263e7de298606b2629f8b78bb6b0d4906 commit r17-69-gb9facf8263e7de298606b2629f8b78bb6b0d4906 Author: Raphael Zinsly <[email protected]> Date: Fri Apr 24 07:12:32 2026 -0600 [RISC-V][V2][PR target/123839] Improve subset of constant permutes for RISC-V There's a set of constant permutes that are currently implemented via vslideup+vcompress which requires a mask (and setup of the mask), but which can be implemented via vslideup+vslidedown. This has been tested on riscv{32,64}-elf as well as in a BPI-F3 which is configured to use V by default. PR target/123839 gcc/ * config/riscv/riscv-v.cc (shuffle_slide_patterns): Use a vslideup+vslidedown pair rather than a vcompressed based sequence. gcc/testsuite * gcc.target/riscv/rvv/autovec/binop/vcompress-avlprop-1.c: Adjust expected output. * gcc.target/riscv/rvv/autovec/pr123839.c: New test.
