Fix undefined behavior spotted by the sanitizer
commit28354bc22bd66648891a875ee08ca2b27debf2a2
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 5 Mar 2021 11:38:49 +0000 (5 12:38 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 5 Mar 2021 11:47:28 +0000 (5 12:47 +0100)
treeb43b40b41ae00495bb1794bfe9c8fed15c784c85
parent6ddedd3efa3fe482f76a4037521a06b3ac9f2a8b
Fix undefined behavior spotted by the sanitizer

gcc/
PR rtl-optimization/99376
* rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
of low-order zero bits is too large, set the result to 0 directly.
gcc/rtlanal.c