pr69546-2.c
307 Bytes
-
re PR middle-end/69546 (wrong code with -O and simple int128 arithmetics) · db7a2818
PR tree-optimization/69546 * wide-int.cc (wi::divmod_internal): For unsigned division where both operands fit into uhwi, if o1 is 1 and o0 has msb set, if divident_prec is larger than bits per hwi, clear another quotient word and return 2 instead of 1. Similarly for remainder with msb in HWI set, if dividend_prec is larger than bits per hwi. * gcc.dg/torture/pr69546.c: New test. From-SVN: r233012
Jakub Jelinek committed