summaryrefslogtreecommitdiff
path: root/common/Values.v
diff options
context:
space:
mode:
Diffstat (limited to 'common/Values.v')
-rw-r--r--common/Values.v12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/Values.v b/common/Values.v
index 05749b7..670f785 100644
--- a/common/Values.v
+++ b/common/Values.v
@@ -222,6 +222,18 @@ Definition mul (v1 v2: val): val :=
| _, _ => Vundef
end.
+Definition mulhs (v1 v2: val): val :=
+ match v1, v2 with
+ | Vint n1, Vint n2 => Vint(Int.mulhs n1 n2)
+ | _, _ => Vundef
+ end.
+
+Definition mulhu (v1 v2: val): val :=
+ match v1, v2 with
+ | Vint n1, Vint n2 => Vint(Int.mulhu n1 n2)
+ | _, _ => Vundef
+ end.
+
Definition divs (v1 v2: val): option val :=
match v1, v2 with
| Vint n1, Vint n2 =>