This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/84982] [8 Regression] logically inverting bools into local array results in bitwise negation


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]