aboutsummaryrefslogtreecommitdiffstats
path: root/riscV/NeedOp.v
diff options
context:
space:
mode:
Diffstat (limited to 'riscV/NeedOp.v')
-rw-r--r--riscV/NeedOp.v11
1 files changed, 11 insertions, 0 deletions
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: