From 4297fcb821c3188449b64184af73e41491a6118f Mon Sep 17 00:00:00 2001 From: xleroy Date: Mon, 23 Jul 2012 15:01:54 +0000 Subject: - Revised non-overflow constraints on memory injections so that injections compose (Values, Memdata, Memory) - Memory chunks: Mfloat64 now has alignment 8; introduced Mfloat64al32 that works like old Mfloat64 (i.e. has alignment 4); simplified handling of memcpy builtin accordingly. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1983 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- ia32/Asmgenproof1.v | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ia32/Asmgenproof1.v') diff --git a/ia32/Asmgenproof1.v b/ia32/Asmgenproof1.v index 7b3427b..7ad8a02 100644 --- a/ia32/Asmgenproof1.v +++ b/ia32/Asmgenproof1.v @@ -1679,7 +1679,11 @@ Proof. transitivity (Val.add ((rs#(preg_of dest) <- v) PC) Vone). auto. decEq. apply Pregmap.gso; auto with ppcgen. exists rs2. split. - destruct chunk; ArgsInv; apply exec_straight_one; simpl; auto. + destruct chunk; ArgsInv; apply exec_straight_one; auto. + (* Mfloat64 -> Mfloat64al32 *) + rewrite <- H. simpl. unfold exec_load. rewrite H1. + destruct (eval_addrmode ge x rs); simpl in *; try discriminate. + erewrite Mem.load_float64al32; eauto. split. unfold rs2. rewrite nextinstr_nf_inv1. SRes. apply preg_of_important. intros. unfold rs2. repeat SOther. Qed. @@ -1725,6 +1729,10 @@ Proof. apply exec_straight_one. simpl. unfold exec_store. rewrite H1. eauto. auto. intros. SOther. (* float64 *) + econstructor; split. + apply exec_straight_one. simpl. unfold exec_store. erewrite Mem.storev_float64al32; eauto. auto. + intros. SOther. +(* float64al32 *) econstructor; split. apply exec_straight_one. simpl. unfold exec_store. rewrite H1. eauto. auto. intros. SOther. -- cgit v1.2.3