Debian Codegraph @

tests/cli/missing-features/wide-arithmetic.wast

raw
1 ;; RUN: wast --assert default --snapshot tests/snapshots % -f mvp
2
3 (assert_invalid
4 (module
5 (func (param i64 i64 i64 i64)
6 local.get 0
7 local.get 1
8 local.get 2
9 local.get 3
10 i64.add128
11 drop
12 drop)
13 )
14 "wide arithmetic support is not enabled")
15
16 (assert_invalid
17 (module
18 (func (param i64 i64 i64 i64)
19 local.get 0
20 local.get 1
21 local.get 2
22 local.get 3
23 i64.sub128
24 drop
25 drop)
26 )
27 "wide arithmetic support is not enabled")
28
29 (assert_invalid
30 (module
31 (func (param i64 i64)
32 local.get 0
33 local.get 1
34 i64.mul_wide_s
35 drop
36 drop)
37 )
38 "wide arithmetic support is not enabled")
39
40 (assert_invalid
41 (module
42 (func (param i64 i64)
43 local.get 0
44 local.get 1
45 i64.mul_wide_u
46 drop
47 drop)
48 )
49 "wide arithmetic support is not enabled")