https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55299
--- Comment #3 from Mikhail Maltsev <miyuki at gcc dot gnu.org> --- Author: miyuki Date: Tue May 17 20:50:22 2016 New Revision: 236344 URL: https://gcc.gnu.org/viewcvs?rev=236344&root=gcc&view=rev Log: Fold bit_not through ASR and rotate gcc/ PR tree-optimization/54579 PR middle-end/55299 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns. gcc/testsuite PR tree-optimization/54579 PR middle-end/55299 * gcc.dg/fold-notrotate-1.c: New test. * gcc.dg/fold-notshift-1.c: New test. * gcc.dg/fold-notshift-2.c: New test. Added: trunk/gcc/testsuite/gcc.dg/fold-notrotate-1.c trunk/gcc/testsuite/gcc.dg/fold-notshift-1.c trunk/gcc/testsuite/gcc.dg/fold-notshift-2.c Modified: trunk/gcc/ChangeLog trunk/gcc/match.pd trunk/gcc/testsuite/ChangeLog