https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78416
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue May 30 07:43:37 2017 New Revision: 248626 URL: https://gcc.gnu.org/viewcvs?rev=248626&root=gcc&view=rev Log: Backported from mainline 2016-11-22 Jakub Jelinek <ja...@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-5-branch/gcc/testsuite/gcc.dg/torture/pr78416.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/expmed.c branches/gcc-5-branch/gcc/testsuite/ChangeLog