Skip to content
Snippets Groups Projects
Commit fba2c0cd authored by Jakub Jelinek's avatar Jakub Jelinek Committed by Jakub Jelinek
Browse files

fold-const.c (extract_muldiv): If not MULT_EXPR, check if either operand is divisible by C.

	* fold-const.c (extract_muldiv) [case PLUS_EXPR]: If not MULT_EXPR,
	check if either operand is divisible by C.
	(multiple_of_p): Handle LSHIFT_EXPR with small constant shift.
	If type is signed, consider negative numbers as well.

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

From-SVN: r39996
parent 487f1450
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