diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/Values.v | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/Values.v b/common/Values.v index 05749b7f..670f785a 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 => |