re PR middle-end/61158 (negative shift at fold-const.c:12095)
PR tree-optimization/61158 * fold-const.c (fold_binary_loc): If X is zero-extended and shiftc >= prec, make sure zerobits is all ones instead of invoking undefined behavior. * gcc.dg/pr61158.c: New test. From-SVN: r210467
Showing
gcc/testsuite/gcc.dg/pr61158.c
0 → 100644
Please
register
or
sign in
to comment