OSDN Git Service

* tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Nov 2004 15:28:08 +0000 (15:28 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Nov 2004 15:28:08 +0000 (15:28 +0000)
       CEIL_MOD_EXPR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90028 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree.c

index cbc5bc6..0b23912 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * stmt.c (expand_case): Speed up code to detect duplicate case
index 2cfcde2..1af25cb 100644 (file)
@@ -6029,7 +6029,7 @@ tree_fold_gcd (tree a, tree b)
 
   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)
          && !TREE_INT_CST_HIGH (a_mod_b))