summaryrefslogtreecommitdiff
path: root/backend/Selectionproof.v
diff options
context:
space:
mode:
authorGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2008-07-31 12:44:18 +0000
committerGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2008-07-31 12:44:18 +0000
commit4c8a550fae641115170e4fc9c1b1292834e0c6c0 (patch)
tree2363194510dce61b3a6e3280601654c0c8646f9a /backend/Selectionproof.v
parent99294ec7c8054b92536d14883599ff3bfe7745ee (diff)
Flag to turn on/off the recognition of fused multiply-add and multiply-sub
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@706 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'backend/Selectionproof.v')
-rw-r--r--backend/Selectionproof.v15
1 files changed, 9 insertions, 6 deletions
diff --git a/backend/Selectionproof.v b/backend/Selectionproof.v
index bd4dd23..784823b 100644
--- a/backend/Selectionproof.v
+++ b/backend/Selectionproof.v
@@ -722,13 +722,13 @@ Theorem eval_addf:
eval_expr ge sp e m le b (Vfloat y) ->
eval_expr ge sp e m le (addf a b) (Vfloat (Float.add x y)).
Proof.
- intros until y; unfold addf; case (addf_match a b); intros; InvEval.
+ intros until y; unfold addf.
+ destruct (use_fused_mul tt).
+ case (addf_match a b); intros; InvEval.
EvalOp. simpl. congruence.
- econstructor. eauto. EvalOp. econstructor. eauto with evalexpr.
- econstructor. eauto with evalexpr. econstructor.
- econstructor. simpl. reflexivity. constructor.
- simpl. subst y. rewrite Float.addf_commut. auto.
+ EvalOp. simpl. rewrite Float.addf_commut. congruence.
EvalOp.
+ intros. EvalOp.
Qed.
Theorem eval_subf:
@@ -737,9 +737,12 @@ Theorem eval_subf:
eval_expr ge sp e m le b (Vfloat y) ->
eval_expr ge sp e m le (subf a b) (Vfloat (Float.sub x y)).
Proof.
- intros until y; unfold subf; case (subf_match a b); intros.
+ intros until y; unfold subf.
+ destruct (use_fused_mul tt).
+ case (subf_match a b); intros.
InvEval. EvalOp. simpl. congruence.
EvalOp.
+ intros. EvalOp.
Qed.
Theorem eval_cast8signed: