Gracefully handle right shifts larger than the precision.
authorAldy Hernandez <aldyh@redhat.com>
Mon, 19 Oct 2020 10:18:46 +0000 (06:18 -0400)
committerAldy Hernandez <aldyh@redhat.com>
Mon, 19 Oct 2020 12:34:01 +0000 (08:34 -0400)
commit2d2f4ffc97a8510e72a99ee106159aeae2627a42
tree0efeb2ede672aeaa79841811a21a8439a2882fe2
parent11b8cca0831ee37cc534ff27cd8d32ac5aace6f7
Gracefully handle right shifts larger than the precision.

gcc/ChangeLog:

PR tree-optimization/97488
* range-op.cc (operator_lshift::op1_range): Handle large right shifts.

gcc/testsuite/ChangeLog:

* gcc.dg/pr97488.c: New test.
gcc/range-op.cc
gcc/testsuite/gcc.dg/pr97488.c [new file with mode: 0644]