https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97317
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Aldy Hernandez <al...@gcc.gnu.org>: https://gcc.gnu.org/g:1cde5d85bec20877bed063fc0046b9885231a0ae commit r11-3746-g1cde5d85bec20877bed063fc0046b9885231a0ae Author: Andrew MacLeod <amacl...@redhat.com> Date: Fri Oct 9 10:46:50 2020 +0200 Fix for PR97317. gcc/ChangeLog: PR tree-optimization/97317 * range-op.cc (operator_cast::op1_range): Handle casts where the precision of the RHS is only 1 greater than the precision of the LHS. gcc/testsuite/ChangeLog: * gcc.dg/pr97317.c: New test.