diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-01-30 19:04:13 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-01-30 19:04:13 +0100 |
commit | db7a2818002ba7e0c1863d15aca3212911161267 (patch) | |
tree | 3a978b34d4a749f949ab5c378dd10d65e6b9c5b1 /gcc/combine.c | |
parent | e520d5f02a0cfa5d07a48a14f2b67af63884e9ed (diff) | |
download | gcc-db7a2818002ba7e0c1863d15aca3212911161267.zip gcc-db7a2818002ba7e0c1863d15aca3212911161267.tar.gz gcc-db7a2818002ba7e0c1863d15aca3212911161267.tar.bz2 |
re PR middle-end/69546 (wrong code with -O and simple int128 arithmetics)
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
Diffstat (limited to 'gcc/combine.c')
0 files changed, 0 insertions, 0 deletions