re PR rtl-optimization/78546 (wrong code at -O2 and above)
authorRichard Biener <rguenther@suse.de>
Tue, 29 Nov 2016 07:48:43 +0000 (07:48 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 29 Nov 2016 07:48:43 +0000 (07:48 +0000)
commitb302f2e058a37b462e8c78216a65ff7341a58bf1
tree9b77ab75e716b944c064b82a8664b83ab6b8d993
parente24dcd7d2a9bed04d1662b4930d26e8d4e47b354
re PR rtl-optimization/78546 (wrong code at -O2 and above)

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

PR middle-end/78546
* match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.

* gcc.dg/tree-ssa/forwprop-36.c: New testcase.

From-SVN: r242953
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/forwprop-36.c [new file with mode: 0644]