[Bug middle-end/78416] wrong code for division by (u128)~INT64_MAX at -O0
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 7 22:54:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78416
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Dec 7 22:54:14 2016
New Revision: 243406
URL: https://gcc.gnu.org/viewcvs?rev=243406&root=gcc&view=rev
Log:
Backported from mainline
2016-11-22 Jakub Jelinek <jakub@redhat.com>
PR middle-end/78416
* expmed.c (expand_divmod): Use wide_int for computation of
op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
Use size <= HOST_BITS_PER_WIDE_INT instead of
HOST_BITS_PER_WIDE_INT >= size.
* gcc.dg/torture/pr78416.c: New test.
Added:
branches/gcc-6-branch/gcc/testsuite/gcc.dg/torture/pr78416.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/expmed.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list