https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110280
--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Prathamesh Kulkarni <prathamesh3...@gcc.gnu.org>: https://gcc.gnu.org/g:85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04 commit r14-2044-g85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04 Author: Prathamesh Kulkarni <prathamesh.kulka...@linaro.org> Date: Fri Jun 23 15:27:17 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.