From 74487f079dd56663f97f9731cea328931857495c Mon Sep 17 00:00:00 2001 From: xleroy Date: Tue, 10 Nov 2009 12:50:57 +0000 Subject: 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 --- backend/LTLtyping.v | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'backend/LTLtyping.v') diff --git a/backend/LTLtyping.v b/backend/LTLtyping.v index 0461c9af..e62f9287 100644 --- a/backend/LTLtyping.v +++ b/backend/LTLtyping.v @@ -94,6 +94,12 @@ Inductive wt_instr : instruction -> Prop := locs_acceptable args -> valid_successor s1 -> valid_successor s2 -> wt_instr (Lcond cond args s1 s2) + | wt_Ljumptable: + forall arg tbl, + Loc.type arg = Tint -> + loc_acceptable arg -> + (forall lbl, In lbl tbl -> valid_successor lbl) -> + wt_instr (Ljumptable arg tbl) | wt_Lreturn: forall optres, option_map Loc.type optres = funct.(fn_sig).(sig_res) -> -- cgit