OSDN Git Service

Fix 435.gromacs miscompile.
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Sep 2010 21:17:19 +0000 (21:17 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Sep 2010 21:17:19 +0000 (21:17 +0000)
2010-08-12  Sebastian Pop  <sebastian.pop@amd.com>

* graphite-clast-to-gimple.c (precision_for_value): Adjust
computation of precision by 1.

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

gcc/ChangeLog
gcc/ChangeLog.graphite
gcc/graphite-clast-to-gimple.c

index 7730287..f059496 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-12  Sebastian Pop  <sebastian.pop@amd.com>
+
+       * graphite-clast-to-gimple.c (precision_for_value): Adjust
+       computation of precision by 1.
+
 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
 
        * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
index 6c56686..7dd6378 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-12  Sebastian Pop  <sebastian.pop@amd.com>
+
+       * graphite-clast-to-gimple.c (precision_for_value): Adjust
+       computation of precision by 1.
+
 2010-08-12  Riyadh Baghdadi <baghdadi.mr@gmail.com>
 
        * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
index 88a72f1..6fde344 100644 (file)
@@ -415,7 +415,7 @@ precision_for_value (mpz_t val)
   if (mpz_sgn (y) < 0)
     mpz_neg (y, y);
 
-  while (mpz_cmp (y, x) > 0)
+  while (mpz_cmp (y, x) >= 0)
     {
       mpz_mul (x, x, two);
       precision++;