https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97462
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andrew Macleod <amacl...@gcc.gnu.org>: https://gcc.gnu.org/g:4a135bd987e7bff6d3b94efa085e0c246348b486 commit r11-4016-g4a135bd987e7bff6d3b94efa085e0c246348b486 Author: Andrew MacLeod <amacl...@redhat.com> Date: Fri Oct 16 15:02:42 2020 -0400 Don't assert on a negative shift. Don't assert, simply Return false for negative shifts as we can't tell anything about the operand. PR tree-optimization/97462 gcc/ * range-op.cc (operator_lshift::op1_range): Don't trap on negative shifts. gcc/testsuite/ * gcc.dg/pr97462.c: New file.