| 1 |
;; RUN: wast --assert default --snapshot tests/snapshots % |
| 2 |
|
| 3 |
(module $copy_between_memories |
| 4 |
(memory $m64 i64 1) |
| 5 |
(memory $m32 i32 1) |
| 6 |
|
| 7 |
(func |
| 8 |
i32.const 0 i32.const 0 i32.const 0 memory.copy $m32 $m32 |
| 9 |
i64.const 0 i32.const 0 i32.const 0 memory.copy $m64 $m32 |
| 10 |
i32.const 0 i64.const 0 i32.const 0 memory.copy $m32 $m64 |
| 11 |
i64.const 0 i64.const 0 i64.const 0 memory.copy $m64 $m64 |
| 12 |
) |
| 13 |
) |
| 14 |
|
| 15 |
(module $copy_between_memories |
| 16 |
(memory $a (data "...")) |
| 17 |
(memory $b i32 (data "...")) |
| 18 |
(memory $c i64 (data "...")) |
| 19 |
|
| 20 |
(func |
| 21 |
i32.const 0 (i32.load $a) drop |
| 22 |
i32.const 0 (i32.load $b) drop |
| 23 |
i64.const 0 (i32.load $c) drop |
| 24 |
) |
| 25 |
) |
| 26 |
|