diff options
author | Léo Gourdin <leo.gourdin@lilo.org> | 2021-11-02 10:10:34 +0100 |
---|---|---|
committer | Léo Gourdin <leo.gourdin@lilo.org> | 2021-11-02 10:10:34 +0100 |
commit | 173e6c25b2937d6e6941973aa7b116e1d6405513 (patch) | |
tree | e5f63f343a3d1a1341dc2e8a09f6cdb706226de3 /backend/Duplicateproof.v | |
parent | f9e4d91431334d88992e62a232a9e2ff2f6fcdc9 (diff) | |
download | compcert-kvx-173e6c25b2937d6e6941973aa7b116e1d6405513.tar.gz compcert-kvx-173e6c25b2937d6e6941973aa7b116e1d6405513.zip |
Porting the BTL non-trap loads approach to RTL
Diffstat (limited to 'backend/Duplicateproof.v')
-rw-r--r-- | backend/Duplicateproof.v | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/backend/Duplicateproof.v b/backend/Duplicateproof.v index 2f3bad2f..c4270e46 100644 --- a/backend/Duplicateproof.v +++ b/backend/Duplicateproof.v @@ -414,25 +414,19 @@ Proof. (* Iload *) - eapply dupmap_correct in DUPLIC; eauto. destruct DUPLIC as (i' & H2 & H3). inv H3. - pose symbols_preserved as SYMPRES. - eexists. split. - + eapply exec_Iload; eauto; (* is the follow still needed?*) erewrite eval_addressing_preserved; eauto. - + econstructor; eauto. -(* Iload notrap1 *) - - eapply dupmap_correct in DUPLIC; eauto. - destruct DUPLIC as (i' & H2 & H3). inv H3. - pose symbols_preserved as SYMPRES. - eexists. split. - + eapply exec_Iload_notrap1; eauto; erewrite eval_addressing_preserved; eauto. - + econstructor; eauto. -(* Iload notrap2 *) - - eapply dupmap_correct in DUPLIC; eauto. - destruct DUPLIC as (i' & H2 & H3). inv H3. - pose symbols_preserved as SYMPRES. - eexists. split. - + eapply exec_Iload_notrap2; eauto; erewrite eval_addressing_preserved; eauto. - + econstructor; eauto. - + pose symbols_preserved as SYMPRES. inv H0. + + eexists; split. + * eapply exec_Iload; eauto. eapply has_loaded_normal; eauto. erewrite eval_addressing_preserved; eauto. + * econstructor; eauto. + + destruct (eval_addressing) eqn:EVAL in LOAD. + * specialize (LOAD v). eexists; split. + -- eapply exec_Iload; eauto. eapply has_loaded_default; eauto. erewrite eval_addressing_preserved; eauto. + intros a EVAL'; rewrite EVAL in EVAL'; inv EVAL'. apply LOAD; auto. + -- econstructor; eauto. + * eexists; split. + -- eapply exec_Iload; eauto. eapply has_loaded_default; eauto. erewrite eval_addressing_preserved; eauto. + intros a EVAL'; rewrite EVAL in EVAL'; inv EVAL'. + -- econstructor; eauto. (* Istore *) - eapply dupmap_correct in DUPLIC; eauto. destruct DUPLIC as (i' & H2 & H3). inv H3. |