This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/23673] fold does not fold (a^b) != 0 to a != b
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Dec 2005 18:12:14 -0000
- Subject: [Bug middle-end/23673] fold does not fold (a^b) != 0 to a != b
- References: <bug-23673-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2005-12-02 18:12 -------
ok, I have a fix without rewritting some of fold_binary. I just needed to
added a check for BIT_XOR_EXPR comming back, like invert_expr does.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23673