Commit 308d5189 by Sebastian Pop Committed by Sebastian Pop

tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of CEIL_MOD_EXPR.

       * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
       CEIL_MOD_EXPR.

From-SVN: r90028
parent 4cfa46c8
2004-11-03 Sebastian Pop <pop@cri.ensmp.fr>
* tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
CEIL_MOD_EXPR.
2004-11-03 Jeff Law <law@redhat.com> 2004-11-03 Jeff Law <law@redhat.com>
* stmt.c (expand_case): Speed up code to detect duplicate case * stmt.c (expand_case): Speed up code to detect duplicate case
......
...@@ -6029,7 +6029,7 @@ tree_fold_gcd (tree a, tree b) ...@@ -6029,7 +6029,7 @@ tree_fold_gcd (tree a, tree b)
while (1) while (1)
{ {
a_mod_b = fold (build2 (CEIL_MOD_EXPR, type, a, b)); a_mod_b = fold (build2 (FLOOR_MOD_EXPR, type, a, b));
if (!TREE_INT_CST_LOW (a_mod_b) if (!TREE_INT_CST_LOW (a_mod_b)
&& !TREE_INT_CST_HIGH (a_mod_b)) && !TREE_INT_CST_HIGH (a_mod_b))
......
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