]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/ChangeLog
ChangeLog gcc/
authorKai Tietz <ktietz@redhat.com>
Wed, 20 Apr 2011 16:16:28 +0000 (18:16 +0200)
committerKai Tietz <ktietz@gcc.gnu.org>
Wed, 20 Apr 2011 16:16:28 +0000 (18:16 +0200)
commit583722ee5836f737b0a05f915d6d4ffc095565f9
tree946228850bcada56ffd10a40a2a1dfe0ba959199
parent422c0989b5a4470dabec04c3795eafec7015c2ff
ChangeLog gcc/

2011-04-20  Kai Tietz  <ktietz@redhat.com>

* fold-const.c (fold_binary_loc): Add handling for
(X & ~Y) | (~X & Y) and (X && !Y) | (!X && Y) optimization
to (X ^ Y).

ChangeLog gcc/testsuite

2011-04-20  Kai Tietz  <ktietz@redhat.com>

* gcc.dg/binio-xor1.c: New test.
* gcc.dg/binio-xor2.c: New test.
* gcc.dg/binio-xor3.c: New test.
* gcc.dg/binio-xor4.c: New test.
* gcc.dg/binio-xor5.c: New test.

From-SVN: r172776
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/binop-xor1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/binop-xor2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/binop-xor3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/binop-xor4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/binop-xor5.c [new file with mode: 0644]