re PR tree-optimization/71887 (wrong code (SIGFPE) at -O1 and above on x86_64-linux...
authorRichard Biener <rguenther@suse.de>
Fri, 15 Jul 2016 12:56:17 +0000 (12:56 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 15 Jul 2016 12:56:17 +0000 (12:56 +0000)
commit9513d5fbcabaf84b5e8450e8bb16894b3d42ba96
tree56a686a80dbf024010fa6ae23366cee856981020
parentad611a4c8401a0ba74501d6c289f881b3de82827
re PR tree-optimization/71887 (wrong code (SIGFPE) at -O1 and above on x86_64-linux-gnu (in both 32-bit and 64-bit modes))

2016-07-15  Richard Biener  <rguenther@suse.de>

PR tree-optimization/71887
* tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
verify it is not zero for division / modulo handling.
(value_replacement): Adjust.

* gcc.dg/torture/pr71887.c: New testcase.

From-SVN: r238373
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr71887.c [new file with mode: 0644]
gcc/tree-ssa-phiopt.c