https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110962
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Pan Li <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:da7b43fb0224cdce5157a747fdd6975b7c81c6cf commit r14-3126-gda7b43fb0224cdce5157a747fdd6975b7c81c6cf Author: Juzhe-Zhong <juzhe.zh...@rivai.ai> Date: Thu Aug 10 18:37:05 2023 +0800 RISC-V: Add MASK vec_duplicate pattern[PR110962] This patch fix bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110962 SUBROUTINE a(b,c,d) LOGICAL,DIMENSION(INOUT) :: b LOGICAL e REAL, DIMENSION(IN) :: c REAL, DIMENSION(INOUT) :: d REAL, DIMENSION(SIZE(c)) :: f WHERE (b.AND.e) WHERE (f>=0.) d = g ENDWHERE ENDWHERE END SUBROUTINE a PR target/110962 gcc/ChangeLog: PR target/110962 * config/riscv/autovec.md (vec_duplicate<mode>): New pattern.