https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105591
--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by hongtao Liu <liuho...@gcc.gnu.org>: https://gcc.gnu.org/g:1fba0608d12a209a5d76d65bcb1dec1c07bc33e9 commit r13-517-g1fba0608d12a209a5d76d65bcb1dec1c07bc33e9 Author: liuhongt <hongtao....@intel.com> Date: Mon May 16 09:06:04 2022 +0800 Clamp vec_perm_expr index in simplify_bitfield_ref to avoid ICE. gcc/ChangeLog: PR tree-optimization/105591 * tree-ssa-forwprop.cc (simplify_bitfield_ref): Clamp vec_perm_expr index. gcc/testsuite/ChangeLog: * gcc.dg/pr105591.c: New test.