diff options
author | Léo Gourdin <leo.gourdin@univ-grenoble-alpes.fr> | 2021-03-02 18:30:58 +0100 |
---|---|---|
committer | Léo Gourdin <leo.gourdin@univ-grenoble-alpes.fr> | 2021-03-02 18:30:58 +0100 |
commit | 3e953ef41f736ed5b7db699b1adf21d46cb5b8db (patch) | |
tree | cbe0d543dd16c8715485fc404bd911f7a177011c /aarch64 | |
parent | 6bff68d55932bdc4715741a973724317c639b833 (diff) | |
download | compcert-kvx-3e953ef41f736ed5b7db699b1adf21d46cb5b8db.tar.gz compcert-kvx-3e953ef41f736ed5b7db699b1adf21d46cb5b8db.zip |
fix ci ?
Diffstat (limited to 'aarch64')
-rw-r--r-- | aarch64/ExpansionOracle.ml | 17 | ||||
-rw-r--r-- | aarch64/RTLpathSE_simplify.v | 42 |
2 files changed, 59 insertions, 0 deletions
diff --git a/aarch64/ExpansionOracle.ml b/aarch64/ExpansionOracle.ml new file mode 100644 index 00000000..3b63b80d --- /dev/null +++ b/aarch64/ExpansionOracle.ml @@ -0,0 +1,17 @@ +(* *************************************************************) +(* *) +(* The Compcert verified compiler *) +(* *) +(* Léo Gourdin UGA, VERIMAG *) +(* *) +(* Copyright VERIMAG. All rights reserved. *) +(* This file is distributed under the terms of the INRIA *) +(* Non-Commercial License Agreement. *) +(* *) +(* *************************************************************) + +open RTLpathCommon + +let expanse (sb : superblock) code pm = (code, pm) + +let find_last_node_reg c = () diff --git a/aarch64/RTLpathSE_simplify.v b/aarch64/RTLpathSE_simplify.v new file mode 100644 index 00000000..1ee7dac5 --- /dev/null +++ b/aarch64/RTLpathSE_simplify.v @@ -0,0 +1,42 @@ +Require Import Coqlib Floats Values Memory. +Require Import Integers. +Require Import Op Registers. +Require Import RTLpathSE_theory. +Require Import RTLpathSE_simu_specs. + +(** Target op simplifications using "fake" values *) + +Definition target_op_simplify (op: operation) (lr: list reg) (hst: hsistate_local): option hsval := + None. + +Definition target_cbranch_expanse (prev: hsistate_local) (cond: condition) (args: list reg) : option (condition * list_hsval) := + None. + +(* Main proof of simplification *) + +Lemma target_op_simplify_correct op lr hst fsv ge sp rs0 m0 st args m: forall + (H: target_op_simplify op lr hst = Some fsv) + (REF: hsilocal_refines ge sp rs0 m0 hst st) + (OK0: hsok_local ge sp rs0 m0 hst) + (OK1: seval_list_sval ge sp (list_sval_inj (map (si_sreg st) lr)) rs0 m0 = Some args) + (OK2: seval_smem ge sp (si_smem st) rs0 m0 = Some m), + seval_sval ge sp (hsval_proj fsv) rs0 m0 = eval_operation ge sp op args m. +Proof. + unfold target_op_simplify; simpl. + intros H (LREF & SREF & SREG & SMEM) ? ? ?. + congruence. +Qed. + +Lemma target_cbranch_expanse_correct hst c l ge sp rs0 m0 st c' l': forall + (TARGET: target_cbranch_expanse hst c l = Some (c', l')) + (LREF : hsilocal_refines ge sp rs0 m0 hst st) + (OK: hsok_local ge sp rs0 m0 hst), + seval_condition ge sp c' (hsval_list_proj l') (si_smem st) rs0 m0 = + seval_condition ge sp c (list_sval_inj (map (si_sreg st) l)) (si_smem st) rs0 m0. +Proof. + unfold target_cbranch_expanse, seval_condition; simpl. + intros H (LREF & SREF & SREG & SMEM) ?. + congruence. +Qed. +Global Opaque target_op_simplify. +Global Opaque target_cbranch_expanse. |