Commit 02315365 by Sebastian Pop Committed by Sebastian Pop

Fix 435.gromacs miscompile.

2010-08-12  Sebastian Pop  <sebastian.pop@amd.com>

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

From-SVN: r164779
parent 721c8b1e
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.
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.
......
......@@ -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++;
......
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