Ignore shifts larger than precision in operator_rshift::op1_range.
authorAldy Hernandez <aldyh@redhat.com>
Mon, 12 Oct 2020 08:08:28 +0000 (04:08 -0400)
committerAldy Hernandez <aldyh@redhat.com>
Mon, 12 Oct 2020 09:48:10 +0000 (05:48 -0400)
commite1b4fbfea6ad24f47279b90aec27ef1512625c80
tree52e8e8b4fc19b9a9c2c15cc01565e681dadef66a
parentab87b0add6a7c3464ee9067dd99e037e79f81984
Ignore shifts larger than precision in operator_rshift::op1_range.

gcc/ChangeLog:

PR tree-optimization/97371
* range-op.cc (operator_rshift::op1_range): Ignore shifts larger than
or equal to type precision.

gcc/testsuite/ChangeLog:

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