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/Reloadtyping.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/Reloadtyping.v')
-rw-r--r-- | backend/Reloadtyping.v | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backend/Reloadtyping.v b/backend/Reloadtyping.v index 375bbfde..df0715ee 100644 --- a/backend/Reloadtyping.v +++ b/backend/Reloadtyping.v @@ -35,7 +35,7 @@ Require Import Reloadproof. Hint Resolve wt_Lgetstack wt_Lsetstack wt_Lopmove wt_Lop wt_Lload wt_Lstore wt_Lcall wt_Ltailcall - wt_Llabel wt_Lgoto wt_Lcond wt_Lreturn: reloadty. + wt_Llabel wt_Lgoto wt_Lcond wt_Ljumptable wt_Lreturn: reloadty. Remark wt_code_cons: forall f i c, wt_instr f i -> wt_code f c -> wt_code f (i :: c). @@ -295,6 +295,10 @@ Proof. eauto with reloadty. auto with reloadty. + assert (mreg_type (reg_for arg) = Loc.type arg). + eauto with reloadty. + auto with reloadty. + destruct optres; simpl in *; auto with reloadty. apply wt_add_reload; auto with reloadty. unfold loc_result. rewrite <- H1. |