summaryrefslogtreecommitdiff
path: root/backend/Allocproof.v
diff options
context:
space:
mode:
authorGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2009-11-10 12:50:57 +0000
committerGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2009-11-10 12:50:57 +0000
commit74487f079dd56663f97f9731cea328931857495c (patch)
tree9de10b895da39adffaf66bff983d6ed573898068 /backend/Allocproof.v
parent0486654fac91947fec93d18a0738dd7aa10bcf96 (diff)
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/Allocproof.v')
-rw-r--r--backend/Allocproof.v6
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/Allocproof.v b/backend/Allocproof.v
index fc0a0f3..10eaa5b 100644
--- a/backend/Allocproof.v
+++ b/backend/Allocproof.v
@@ -683,6 +683,12 @@ Proof.
eapply exec_Lcond_false; eauto. TranslInstr.
MatchStates. eapply agree_reg_list_live. eauto.
+ (* Ijumptable *)
+ assert (rs#arg = ls (assign arg)). apply AG. apply Regset.add_1. auto.
+ econstructor; split.
+ eapply exec_Ljumptable; eauto. TranslInstr. congruence.
+ MatchStates. eapply list_nth_z_in; eauto. eapply agree_reg_live; eauto.
+
(* Ireturn *)
econstructor; split.
eapply exec_Lreturn; eauto. TranslInstr; eauto.