forked from WebAssembly/binaryen
/
alignment-lowering.wast
63 lines (63 loc) · 2.74 KB
/
alignment-lowering.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
(module
(memory $0 1 1)
(func $func_4
(drop (i32.load (i32.const 4)))
(drop (i32.load align=1 (i32.const 4)))
(drop (i32.load align=2 (i32.const 4)))
(drop (i32.load align=4 (i32.const 4)))
(drop (i32.load offset=100 (i32.const 4)))
(drop (i32.load offset=100 align=1 (i32.const 4)))
(drop (i32.load offset=100 align=2 (i32.const 4)))
(drop (i32.load offset=100 align=4 (i32.const 4)))
(drop (i32.load offset=100 align=1 (unreachable)))
(i32.store (i32.const 4) (i32.const 8))
(i32.store align=1 (i32.const 4) (i32.const 8))
(i32.store align=2 (i32.const 4) (i32.const 8))
(i32.store align=4 (i32.const 4) (i32.const 8))
(i32.store offset=100 (i32.const 4) (i32.const 8))
(i32.store offset=100 align=1 (i32.const 4) (i32.const 8))
(i32.store offset=100 align=2 (i32.const 4) (i32.const 8))
(i32.store offset=100 align=4 (i32.const 4) (i32.const 8))
(i32.store offset=100 align=1 (unreachable) (i32.const 8))
(i32.store offset=100 align=1 (i32.const 4) (unreachable))
)
(func $func_2
(drop (i32.load16_u (i32.const 4)))
(drop (i32.load16_u align=1 (i32.const 4)))
(drop (i32.load16_u align=2 (i32.const 4)))
(drop (i32.load16_u offset=100 (i32.const 4)))
(drop (i32.load16_u offset=100 align=1 (i32.const 4)))
(drop (i32.load16_u offset=100 align=2 (i32.const 4)))
(drop (i32.load16_u offset=100 align=1 (unreachable)))
(i32.store16 (i32.const 4) (i32.const 8))
(i32.store16 align=1 (i32.const 4) (i32.const 8))
(i32.store16 align=2 (i32.const 4) (i32.const 8))
(i32.store16 offset=100 (i32.const 4) (i32.const 8))
(i32.store16 offset=100 align=1 (i32.const 4) (i32.const 8))
(i32.store16 offset=100 align=2 (i32.const 4) (i32.const 8))
(i32.store16 offset=100 align=1 (unreachable) (i32.const 8))
(i32.store16 offset=100 align=1 (i32.const 4) (unreachable))
)
(func $func_1
(drop (i32.load8_u (i32.const 4)))
(drop (i32.load8_u align=1 (i32.const 4)))
(drop (i32.load8_u offset=100 (i32.const 4)))
(drop (i32.load8_u offset=100 align=1 (i32.const 4)))
(drop (i32.load8_u offset=100 align=1 (unreachable)))
(i32.store8 (i32.const 4) (i32.const 8))
(i32.store8 align=1 (i32.const 4) (i32.const 8))
(i32.store8 offset=100 (i32.const 4) (i32.const 8))
(i32.store8 offset=100 align=1 (i32.const 4) (i32.const 8))
(i32.store8 offset=100 align=1 (unreachable) (i32.const 8))
(i32.store8 offset=100 align=1 (i32.const 4) (unreachable))
)
(func $func_signed
(drop (i32.load16_s (i32.const 4)))
(drop (i32.load16_s align=1 (i32.const 4)))
(drop (i32.load16_s align=2 (i32.const 4)))
(drop (i32.load16_s offset=100 (i32.const 4)))
(drop (i32.load16_s offset=100 align=1 (i32.const 4)))
(drop (i32.load16_s offset=100 align=2 (i32.const 4)))
(drop (i32.load16_s offset=100 align=1 (unreachable)))
)
)