re PR tree-optimization/84982 (logically inverting bools into local array results...
authorJakub Jelinek <jakub@redhat.com>
Wed, 21 Mar 2018 20:20:40 +0000 (21:20 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 21 Mar 2018 20:20:40 +0000 (21:20 +0100)
commite215422f1d6c69ae23b09de85a97bb3925cc5bfe
tree1e258992b30bc6e92a03d29ded42a6af6cd3dde3
parent57e20f74e011f190a29ec0b414c0ee74e62ebdc9
re PR tree-optimization/84982 (logically inverting bools into local array results in bitwise negation)

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.

From-SVN: r258742
gcc/ChangeLog
gcc/gimple-ssa-store-merging.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr84982.c [new file with mode: 0644]