summaryrefslogtreecommitdiff
path: root/gcc/graphite-clast-to-gimple.c
diff options
context:
space:
mode:
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-30 21:17:19 +0000
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-30 21:17:19 +0000
commit3648398c51d9c632c1e5f7952887bf81444f3691 (patch)
tree84063e3b106d764de5371a1cb06615a38ca7ec30 /gcc/graphite-clast-to-gimple.c
parent63b03ccf2817e57882dcee680da769eca1c14002 (diff)
downloadgcc-3648398c51d9c632c1e5f7952887bf81444f3691.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164779 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-clast-to-gimple.c')
-rw-r--r--gcc/graphite-clast-to-gimple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/graphite-clast-to-gimple.c b/gcc/graphite-clast-to-gimple.c
index 88a72f1fea7..6fde344a5bf 100644
--- a/gcc/graphite-clast-to-gimple.c
+++ b/gcc/graphite-clast-to-gimple.c
@@ -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++;