summaryrefslogtreecommitdiff
path: root/test/parse/expr/store-offset.txt
blob: 62fe66af3cc870225526343fbcbd2707aa522eb5 (plain)
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
(module
  (func
    i32.const 0
    i32.const 0
    i32.store8 offset=0
    i32.const 0
    i32.const 0
    i32.store16 offset=1
    i32.const 0
    i32.const 0
    i32.store offset=2
    i32.const 0
    i64.const 0
    i64.store offset=3
    i32.const 0
    i64.const 0
    i64.store8 offset=4
    i32.const 0 
    i64.const 0
    i64.store16 offset=5
    i32.const 0
    i64.const 0
    i64.store32 offset=6
    i32.const 0
    f32.const 0
    f32.store offset=7
    i32.const 0
    f64.const 0
    f64.store offset=8

    ;; alignment must come after
    i32.const 0
    i32.const 0
    i32.store8 offset=0 align=1
    i32.const 0
    i32.const 0
    i32.store16 offset=1 align=2
    i32.const 0
    i32.const 0
    i32.store offset=2 align=4
    i32.const 0
    i64.const 0
    i64.store offset=3 align=8
    i32.const 0
    i64.const 0
    i64.store8 offset=4 align=1
    i32.const 0
    i64.const 0
    i64.store16 offset=5 align=1
    i32.const 0
    i64.const 0
    i64.store32 offset=6 align=4
    i32.const 0
    f32.const 0
    f32.store offset=7 align=2
    i32.const 0
    f64.const 0
    f64.store offset=8 align=1))