diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-04-01 09:15:28 +0200 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-04-01 09:15:28 +0200 |
commit | aedaa5cb1435008d1d872b7d6687bec5843798a0 (patch) | |
tree | a232723633ef95ae15d5222f0d407b6ec012c065 /aarch64/Op.v | |
parent | 82c4699c8d5dd12e29b79045b6b8d2daf573ac91 (diff) | |
download | compcert-kvx-aedaa5cb1435008d1d872b7d6687bec5843798a0.tar.gz compcert-kvx-aedaa5cb1435008d1d872b7d6687bec5843798a0.zip |
adapting new stuff for ARM and AArch64
Diffstat (limited to 'aarch64/Op.v')
-rw-r--r-- | aarch64/Op.v | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/aarch64/Op.v b/aarch64/Op.v index c0b9d435..afc25aa6 100644 --- a/aarch64/Op.v +++ b/aarch64/Op.v @@ -938,14 +938,19 @@ Definition is_trapping_op (op : operation) := end. +Definition args_of_operation op := + if eq_operation op Omove + then 1%nat + else List.length (fst (type_of_operation op)). + Lemma is_trapping_op_sound: forall op vl sp m, - op <> Omove -> is_trapping_op op = false -> - (List.length vl) = (List.length (fst (type_of_operation op))) -> + (List.length vl) = args_of_operation op -> eval_operation genv sp op vl m <> None. Proof. - destruct op; intros; simpl in *; try congruence. + unfold args_of_operation. + destruct op; destruct eq_operation; intros; simpl in *; try congruence. all: try (destruct vl as [ | vh1 vl1]; try discriminate). all: try (destruct vl1 as [ | vh2 vl2]; try discriminate). all: try (destruct vl2 as [ | vh3 vl3]; try discriminate). |