-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathdata0.wast
More file actions
73 lines (64 loc) · 1.94 KB
/
data0.wast
File metadata and controls
73 lines (64 loc) · 1.94 KB
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
;; Test the data section
;; Syntax
(module
(memory $mem0 1)
(memory $mem1 1)
(memory $mem2 1)
(data (i32.const 0))
(data (i32.const 1) "a" "" "bcd")
(data (offset (i32.const 0)))
(data (offset (i32.const 0)) "" "a" "bc" "")
(data (memory 0) (i32.const 0))
(data (memory 0x0) (i32.const 1) "a" "" "bcd")
(data (memory 0x000) (offset (i32.const 0)))
(data (memory 0) (offset (i32.const 0)) "" "a" "bc" "")
(data (memory $mem0) (i32.const 0))
(data (memory $mem1) (i32.const 1) "a" "" "bcd")
(data (memory $mem2) (offset (i32.const 0)))
(data (memory $mem0) (offset (i32.const 0)) "" "a" "bc" "")
(data $d1 (i32.const 0))
(data $d2 (i32.const 1) "a" "" "bcd")
(data $d3 (offset (i32.const 0)))
(data $d4 (offset (i32.const 0)) "" "a" "bc" "")
(data $d5 (memory 0) (i32.const 0))
(data $d6 (memory 0x0) (i32.const 1) "a" "" "bcd")
(data $d7 (memory 0x000) (offset (i32.const 0)))
(data $d8 (memory 0) (offset (i32.const 0)) "" "a" "bc" "")
(data $d9 (memory $mem0) (i32.const 0))
(data $d10 (memory $mem1) (i32.const 1) "a" "" "bcd")
(data $d11 (memory $mem2) (offset (i32.const 0)))
(data $d12 (memory $mem0) (offset (i32.const 0)) "" "a" "bc" "")
)
;; Basic use
(module
(memory 1)
(data (i32.const 0) "a")
)
(module
(import "spectest" "memory" (memory 1))
(import "spectest" "memory" (memory 1))
(import "spectest" "memory" (memory 1))
(data (memory 0) (i32.const 0) "a")
(data (memory 1) (i32.const 0) "a")
(data (memory 2) (i32.const 0) "a")
)
(module
(global (import "spectest" "global_i32") i32)
(memory 1)
(data (global.get 0) "a")
)
(module
(global (import "spectest" "global_i32") i32)
(import "spectest" "memory" (memory 1))
(data (global.get 0) "a")
)
(module
(global $g (import "spectest" "global_i32") i32)
(memory 1)
(data (global.get $g) "a")
)
(module
(global $g (import "spectest" "global_i32") i32)
(import "spectest" "memory" (memory 1))
(data (global.get $g) "a")
)