https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110280
--- Comment #17 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Prathamesh Kulkarni <prathamesh3...@gcc.gnu.org>: https://gcc.gnu.org/g:f4029de35fb1b293a4fd586574b1b4b73ddf7880 commit r13-7661-gf4029de35fb1b293a4fd586574b1b4b73ddf7880 Author: Prathamesh Kulkarni <prathamesh.kulka...@linaro.org> Date: Wed Jul 26 22:36:26 2023 +0530 [aarch64/match.pd] Fix ICE observed in PR110280. gcc/ChangeLog: PR tree-optimization/110280 * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector using build_vector_from_val with the element of input operand, and mask's type if operand and mask's types don't match. gcc/testsuite/ChangeLog: PR tree-optimization/110280 * gcc.target/aarch64/sve/pr110280.c: New test. (cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)