https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94574
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:f65cecabc32fe12b024253502af953e657e1a878 commit r10-7716-gf65cecabc32fe12b024253502af953e657e1a878 Author: Yang Yang <yangyang...@huawei.com> Date: Tue Apr 14 19:42:23 2020 +0000 PR tree-optimization/94574 - aarch64: ICE during GIMPLE pass:ccp In this PR the testcase ICEs because a BIT_INSERT_EXPR whose replaced bits are not fully inside the container is generated. A size check is added to avoid this kind of ICE. gcc/ChangeLog: PR tree-optimization/94574 * tree-ssa.c (non_rewritable_lvalue_p): Add size check when analyzing whether a vector-insert is rewritable using a BIT_INSERT_EXPR. gcc/testsuite/ChangeLog: PR tree-optimization/94574 * gcc.dg/pr94574.c: New test.