diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2013-07-03 15:07:17 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2013-07-03 15:07:17 +0000 |
commit | a0aaa3552d53b20a99566ac7116063fbb31b9964 (patch) | |
tree | 72b86341e136accdba1c339230cee0f1ba5013d9 /cfrontend/Cshmgenproof.v | |
parent | 18bbf6d3cfb15219c87ebc79a5dd58bf75f2b4c4 (diff) | |
download | compcert-a0aaa3552d53b20a99566ac7116063fbb31b9964.tar.gz compcert-a0aaa3552d53b20a99566ac7116063fbb31b9964.zip |
Treat casts int64 -> float32 as primitive operations instead of two
casts int64 -> float64 -> float32. The latter causes double rounding
errors.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2290 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'cfrontend/Cshmgenproof.v')
-rw-r--r-- | cfrontend/Cshmgenproof.v | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cfrontend/Cshmgenproof.v b/cfrontend/Cshmgenproof.v index 11f80118..3d5bbbae 100644 --- a/cfrontend/Cshmgenproof.v +++ b/cfrontend/Cshmgenproof.v @@ -172,12 +172,12 @@ Proof. Qed. Lemma make_floatoflong_correct: - forall a n sg e le m, + forall a n sg sz e le m, eval_expr ge e le m a (Vlong n) -> - eval_expr ge e le m (make_floatoflong a sg) (Vfloat(cast_long_float sg n)). + eval_expr ge e le m (make_floatoflong a sg sz) (Vfloat(cast_long_float sg sz n)). Proof. intros. unfold make_floatoflong, cast_int_long. - destruct sg; econstructor; eauto. + destruct sg; destruct sz; econstructor; eauto. Qed. Lemma make_longoffloat_correct: |