diff options
author | Jacques-Henri Jourdan <jacques-henri.jourdan@inria.fr> | 2015-11-04 03:04:21 +0100 |
---|---|---|
committer | Jacques-Henri Jourdan <jacques-henri.jourdan@inria.fr> | 2015-11-04 03:04:21 +0100 |
commit | 5664fddcab15ef4482d583673c75e07bd1e96d0a (patch) | |
tree | 878b22860e69405ba5cf6fd2798731dac8ce660c /backend/Mach.v | |
parent | b960c83725d7e185ac5c6e3c0d6043c7dcd2f556 (diff) | |
parent | fe73ed58ef80da7c53c124302a608948fb190229 (diff) | |
download | compcert-5664fddcab15ef4482d583673c75e07bd1e96d0a.tar.gz compcert-5664fddcab15ef4482d583673c75e07bd1e96d0a.zip |
Merge remote-tracking branch 'origin/master' into parser_fix
Diffstat (limited to 'backend/Mach.v')
-rw-r--r-- | backend/Mach.v | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/backend/Mach.v b/backend/Mach.v index 8853d9da..739c8212 100644 --- a/backend/Mach.v +++ b/backend/Mach.v @@ -13,7 +13,7 @@ (** The Mach intermediate language: abstract syntax. Mach is the last intermediate language before generation of assembly - code. + code. *) Require Import Coqlib. @@ -34,14 +34,14 @@ Require Stacklayout. (** Like Linear, the Mach language is organized as lists of instructions operating over machine registers, with default fall-through behaviour - and explicit labels and branch instructions. + and explicit labels and branch instructions. The main difference with Linear lies in the instructions used to access the activation record. Mach has three such instructions: [Mgetstack] and [Msetstack] to read and write within the activation record for the current function, at a given word offset and with a given type; and [Mgetparam], to read within the activation record of - the caller. + the caller. These instructions implement a more concrete view of the activation record than the the [Lgetstack] and [Lsetstack] instructions of @@ -153,7 +153,7 @@ Lemma undef_regs_same: Proof. induction rl; simpl; intros. tauto. destruct H. subst a. apply Regmap.gss. - unfold Regmap.set. destruct (RegEq.eq r a); auto. + unfold Regmap.set. destruct (RegEq.eq r a); auto. Qed. Fixpoint set_regs (rl: list mreg) (vl: list val) (rs: regset) : regset := @@ -193,7 +193,7 @@ Lemma find_label_incl: forall lbl c c', find_label lbl c = Some c' -> incl c' c. Proof. induction c; simpl; intros. discriminate. - destruct (is_label lbl a). inv H. auto with coqlib. eauto with coqlib. + destruct (is_label lbl a). inv H. auto with coqlib. eauto with coqlib. Qed. Section RELSEM. |