Skip to content
Snippets Groups Projects
Commit 47da8b49 authored by sayle's avatar sayle
Browse files

	PR middle-end/23673
	* fold-const.c (fold_binary) <EQ_EXPR>:  Fold (X^Y) == 0 as X == Y
	and (X^Y) != 0 as X != Y.  Fold (X^Y) == Y as X == 0, and some
	symmetry related transformations.  Fold (X^C1) == C2 as
	X == (C1^C2).

	* gcc.dg/fold-eqxor-1.c: New test case.
	* gcc.dg/fold-eqxor-2.c: Likewise.
	* gcc.dg/fold-eqxor-3.c: Likewise.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111442 138bc75d-0d04-0410-961f-82ee72b054a4
parent 59da30e1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment