re PR tree-optimization/78305 (Wrong constant folding)
authorRichard Biener <rguenther@suse.de>
Thu, 17 Nov 2016 08:39:33 +0000 (08:39 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 17 Nov 2016 08:39:33 +0000 (08:39 +0000)
commitf8294131788cec4ca520032073e92928fbbb06a2
tree51735ece6cbb2b9b1ce2bad7559b4555a93ffb61
parent04f1c83099aab49f530f492b9d8119cf9d5ffcdd
re PR tree-optimization/78305 (Wrong constant folding)

2016-11-17  Richard Biener  <rguenther@suse.de>

PR middle-end/78305
* fold-const.c (negate_expr_p): Fix multiplication case.

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

From-SVN: r242536
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr78305.c [new file with mode: 0644]