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/Reloadproof.v | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'backend/Reloadproof.v') diff --git a/backend/Reloadproof.v b/backend/Reloadproof.v index a7becc3..21d5f38 100644 --- a/backend/Reloadproof.v +++ b/backend/Reloadproof.v @@ -1257,6 +1257,20 @@ Proof. econstructor; eauto with coqlib. apply agree_exten with ls; auto. + (* Ljumptable *) + ExploitWT; inv WTI. + exploit add_reload_correct_2. + intros [ls2 [A [B [C D]]]]. + left; econstructor; split. + eapply plus_right. eauto. eapply exec_Ljumptable; eauto. + assert (Val.lessdef (rs arg) (ls arg)). apply AG. auto. + rewrite H in H2. inv H2. congruence. + apply find_label_transf_function; eauto. + traceEq. + econstructor; eauto with coqlib. + apply agree_exten with ls; auto. + eapply LTLin.find_label_is_tail; eauto. + (* Lreturn *) ExploitWT; inv WTI. destruct or; simpl. -- cgit v1.2.3