Skip to content
Snippets Groups Projects
Commit cef65eaa authored by Roger Sayle's avatar Roger Sayle Committed by Roger Sayle
Browse files

fold-const.c (fold_binary): Fold (X & 1) ^ 1 as (X & 1) == 0.

	* fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & 1) ^ 1 as
	(X & 1) == 0.
	<BIT_AND_EXPR>: Fold (X ^ 1) & 1 and ~X & 1 as (X & 1) == 0.

	* gcc.dg/fold-even-1.c: New test case.

From-SVN: r111454
parent a861485c
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