match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
authorMarek Polacek <polacek@redhat.com>
Thu, 11 Jun 2015 12:37:37 +0000 (12:37 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 11 Jun 2015 12:37:37 +0000 (12:37 +0000)
commitf13c4673a54c76a1c92018d630f48126349732b0
treee15f3019d96fd6027462f91b4cf4b7d6283cd925
parent6e28e5162a44473169a5a55ce24b9eebdfcdd3e0
match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.

* match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.

* gcc.dg/fold-xor-3.c: New test.

From-SVN: r224370
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-xor-3.c [new file with mode: 0644]