[Bug middle-end/46019] [4.3/4.4/4.5/4.6 Regression] x / (0x200000000ULL << y) miscompilation with 32-bit HWI
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Oct 18 09:57:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46019
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-10-18 09:57:05 UTC ---
Author: jakub
Date: Mon Oct 18 09:57:02 2010
New Revision: 165617
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165617
Log:
PR middle-end/46019
* fold-const.c (fold_binary_loc): If integer_pow2p has
TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
* gcc.c-torture/execute/pr46019.c: New test.
Added:
branches/gcc-4_5-branch/gcc/testsuite/gcc.c-torture/execute/pr46019.c
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/fold-const.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list