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

simplify-rtx.c (simplify_binary_operation): Unfactor the shift and rotate cases.

	* simplify-rtx.c (simplify_binary_operation): Unfactor the shift
	and rotate cases.
	<LSHIFTRT>: Optimize (lshiftrt (clz X) C) as (eq X 0) where C is
	log2(GET_MODE_BITSIZE(X)) on targets with the appropriate semantics.

	* gcc.target/ppc-eq0-1.c: New test case.
	* gcc.target/ppc-negeq0-1.c: New test case.

From-SVN: r114239
parent d117b270
No related branches found
No related tags found
No related merge requests found
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