-
Notifications
You must be signed in to change notification settings - Fork 57
/
obsolete-keywords.wast
82 lines (72 loc) · 1.56 KB
/
obsolete-keywords.wast
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
;; Renamed in https://github.com/WebAssembly/spec/pull/720
(assert_malformed
(module quote
"(memory 1)"
"(func (drop (current_memory)))"
)
"unknown operator current_memory"
)
(assert_malformed
(module quote
"(memory 1)"
"(func (drop (grow_memory (i32.const 0))))"
)
"unknown operator grow_memory"
)
;; Renamed in https://github.com/WebAssembly/spec/pull/926
(assert_malformed
(module quote
"(func (local $i i32) (drop (get_local $i)))"
)
"unknown operator get_local"
)
(assert_malformed
(module quote
"(func (local $i i32) (set_local $i (i32.const 0)))"
)
"unknown operator set_local"
)
(assert_malformed
(module quote
"(func (local $i i32) (drop (tee_local $i (i32.const 0))))"
)
"unknown operator tee_local"
)
(assert_malformed
(module quote
"(global $g anyfunc (ref.null func))"
)
"unknown operator anyfunc"
)
(assert_malformed
(module quote
"(global $g i32 (i32.const 0))"
"(func (drop (get_global $g)))"
)
"unknown operator get_global"
)
(assert_malformed
(module quote
"(global $g (mut i32) (i32.const 0))"
"(func (set_global $g (i32.const 0)))"
)
"unknown operator set_global"
)
(assert_malformed
(module quote
"(func (drop (i32.wrap/i64 (i64.const 0))))"
)
"unknown operator i32.wrap/i64"
)
(assert_malformed
(module quote
"(func (drop (i32.trunc_s:sat/f32 (f32.const 0))))"
)
"unknown operator i32.trunc_s:sat/f32"
)
(assert_malformed
(module quote
"(func (drop (f32x4.convert_s/i32x4 (v128.const i64x2 0 0))))"
)
"unknown operator f32x4.convert_s/i32x4"
)