fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
authorMarek Polacek <polacek@redhat.com>
Fri, 17 Jul 2015 16:03:27 +0000 (16:03 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 17 Jul 2015 16:03:27 +0000 (16:03 +0000)
commitf7b7b0aab82d50165f9d3fb375cd506af999a288
treed4aac49e43d9016064da83586d41d363856c3f67
parentafb2d80bc57bddd52bb04869861bf40503a3e89d
fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...

* fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
* match.pd: ... here.

* gcc.dg/fold-minus-7.c: New test.

From-SVN: r225938
gcc/ChangeLog
gcc/fold-const.c
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-minus-7.c [new file with mode: 0644]