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

ifcvt.c (noce_try_sign_mask): New function to transform "x = (y < 0) ? z ...



	* ifcvt.c (noce_try_sign_mask): New function to transform
	"x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
	(noce_process_if_block): Call noce_try_sign_mask.

	* gcc.c-torture/execute/20040309-1.c: New test case.

Co-Authored-By: default avatarAndrew Pinski <pinskia@physics.uc.edu>

From-SVN: r79205
parent a4f74b58
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