diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2009-11-10 12:50:57 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2009-11-10 12:50:57 +0000 |
commit | 74487f079dd56663f97f9731cea328931857495c (patch) | |
tree | 9de10b895da39adffaf66bff983d6ed573898068 /backend/Linearizeproof.v | |
parent | 0486654fac91947fec93d18a0738dd7aa10bcf96 (diff) | |
download | compcert-74487f079dd56663f97f9731cea328931857495c.tar.gz compcert-74487f079dd56663f97f9731cea328931857495c.zip |
Added support for jump tables in back end.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1171 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'backend/Linearizeproof.v')
-rw-r--r-- | backend/Linearizeproof.v | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/backend/Linearizeproof.v b/backend/Linearizeproof.v index e35fb11b..c79908d6 100644 --- a/backend/Linearizeproof.v +++ b/backend/Linearizeproof.v @@ -639,6 +639,18 @@ Proof. traceEq. econstructor; eauto. + (* Ljumptable *) + destruct (find_label_lin_inv _ _ _ _ _ TRF H REACH AT) as [c' EQ]. + simpl in EQ. subst c. + assert (REACH': (reachable f)!!pc' = true). + eapply reachable_successors; eauto. simpl. eapply list_nth_z_in; eauto. + exploit find_label_lin_succ; eauto. + inv WTI. apply H6. eapply list_nth_z_in; eauto. + intros [c'' AT']. + econstructor; split. + apply plus_one. eapply exec_Ljumptable; eauto. + econstructor; eauto. + (* Lreturn *) destruct (find_label_lin_inv _ _ _ _ _ TRF H REACH AT) as [c' EQ]. simpl in EQ. subst c. |