From e99d18c442c40a14e6eaea722cbc7ef0ca6dd26a Mon Sep 17 00:00:00 2001 From: xleroy Date: Sat, 21 Aug 2010 10:21:11 +0000 Subject: Integers: cleaned up bitwise operations, redefined shr, zero_ext and sign_ext as bitwise operations rather than arithmetic ones. CastOptimproof: fixed for ARM port. Other files: adapted to changes in Integers. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1472 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- backend/CastOptimproof.v | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'backend/CastOptimproof.v') diff --git a/backend/CastOptimproof.v b/backend/CastOptimproof.v index 60b10c2c..d5076090 100644 --- a/backend/CastOptimproof.v +++ b/backend/CastOptimproof.v @@ -247,7 +247,7 @@ Proof. decEq. rewrite Float.singleoffloat_idem; auto. (* comparison *) simpl in H0. destruct (eval_condition c rs##args); try discriminate. - destruct b; inv H0; auto. + destruct b; inv H0; compute; auto. Qed. Lemma approx_of_chunk_correct: @@ -434,8 +434,9 @@ Proof. (* Iload *) econstructor; split. - TransfInstr; intro. eapply exec_Iload; eauto. + TransfInstr; intro. eapply exec_Iload with (a := a). eauto. rewrite <- H0. apply eval_addressing_preserved. exact symbols_preserved. + eauto. econstructor; eauto. eapply analyze_correct with (pc := pc); eauto. simpl; auto. @@ -444,8 +445,9 @@ Proof. (* Istore *) econstructor; split. - TransfInstr; intro. eapply exec_Istore; eauto. + TransfInstr; intro. eapply exec_Istore with (a := a). eauto. rewrite <- H0. apply eval_addressing_preserved. exact symbols_preserved. + eauto. econstructor; eauto. eapply analyze_correct with (pc := pc); eauto. simpl; auto. -- cgit