Commit 0629440f by Richard Kenner Committed by Richard Kenner

fold-const.c (extract_muldiv, [...]): Only adjust code for division, not modulus.

	* fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
	code for division, not modulus.

From-SVN: r45763
parent a0fd557a
Sun Sep 23 18:19:48 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> Sun Sep 23 18:19:48 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
code for division, not modulus.
* rtl.def (MEM): Remove obsolete part of comment. * rtl.def (MEM): Remove obsolete part of comment.
2001-09-22 Joseph S. Myers <jsm28@cam.ac.uk> 2001-09-22 Joseph S. Myers <jsm28@cam.ac.uk>
......
...@@ -4580,13 +4580,10 @@ extract_muldiv (t, c, code, wide_type) ...@@ -4580,13 +4580,10 @@ extract_muldiv (t, c, code, wide_type)
{ {
if (code == CEIL_DIV_EXPR) if (code == CEIL_DIV_EXPR)
code = FLOOR_DIV_EXPR; code = FLOOR_DIV_EXPR;
else if (code == CEIL_MOD_EXPR)
code = FLOOR_MOD_EXPR;
else if (code == FLOOR_DIV_EXPR) else if (code == FLOOR_DIV_EXPR)
code = CEIL_DIV_EXPR; code = CEIL_DIV_EXPR;
else if (code == FLOOR_MOD_EXPR) else if (code != MULT_EXPR
code = CEIL_MOD_EXPR; && code != CEIL_MOD_EXPR && code != FLOOR_MOD_EXPR)
else if (code != MULT_EXPR)
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment