| 1 |
;; RUN: wast --assert default,snapshot-folded --snapshot tests/snapshots % |
| 2 |
|
| 3 |
;;; WABT fold-load-store64.wat test (Copyright 2016- WebAssembly Community Group participants) |
| 4 |
(module |
| 5 |
(memory i64 1) |
| 6 |
(func $fold-load |
| 7 |
i64.const 1 |
| 8 |
i32.load |
| 9 |
drop |
| 10 |
i64.const 2 |
| 11 |
i32.load |
| 12 |
drop) |
| 13 |
|
| 14 |
(func $fold-store |
| 15 |
i64.const 1 |
| 16 |
i64.load |
| 17 |
f32.const 2 |
| 18 |
f32.store) |
| 19 |
|
| 20 |
(func $fold-memory-size (result i32) |
| 21 |
memory.size |
| 22 |
i64.const 1 |
| 23 |
i64.add |
| 24 |
drop |
| 25 |
i32.const 2) |
| 26 |
|
| 27 |
(func $fold-memory-grow (result i32) |
| 28 |
i64.const 1 |
| 29 |
i64.const 2 |
| 30 |
memory.grow |
| 31 |
i64.lt_s)) |