@@ -29,11 +29,11 @@ Variant op_kind :=
29
29
| Op_w of wsize.
30
30
31
31
Variant wiop1 :=
32
- | WIword_of_int of wsize (* int → word *)
33
- | WIint_of_word of wsize (* word/uint/sint → int, signed or unsigned interpretation *)
32
+ | WIwint_of_int of wsize (* int → word *)
33
+ | WIint_of_wint of wsize (* word/uint/sint → int, signed or unsigned interpretation *)
34
34
| WIword_of_wint of wsize (* uint/sint -> word *)
35
35
| WIwint_of_word of wsize (* word -> uint/sint *)
36
- | WIword_ext of wsize & wsize (* Sign-extension: output-size, input-size *)
36
+ | WIwint_ext of wsize & wsize (* Sign-extension: output-size, input-size *)
37
37
| WIneg of wsize
38
38
.
39
39
@@ -176,21 +176,21 @@ HB.instance Definition _ := hasDecEq.Build opN opN_eq_axiom.
176
176
(* Type of unany operators: input, output *)
177
177
Definition etype_of_wiop1 {len:Type } (s: signedness) (o:wiop1) : extended_type len * extended_type len :=
178
178
match o with
179
- | WIword_of_int sz => (tint, twint s sz)
180
- | WIint_of_word sz => (twint s sz, tint)
179
+ | WIwint_of_int sz => (tint, twint s sz)
180
+ | WIint_of_wint sz => (twint s sz, tint)
181
181
| WIword_of_wint sz => (twint s sz, tword sz)
182
182
| WIwint_of_word sz => (tword sz, twint s sz)
183
- | WIword_ext szo szi => (twint s szi, twint s szo)
183
+ | WIwint_ext szo szi => (twint s szi, twint s szo)
184
184
| WIneg sz => (twint s sz, twint s sz)
185
185
end .
186
186
187
187
Definition type_of_wiop1 (o:wiop1) : stype * stype :=
188
188
match o with
189
- | WIword_of_int sz => (sint, sword sz)
190
- | WIint_of_word sz => (sword sz, sint)
189
+ | WIwint_of_int sz => (sint, sword sz)
190
+ | WIint_of_wint sz => (sword sz, sint)
191
191
| WIword_of_wint sz => (sword sz, sword sz)
192
192
| WIwint_of_word sz => (sword sz, sword sz)
193
- | WIword_ext szo szi => (sword szi, sword szo)
193
+ | WIwint_ext szo szi => (sword szi, sword szo)
194
194
| WIneg sz => (sword sz, sword sz)
195
195
end .
196
196
0 commit comments