https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64126
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Mon Dec 1 13:08:10 2014 New Revision: 218210 URL: https://gcc.gnu.org/viewcvs?rev=218210&root=gcc&view=rev Log: 2014-12-01 Richard Biener <rguent...@suse.de> PR middle-end/64126 * match.pd: Allow conversions in ~A + 1 -> -A, add -A - 1 -> ~A and -1 - A -> ~A. * fold-const.c (fold_binary_loc): Remove transforms here. Modified: trunk/gcc/ChangeLog trunk/gcc/fold-const.c trunk/gcc/match.pd