[Bug middle-end/86627] [6/7/8/9 Regression] Signed 128-bit division by 2 no longer expanded to RTL
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 24 14:38:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86627
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Jul 24 14:23:18 2018
New Revision: 262948
URL: https://gcc.gnu.org/viewcvs?rev=262948&root=gcc&view=rev
Log:
PR middle-end/86627
* expmed.c (expand_divmod): Punt if d == HOST_WIDE_INT_MIN
and size > HOST_BITS_PER_WIDE_INT. For size > HOST_BITS_PER_WIDE_INT
and abs_d == d, do the power of two handling if profitable.
* gcc.target/i386/pr86627.c: New test.
Added:
trunk/gcc/testsuite/gcc.target/i386/pr86627.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/expmed.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list