Fix for PR97317.
authorAndrew MacLeod <amacleod@redhat.com>
Fri, 9 Oct 2020 08:46:50 +0000 (10:46 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Fri, 9 Oct 2020 08:57:51 +0000 (10:57 +0200)
commit1cde5d85bec20877bed063fc0046b9885231a0ae
treeb9c68e4d5a6df39394df2f5df72b1da31fad180f
parenta0e6e49ddedb05e2e112e5c19a2228efd016e871
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.
gcc/range-op.cc
gcc/testsuite/gcc.dg/pr97317.c [new file with mode: 0644]