From 7f8ccba038ce9bf7665341c05b89bb5d9b9b536b Mon Sep 17 00:00:00 2001 From: Léo Gourdin Date: Wed, 3 Feb 2021 12:29:11 +0100 Subject: Ccomp for long --- riscV/NeedOp.v | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'riscV/NeedOp.v') diff --git a/riscV/NeedOp.v b/riscV/NeedOp.v index 9fd79de4..67940c47 100644 --- a/riscV/NeedOp.v +++ b/riscV/NeedOp.v @@ -96,6 +96,16 @@ Definition needs_of_operation (op: operation) (nv: nval): list nval := | OExoriw n => op1 (bitwise nv) | OEluiw n => op1 (default nv) | OEaddiwr0 n => op1 (modarith nv) + | OEseql _ => op2 (default nv) + | OEsnel _ => op2 (default nv) + | OEsltl _ => op2 (default nv) + | OEsltul _ => op2 (default nv) + | OEsltil n => op1 (default nv) + | OEsltiul n => op1 (default nv) + | OExoril n => op1 (default nv) + | OEluil n => op1 (default nv) + | OEaddilr0 n => op1 (modarith nv) + | OEloadli n => op1 (default nv) end. Definition operation_is_redundant (op: operation) (nv: nval): bool := @@ -165,6 +175,7 @@ Proof. - apply shruimm_sound; auto. - apply xor_sound; auto with na. - auto with na. +- auto with na. Qed. Lemma operation_is_redundant_sound: -- cgit