re PR target/70941 (Test miscompiled with -O2.)
authorRichard Biener <rguenther@suse.de>
Fri, 6 May 2016 07:38:27 +0000 (07:38 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 6 May 2016 07:38:27 +0000 (07:38 +0000)
commita4f510181a4a6ac49317acdda7036f0370517cb9
tree8a41ca6eb178466e811be3f7bc6506293faa1a24
parentf5d6c2d81c656ec92b3f190b29260479d63e3ce5
re PR target/70941 (Test miscompiled with -O2.)

2016-05-06  Richard Biener  <rguenther@suse.de>

PR middle-end/70941
* fold-const.c (split_tree): Always convert to the original type
before negating.

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

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