https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84982
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Mar 21 20:20:40 2018 New Revision: 258742 URL: https://gcc.gnu.org/viewcvs?rev=258742&root=gcc&view=rev Log: PR tree-optimization/84982 * gimple-ssa-store-merging.c (invert_op): Handle boolean inversion by flipping the least significant bit rather than all bits from bitpos to bitpos + bitsize - 1. * c-c++-common/pr84982.c: New test. Added: trunk/gcc/testsuite/c-c++-common/pr84982.c Modified: trunk/gcc/ChangeLog trunk/gcc/gimple-ssa-store-merging.c trunk/gcc/testsuite/ChangeLog