diff options
Diffstat (limited to 'test')
136 files changed, 138 insertions, 0 deletions
diff --git a/test/parse/basic.txt b/test/parse/basic.txt index 194145f8..e8d12457 100644 --- a/test/parse/basic.txt +++ b/test/parse/basic.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (result i32) i32.const 42 diff --git a/test/parse/expr/binary.txt b/test/parse/expr/binary.txt index 5d2b1a98..5d7f0b52 100644 --- a/test/parse/expr/binary.txt +++ b/test/parse/expr/binary.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func i32.const 0 diff --git a/test/parse/expr/block-named.txt b/test/parse/expr/block-named.txt index b26cc3c4..08e39d68 100644 --- a/test/parse/expr/block-named.txt +++ b/test/parse/expr/block-named.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func block $foo diff --git a/test/parse/expr/block-return.txt b/test/parse/expr/block-return.txt index 6eeae185..dbc745f4 100644 --- a/test/parse/expr/block-return.txt +++ b/test/parse/expr/block-return.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (result i32) block (result i32) diff --git a/test/parse/expr/block.txt b/test/parse/expr/block.txt index 4acdcdfc..e86201cc 100644 --- a/test/parse/expr/block.txt +++ b/test/parse/expr/block.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func block diff --git a/test/parse/expr/br-block.txt b/test/parse/expr/br-block.txt index ccdd7b97..1312e177 100644 --- a/test/parse/expr/br-block.txt +++ b/test/parse/expr/br-block.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func block $exit1 diff --git a/test/parse/expr/br-loop.txt b/test/parse/expr/br-loop.txt index 3de6b56a..03ef1be6 100644 --- a/test/parse/expr/br-loop.txt +++ b/test/parse/expr/br-loop.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func loop $exit diff --git a/test/parse/expr/br-named.txt b/test/parse/expr/br-named.txt index d121b233..dbd0f59d 100644 --- a/test/parse/expr/br-named.txt +++ b/test/parse/expr/br-named.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func block $foo br $foo diff --git a/test/parse/expr/br.txt b/test/parse/expr/br.txt index 559a0cf5..304901f9 100644 --- a/test/parse/expr/br.txt +++ b/test/parse/expr/br.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func block diff --git a/test/parse/expr/brif-named.txt b/test/parse/expr/brif-named.txt index 70657352..10034cb7 100644 --- a/test/parse/expr/brif-named.txt +++ b/test/parse/expr/brif-named.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func block $foo diff --git a/test/parse/expr/brif.txt b/test/parse/expr/brif.txt index e60f9913..e8c10659 100644 --- a/test/parse/expr/brif.txt +++ b/test/parse/expr/brif.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func block $foo diff --git a/test/parse/expr/brtable-multi.txt b/test/parse/expr/brtable-multi.txt index 2a34c099..5c8ac85c 100644 --- a/test/parse/expr/brtable-multi.txt +++ b/test/parse/expr/brtable-multi.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func block diff --git a/test/parse/expr/brtable-named.txt b/test/parse/expr/brtable-named.txt index 8522618a..b70ef481 100644 --- a/test/parse/expr/brtable-named.txt +++ b/test/parse/expr/brtable-named.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func block $exit diff --git a/test/parse/expr/brtable.txt b/test/parse/expr/brtable.txt index 7eab49ae..75d206c9 100644 --- a/test/parse/expr/brtable.txt +++ b/test/parse/expr/brtable.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func block diff --git a/test/parse/expr/call-defined-later.txt b/test/parse/expr/call-defined-later.txt index bb1d84d2..e1ea11b7 100644 --- a/test/parse/expr/call-defined-later.txt +++ b/test/parse/expr/call-defined-later.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func $foo i32.const 1 diff --git a/test/parse/expr/call-name-prefix.txt b/test/parse/expr/call-name-prefix.txt index bffe97bb..a2950824 100644 --- a/test/parse/expr/call-name-prefix.txt +++ b/test/parse/expr/call-name-prefix.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func $foomore i32.const 0 diff --git a/test/parse/expr/call-named.txt b/test/parse/expr/call-named.txt index 9b589193..4ce51bfd 100644 --- a/test/parse/expr/call-named.txt +++ b/test/parse/expr/call-named.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func $foo (param f32) f32.const 0.0 diff --git a/test/parse/expr/call.txt b/test/parse/expr/call.txt index 4b71c312..9a921a81 100644 --- a/test/parse/expr/call.txt +++ b/test/parse/expr/call.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (param i32) i32.const 1 diff --git a/test/parse/expr/callimport-named.txt b/test/parse/expr/callimport-named.txt index 38f37a02..e0492b23 100644 --- a/test/parse/expr/callimport-named.txt +++ b/test/parse/expr/callimport-named.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (import "foo" "bar" (func $bar (param f32))) (func diff --git a/test/parse/expr/callimport-type.txt b/test/parse/expr/callimport-type.txt index 8433ff44..f907e1f6 100644 --- a/test/parse/expr/callimport-type.txt +++ b/test/parse/expr/callimport-type.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (type (func (param i32) (result i32))) (import "foo" "bar" (func (type 0))) diff --git a/test/parse/expr/callimport.txt b/test/parse/expr/callimport.txt index 8f88484a..2ac97035 100644 --- a/test/parse/expr/callimport.txt +++ b/test/parse/expr/callimport.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (import "foo" "bar" (func (param i32) (result i32))) (func (param i32) (result i32) diff --git a/test/parse/expr/callindirect-named.txt b/test/parse/expr/callindirect-named.txt index 719e8c84..00eb58fc 100644 --- a/test/parse/expr/callindirect-named.txt +++ b/test/parse/expr/callindirect-named.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (table anyfunc (elem 0)) (type $t (func (param i32))) diff --git a/test/parse/expr/callindirect.txt b/test/parse/expr/callindirect.txt index 41cbf7db..6244ae90 100644 --- a/test/parse/expr/callindirect.txt +++ b/test/parse/expr/callindirect.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (table anyfunc (elem 0)) (type (func (param i32))) diff --git a/test/parse/expr/cast.txt b/test/parse/expr/cast.txt index 076d3ea4..42c92cbb 100644 --- a/test/parse/expr/cast.txt +++ b/test/parse/expr/cast.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func i32.const 0 diff --git a/test/parse/expr/compare.txt b/test/parse/expr/compare.txt index b451ac89..25e85a17 100644 --- a/test/parse/expr/compare.txt +++ b/test/parse/expr/compare.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func i32.const 0 diff --git a/test/parse/expr/convert.txt b/test/parse/expr/convert.txt index d2b06edf..a7c8b26e 100644 --- a/test/parse/expr/convert.txt +++ b/test/parse/expr/convert.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func i64.const 0 diff --git a/test/parse/expr/current-memory.txt b/test/parse/expr/current-memory.txt index 2c71ed35..d68eecce 100644 --- a/test/parse/expr/current-memory.txt +++ b/test/parse/expr/current-memory.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (memory 1) (func diff --git a/test/parse/expr/drop.txt b/test/parse/expr/drop.txt index eb8e1e5e..a9de1a9d 100644 --- a/test/parse/expr/drop.txt +++ b/test/parse/expr/drop.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func i32.const 0 diff --git a/test/parse/expr/expr-br.txt b/test/parse/expr/expr-br.txt index 4276bab3..652785d7 100644 --- a/test/parse/expr/expr-br.txt +++ b/test/parse/expr/expr-br.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (result i32) block $exit (result i32) diff --git a/test/parse/expr/expr-brif.txt b/test/parse/expr/expr-brif.txt index 54b9bddd..71231d6e 100644 --- a/test/parse/expr/expr-brif.txt +++ b/test/parse/expr/expr-brif.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (result i32) block $exit (result i32) diff --git a/test/parse/expr/getglobal-named.txt b/test/parse/expr/getglobal-named.txt index d42a5e2a..f6be8af1 100644 --- a/test/parse/expr/getglobal-named.txt +++ b/test/parse/expr/getglobal-named.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (global $g i32 (i32.const 1)) (func (result i32) diff --git a/test/parse/expr/getglobal.txt b/test/parse/expr/getglobal.txt index dfcb856e..0e45f6f5 100644 --- a/test/parse/expr/getglobal.txt +++ b/test/parse/expr/getglobal.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (global i32 (i32.const 1)) (func (result i32) diff --git a/test/parse/expr/getlocal-index-after-param.txt b/test/parse/expr/getlocal-index-after-param.txt index 80110f93..8798aa99 100644 --- a/test/parse/expr/getlocal-index-after-param.txt +++ b/test/parse/expr/getlocal-index-after-param.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (param i32) (local i32) get_local 1 diff --git a/test/parse/expr/getlocal-index-mixed-named-unnamed.txt b/test/parse/expr/getlocal-index-mixed-named-unnamed.txt index 93fb81cb..2ded272a 100644 --- a/test/parse/expr/getlocal-index-mixed-named-unnamed.txt +++ b/test/parse/expr/getlocal-index-mixed-named-unnamed.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (param i32) (param $n f32) (local i32 i64) diff --git a/test/parse/expr/getlocal-named.txt b/test/parse/expr/getlocal-named.txt index a9927fc9..652178be 100644 --- a/test/parse/expr/getlocal-named.txt +++ b/test/parse/expr/getlocal-named.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (local $foo i32) get_local $foo diff --git a/test/parse/expr/getlocal-param-named.txt b/test/parse/expr/getlocal-param-named.txt index 389a38a3..bb9c119a 100644 --- a/test/parse/expr/getlocal-param-named.txt +++ b/test/parse/expr/getlocal-param-named.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (param $n i32) get_local $n diff --git a/test/parse/expr/getlocal-param.txt b/test/parse/expr/getlocal-param.txt index 7e29659e..274fe737 100644 --- a/test/parse/expr/getlocal-param.txt +++ b/test/parse/expr/getlocal-param.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (param i32) get_local 0 diff --git a/test/parse/expr/getlocal.txt b/test/parse/expr/getlocal.txt index f3a7a3c2..8a9d758d 100644 --- a/test/parse/expr/getlocal.txt +++ b/test/parse/expr/getlocal.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (local i32) get_local 0 diff --git a/test/parse/expr/grow-memory.txt b/test/parse/expr/grow-memory.txt index e6fafbec..fd3d8aa7 100644 --- a/test/parse/expr/grow-memory.txt +++ b/test/parse/expr/grow-memory.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (memory 1) (func diff --git a/test/parse/expr/if-return.txt b/test/parse/expr/if-return.txt index 4a39c5f0..bbdaed81 100644 --- a/test/parse/expr/if-return.txt +++ b/test/parse/expr/if-return.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (result i32) i32.const 1 diff --git a/test/parse/expr/if-then-br-named.txt b/test/parse/expr/if-then-br-named.txt index e16f2f71..439acd6e 100644 --- a/test/parse/expr/if-then-br-named.txt +++ b/test/parse/expr/if-then-br-named.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func i32.const 1 diff --git a/test/parse/expr/if-then-br.txt b/test/parse/expr/if-then-br.txt index 54d9e664..5ab31051 100644 --- a/test/parse/expr/if-then-br.txt +++ b/test/parse/expr/if-then-br.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func i32.const 1 diff --git a/test/parse/expr/if-then-else-br-named.txt b/test/parse/expr/if-then-else-br-named.txt index 6e8ef870..b7f515fa 100644 --- a/test/parse/expr/if-then-else-br-named.txt +++ b/test/parse/expr/if-then-else-br-named.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (result i32) i32.const 1 diff --git a/test/parse/expr/if-then-else-br.txt b/test/parse/expr/if-then-else-br.txt index 91448d3a..ef6b4de8 100644 --- a/test/parse/expr/if-then-else-br.txt +++ b/test/parse/expr/if-then-else-br.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (result i32) i32.const 1 diff --git a/test/parse/expr/if-then-else-list.txt b/test/parse/expr/if-then-else-list.txt index 61298ceb..dee031b1 100644 --- a/test/parse/expr/if-then-else-list.txt +++ b/test/parse/expr/if-then-else-list.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func i32.const 1 diff --git a/test/parse/expr/if-then-else.txt b/test/parse/expr/if-then-else.txt index 16c87276..94c5af58 100644 --- a/test/parse/expr/if-then-else.txt +++ b/test/parse/expr/if-then-else.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (i32.const 0) diff --git a/test/parse/expr/if.txt b/test/parse/expr/if.txt index 036260e4..56959d80 100644 --- a/test/parse/expr/if.txt +++ b/test/parse/expr/if.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func i32.const 1 diff --git a/test/parse/expr/load-aligned.txt b/test/parse/expr/load-aligned.txt index f4d94752..e91f8280 100644 --- a/test/parse/expr/load-aligned.txt +++ b/test/parse/expr/load-aligned.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (memory 1) (func diff --git a/test/parse/expr/load-offset.txt b/test/parse/expr/load-offset.txt index 6ff13772..ba2c1ef9 100644 --- a/test/parse/expr/load-offset.txt +++ b/test/parse/expr/load-offset.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (memory 1) (func diff --git a/test/parse/expr/load.txt b/test/parse/expr/load.txt index 39470788..fc00086c 100644 --- a/test/parse/expr/load.txt +++ b/test/parse/expr/load.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (memory 1) (func diff --git a/test/parse/expr/loop-named.txt b/test/parse/expr/loop-named.txt index 215b899e..4a173040 100644 --- a/test/parse/expr/loop-named.txt +++ b/test/parse/expr/loop-named.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func loop diff --git a/test/parse/expr/loop.txt b/test/parse/expr/loop.txt index eb032607..53012a68 100644 --- a/test/parse/expr/loop.txt +++ b/test/parse/expr/loop.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func loop diff --git a/test/parse/expr/nop.txt b/test/parse/expr/nop.txt index 18146529..ea696e78 100644 --- a/test/parse/expr/nop.txt +++ b/test/parse/expr/nop.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (func nop)) diff --git a/test/parse/expr/return-block.txt b/test/parse/expr/return-block.txt index 526b488a..5ebe2531 100644 --- a/test/parse/expr/return-block.txt +++ b/test/parse/expr/return-block.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (result i32) block (result i32) diff --git a/test/parse/expr/return-if.txt b/test/parse/expr/return-if.txt index abeb3368..0608d917 100644 --- a/test/parse/expr/return-if.txt +++ b/test/parse/expr/return-if.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (result i32) i32.const 1 diff --git a/test/parse/expr/return-void.txt b/test/parse/expr/return-void.txt index bff70591..bfb0bfcb 100644 --- a/test/parse/expr/return-void.txt +++ b/test/parse/expr/return-void.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (func return)) diff --git a/test/parse/expr/return.txt b/test/parse/expr/return.txt index 194145f8..e8d12457 100644 --- a/test/parse/expr/return.txt +++ b/test/parse/expr/return.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (result i32) i32.const 42 diff --git a/test/parse/expr/select.txt b/test/parse/expr/select.txt index 41989049..57cc6646 100644 --- a/test/parse/expr/select.txt +++ b/test/parse/expr/select.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func i32.const 2 diff --git a/test/parse/expr/setglobal-named.txt b/test/parse/expr/setglobal-named.txt index 677a1140..b6f4f33f 100644 --- a/test/parse/expr/setglobal-named.txt +++ b/test/parse/expr/setglobal-named.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (global $g f32 (f32.const 1)) (func diff --git a/test/parse/expr/setglobal.txt b/test/parse/expr/setglobal.txt index 5450dd29..c34bb0cc 100644 --- a/test/parse/expr/setglobal.txt +++ b/test/parse/expr/setglobal.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (global f32 (f32.const 1)) (func diff --git a/test/parse/expr/setlocal-index-after-param.txt b/test/parse/expr/setlocal-index-after-param.txt index 1db97874..690130fe 100644 --- a/test/parse/expr/setlocal-index-after-param.txt +++ b/test/parse/expr/setlocal-index-after-param.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (param i32) (local i32) diff --git a/test/parse/expr/setlocal-index-mixed-named-unnamed.txt b/test/parse/expr/setlocal-index-mixed-named-unnamed.txt index a120d484..1b5a3801 100644 --- a/test/parse/expr/setlocal-index-mixed-named-unnamed.txt +++ b/test/parse/expr/setlocal-index-mixed-named-unnamed.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (param i32) (param $n f32) (local i32 i64) diff --git a/test/parse/expr/setlocal-named.txt b/test/parse/expr/setlocal-named.txt index 76a818b1..2f23aaad 100644 --- a/test/parse/expr/setlocal-named.txt +++ b/test/parse/expr/setlocal-named.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (local $n i32) i32.const 12 diff --git a/test/parse/expr/setlocal-param-named.txt b/test/parse/expr/setlocal-param-named.txt index a4f4f7c3..76e1468d 100644 --- a/test/parse/expr/setlocal-param-named.txt +++ b/test/parse/expr/setlocal-param-named.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (param $n i32) i32.const 0 diff --git a/test/parse/expr/setlocal-param.txt b/test/parse/expr/setlocal-param.txt index 0782973a..1a455a66 100644 --- a/test/parse/expr/setlocal-param.txt +++ b/test/parse/expr/setlocal-param.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (param i32) i32.const 0 diff --git a/test/parse/expr/setlocal.txt b/test/parse/expr/setlocal.txt index 4e710675..b851ef50 100644 --- a/test/parse/expr/setlocal.txt +++ b/test/parse/expr/setlocal.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (local i32) i32.const 0 set_local 0)) diff --git a/test/parse/expr/store-aligned.txt b/test/parse/expr/store-aligned.txt index 99056f09..4f75c2c2 100644 --- a/test/parse/expr/store-aligned.txt +++ b/test/parse/expr/store-aligned.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (memory 1) (func diff --git a/test/parse/expr/store-offset.txt b/test/parse/expr/store-offset.txt index c0b8618e..8a1311e0 100644 --- a/test/parse/expr/store-offset.txt +++ b/test/parse/expr/store-offset.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (memory 1) (func diff --git a/test/parse/expr/store.txt b/test/parse/expr/store.txt index dfe1d947..343a995b 100644 --- a/test/parse/expr/store.txt +++ b/test/parse/expr/store.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (memory 1) (func diff --git a/test/parse/expr/tee_local.txt b/test/parse/expr/tee_local.txt index 81804a7d..0a153e3b 100644 --- a/test/parse/expr/tee_local.txt +++ b/test/parse/expr/tee_local.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (local i32) diff --git a/test/parse/expr/unary.txt b/test/parse/expr/unary.txt index f91e8708..0c593214 100644 --- a/test/parse/expr/unary.txt +++ b/test/parse/expr/unary.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func f32.const 0 diff --git a/test/parse/expr/unreachable.txt b/test/parse/expr/unreachable.txt index 61dac9fb..d7690b90 100644 --- a/test/parse/expr/unreachable.txt +++ b/test/parse/expr/unreachable.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (func unreachable)) diff --git a/test/parse/func/func-named.txt b/test/parse/func/func-named.txt index f744db34..9b7d90e0 100644 --- a/test/parse/func/func-named.txt +++ b/test/parse/func/func-named.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (func $foo)) diff --git a/test/parse/func/local-empty.txt b/test/parse/func/local-empty.txt index 0c9c3d8f..c348c544 100644 --- a/test/parse/func/local-empty.txt +++ b/test/parse/func/local-empty.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (func (local))) diff --git a/test/parse/func/local-multi.txt b/test/parse/func/local-multi.txt index bb5813d2..39801e73 100644 --- a/test/parse/func/local-multi.txt +++ b/test/parse/func/local-multi.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (func (local i32) (local $n i64))) diff --git a/test/parse/func/local.txt b/test/parse/func/local.txt index c5b0149f..29b6ade1 100644 --- a/test/parse/func/local.txt +++ b/test/parse/func/local.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (func (local i32))) diff --git a/test/parse/func/no-space.txt b/test/parse/func/no-space.txt index cec81cac..82bd53d4 100644 --- a/test/parse/func/no-space.txt +++ b/test/parse/func/no-space.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func $foomore i32.const 0x0 diff --git a/test/parse/func/param-binding.txt b/test/parse/func/param-binding.txt index 0d79fef5..8e46f803 100644 --- a/test/parse/func/param-binding.txt +++ b/test/parse/func/param-binding.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (func (param $foo i32))) diff --git a/test/parse/func/param-multi.txt b/test/parse/func/param-multi.txt index 9ab0a662..57474c83 100644 --- a/test/parse/func/param-multi.txt +++ b/test/parse/func/param-multi.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (func (param i32) (param $n f64))) diff --git a/test/parse/func/param-type-1.txt b/test/parse/func/param-type-1.txt index a1aa01b5..3b10e478 100644 --- a/test/parse/func/param-type-1.txt +++ b/test/parse/func/param-type-1.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (func (param i32))) diff --git a/test/parse/func/param-type-2.txt b/test/parse/func/param-type-2.txt index 19e0dc3a..d4a39080 100644 --- a/test/parse/func/param-type-2.txt +++ b/test/parse/func/param-type-2.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (func (param i32 f32))) diff --git a/test/parse/func/result-empty.txt b/test/parse/func/result-empty.txt index 69e82f7a..17e467c7 100644 --- a/test/parse/func/result-empty.txt +++ b/test/parse/func/result-empty.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (func (result))) diff --git a/test/parse/func/result.txt b/test/parse/func/result.txt index 317b16f1..f18f845f 100644 --- a/test/parse/func/result.txt +++ b/test/parse/func/result.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (func (result i32) i32.const 0)) diff --git a/test/parse/func/sig-match.txt b/test/parse/func/sig-match.txt index f9df862d..f2a6d0ae 100644 --- a/test/parse/func/sig-match.txt +++ b/test/parse/func/sig-match.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (type $empty (func)) (type $i_v (func (param i32))) diff --git a/test/parse/func/sig.txt b/test/parse/func/sig.txt index 649c66c5..5d220172 100644 --- a/test/parse/func/sig.txt +++ b/test/parse/func/sig.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (type $t (func (param i32) (result i32))) (func (type $t) (i32.const 0))) diff --git a/test/parse/line-comment.txt b/test/parse/line-comment.txt index d6d9f737..6299216d 100644 --- a/test/parse/line-comment.txt +++ b/test/parse/line-comment.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm ;; here is a comment (module) ;; here is another diff --git a/test/parse/module/binary-module.txt b/test/parse/module/binary-module.txt index e0df8563..5b1bba2d 100644 --- a/test/parse/module/binary-module.txt +++ b/test/parse/module/binary-module.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module binary "\00asm" ;; magic "\01\00\00\00" ;; version diff --git a/test/parse/module/data-offset.txt b/test/parse/module/data-offset.txt index dfa6dad5..f30118b3 100644 --- a/test/parse/module/data-offset.txt +++ b/test/parse/module/data-offset.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (import "foo" "bar" (global i32)) (memory 1) diff --git a/test/parse/module/elem-offset.txt b/test/parse/module/elem-offset.txt index 44721f8f..9d9f68d0 100644 --- a/test/parse/module/elem-offset.txt +++ b/test/parse/module/elem-offset.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (import "foo" "bar" (global i32)) (global i32 i32.const 1) diff --git a/test/parse/module/export-func-multi.txt b/test/parse/module/export-func-multi.txt index 30d2231f..0df0f157 100644 --- a/test/parse/module/export-func-multi.txt +++ b/test/parse/module/export-func-multi.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (nop)) (export "a" (func 0)) diff --git a/test/parse/module/export-func-named.txt b/test/parse/module/export-func-named.txt index 8ebe5997..c5b6ec99 100644 --- a/test/parse/module/export-func-named.txt +++ b/test/parse/module/export-func-named.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func $n (result i32) (i32.const 0)) (export "n" (func $n))) diff --git a/test/parse/module/export-func.txt b/test/parse/module/export-func.txt index 1892a220..7a453882 100644 --- a/test/parse/module/export-func.txt +++ b/test/parse/module/export-func.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (nop)) (export "nop" (func 0))) diff --git a/test/parse/module/export-global.txt b/test/parse/module/export-global.txt index bdffc6b7..a776cba9 100644 --- a/test/parse/module/export-global.txt +++ b/test/parse/module/export-global.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (global i32 (i32.const 0)) (global (mut f32) (f32.const 0)) diff --git a/test/parse/module/export-memory-multi.txt b/test/parse/module/export-memory-multi.txt index d00acc53..b8b4cb31 100644 --- a/test/parse/module/export-memory-multi.txt +++ b/test/parse/module/export-memory-multi.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (memory 1) (export "mem1" (memory 0)) diff --git a/test/parse/module/export-memory.txt b/test/parse/module/export-memory.txt index eec98095..2a486b54 100644 --- a/test/parse/module/export-memory.txt +++ b/test/parse/module/export-memory.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (memory 1) (export "mem" (memory 0))) diff --git a/test/parse/module/export-table.txt b/test/parse/module/export-table.txt index 12c926f0..62e85ff6 100644 --- a/test/parse/module/export-table.txt +++ b/test/parse/module/export-table.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (table 0 anyfunc) (export "my_table" (table 0))) diff --git a/test/parse/module/global.txt b/test/parse/module/global.txt index 5a94ca96..6a4fcbb9 100644 --- a/test/parse/module/global.txt +++ b/test/parse/module/global.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (import "foo" "i32_global" (global i32)) (import "foo" "i64_global" (global i64)) diff --git a/test/parse/module/import-func-no-param.txt b/test/parse/module/import-func-no-param.txt index 9302e924..60e72400 100644 --- a/test/parse/module/import-func-no-param.txt +++ b/test/parse/module/import-func-no-param.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (import "foo" "bar" (func))) diff --git a/test/parse/module/import-func-type.txt b/test/parse/module/import-func-type.txt index 9f31b90b..2814f103 100644 --- a/test/parse/module/import-func-type.txt +++ b/test/parse/module/import-func-type.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (type (func (param i32 i64 f32 f64) (result i32))) (import "foo" "bar" (func (type 0)))) diff --git a/test/parse/module/import-func.txt b/test/parse/module/import-func.txt index a999e017..79b525f9 100644 --- a/test/parse/module/import-func.txt +++ b/test/parse/module/import-func.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module ;; unnamed (import "foo" "bar" (func (param i32) (result i64))) diff --git a/test/parse/module/import-global-getglobal.txt b/test/parse/module/import-global-getglobal.txt index fb6a5fbb..f2cc8bdf 100644 --- a/test/parse/module/import-global-getglobal.txt +++ b/test/parse/module/import-global-getglobal.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (import "a" "global" (global i32)) (global i32 (get_global 0))) diff --git a/test/parse/module/import-global.txt b/test/parse/module/import-global.txt index 216ae32c..7bc77bae 100644 --- a/test/parse/module/import-global.txt +++ b/test/parse/module/import-global.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (import "foo" "1" (global i32)) (import "foo" "2" (global i64)) diff --git a/test/parse/module/import-memory-shared.txt b/test/parse/module/import-memory-shared.txt index f6242898..b3a6443a 100644 --- a/test/parse/module/import-memory-shared.txt +++ b/test/parse/module/import-memory-shared.txt @@ -1,2 +1,3 @@ +;;; TOOL: wat2wasm (module (import "foo" "2" (memory 0 2 shared))) diff --git a/test/parse/module/import-memory.txt b/test/parse/module/import-memory.txt index 8d22fd69..13abbc01 100644 --- a/test/parse/module/import-memory.txt +++ b/test/parse/module/import-memory.txt @@ -1,2 +1,3 @@ +;;; TOOL: wat2wasm (module (import "foo" "2" (memory 0 2))) diff --git a/test/parse/module/import-table.txt b/test/parse/module/import-table.txt index 90b26030..5976dfef 100644 --- a/test/parse/module/import-table.txt +++ b/test/parse/module/import-table.txt @@ -1,2 +1,3 @@ +;;; TOOL: wat2wasm (module (import "foo" "2" (table 0 10 anyfunc))) diff --git a/test/parse/module/memory-init-max-size.txt b/test/parse/module/memory-init-max-size.txt index ee01c49a..49c3dc18 100644 --- a/test/parse/module/memory-init-max-size.txt +++ b/test/parse/module/memory-init-max-size.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (memory 1 2)) diff --git a/test/parse/module/memory-init-size.txt b/test/parse/module/memory-init-size.txt index 4503196d..5aa7b3cd 100644 --- a/test/parse/module/memory-init-size.txt +++ b/test/parse/module/memory-init-size.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (memory 1)) diff --git a/test/parse/module/memory-segment-1.txt b/test/parse/module/memory-segment-1.txt index 69bc0497..459d04cc 100644 --- a/test/parse/module/memory-segment-1.txt +++ b/test/parse/module/memory-segment-1.txt @@ -1,2 +1,3 @@ +;;; TOOL: wat2wasm (module (memory (data "hello, world!"))) diff --git a/test/parse/module/memory-segment-long.txt b/test/parse/module/memory-segment-long.txt index a0836fde..581f1176 100644 --- a/test/parse/module/memory-segment-long.txt +++ b/test/parse/module/memory-segment-long.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm ;; This is a regression test to ensure we read and parse integer tokens ASAP. ;; Otherwise the memory that is used to store them may be reused. In this case, ;; the very long data segment strings were causing the strings that store the diff --git a/test/parse/module/memory-segment-many.txt b/test/parse/module/memory-segment-many.txt index 3dd54228..65f89928 100644 --- a/test/parse/module/memory-segment-many.txt +++ b/test/parse/module/memory-segment-many.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (memory 1) (data (i32.const 0) "hi") diff --git a/test/parse/module/memory-segment-multi-string.txt b/test/parse/module/memory-segment-multi-string.txt index 5c434d18..4e2c62ef 100644 --- a/test/parse/module/memory-segment-multi-string.txt +++ b/test/parse/module/memory-segment-multi-string.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (memory (data "hi" "there" "how" "are" "you"))) diff --git a/test/parse/module/memory-shared.txt b/test/parse/module/memory-shared.txt index 66f6e659..e05ad711 100644 --- a/test/parse/module/memory-shared.txt +++ b/test/parse/module/memory-shared.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (memory 1 1 shared)) diff --git a/test/parse/module/module-empty.txt b/test/parse/module/module-empty.txt index 3af8f254..a1af6328 100644 --- a/test/parse/module/module-empty.txt +++ b/test/parse/module/module-empty.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module) diff --git a/test/parse/module/start-named.txt b/test/parse/module/start-named.txt index 16aa37d8..d5403f84 100644 --- a/test/parse/module/start-named.txt +++ b/test/parse/module/start-named.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (start $foo) (func $foo)) diff --git a/test/parse/module/start.txt b/test/parse/module/start.txt index fa4a3800..06074824 100644 --- a/test/parse/module/start.txt +++ b/test/parse/module/start.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (start 0) (func)) diff --git a/test/parse/module/table-named.txt b/test/parse/module/table-named.txt index 5d693dbd..381ef1c0 100644 --- a/test/parse/module/table-named.txt +++ b/test/parse/module/table-named.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func $f (param i32)) (func $g (param i32 i64)) diff --git a/test/parse/module/table.txt b/test/parse/module/table.txt index 4d0c897d..a9d029cd 100644 --- a/test/parse/module/table.txt +++ b/test/parse/module/table.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (param i32)) (func (param i32 i64)) diff --git a/test/parse/module/type-empty-param.txt b/test/parse/module/type-empty-param.txt index 69a7cf42..8421cf76 100644 --- a/test/parse/module/type-empty-param.txt +++ b/test/parse/module/type-empty-param.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (type (func (param)))) diff --git a/test/parse/module/type-empty.txt b/test/parse/module/type-empty.txt index d75fc4cf..0b3a4011 100644 --- a/test/parse/module/type-empty.txt +++ b/test/parse/module/type-empty.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (type (func))) diff --git a/test/parse/module/type-multi-param.txt b/test/parse/module/type-multi-param.txt index a6176872..dbaba0c6 100644 --- a/test/parse/module/type-multi-param.txt +++ b/test/parse/module/type-multi-param.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (type (func (param i32 f32 f64) (result f32)))) diff --git a/test/parse/module/type-no-param.txt b/test/parse/module/type-no-param.txt index b3fc19e3..94c136d5 100644 --- a/test/parse/module/type-no-param.txt +++ b/test/parse/module/type-no-param.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (type (func (result i32)))) diff --git a/test/parse/module/type.txt b/test/parse/module/type.txt index 6d915a83..585870a2 100644 --- a/test/parse/module/type.txt +++ b/test/parse/module/type.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (type (func (param i32) (result i32)))) diff --git a/test/parse/nested-comments.txt b/test/parse/nested-comments.txt index 89250f84..52b0243c 100644 --- a/test/parse/nested-comments.txt +++ b/test/parse/nested-comments.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (; foo bar (; baz diff --git a/test/parse/string-escape.txt b/test/parse/string-escape.txt index ed463dc6..df2645bb 100644 --- a/test/parse/string-escape.txt +++ b/test/parse/string-escape.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (func) (export "tab:\t newline:\n slash:\\ quote:\' double:\"" (func 0))) diff --git a/test/parse/string-hex.txt b/test/parse/string-hex.txt index 5616db0a..0d943bce 100644 --- a/test/parse/string-hex.txt +++ b/test/parse/string-hex.txt @@ -1 +1,2 @@ +;;; TOOL: wat2wasm (module (func) (export "foo\de\ad\ca\bb" (func 0))) diff --git a/test/regress/regress-3.txt b/test/regress/regress-3.txt index cc86387e..61b2e104 100644 --- a/test/regress/regress-3.txt +++ b/test/regress/regress-3.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm ;;; NOTE: bug when calling function defined with type after call (module (type $t (func (result i32))) diff --git a/test/regress/regress-6.txt b/test/regress/regress-6.txt index ea8a39c4..096bbad8 100644 --- a/test/regress/regress-6.txt +++ b/test/regress/regress-6.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (result i32) block (result i32) diff --git a/test/run-tests.py b/test/run-tests.py index 4a4496f8..38734a90 100755 --- a/test/run-tests.py +++ b/test/run-tests.py @@ -512,6 +512,9 @@ class TestInfo(object): self.expected_stdout = ''.join(stdout_lines) self.expected_stderr = ''.join(stderr_lines) + if not self.cmds: + raise Error('test has no commands') + def CreateInputFile(self): gen_input_path = self.GetGeneratedInputFilename() gen_input_dir = os.path.dirname(gen_input_path) diff --git a/test/typecheck/br-table-loop.txt b/test/typecheck/br-table-loop.txt index 84026020..880a4c19 100644 --- a/test/typecheck/br-table-loop.txt +++ b/test/typecheck/br-table-loop.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (table 0 anyfunc) (memory $0 17) diff --git a/test/typecheck/if-then-br.txt b/test/typecheck/if-then-br.txt index a2df8c08..da277b94 100644 --- a/test/typecheck/if-then-br.txt +++ b/test/typecheck/if-then-br.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func block diff --git a/test/typecheck/if-value.txt b/test/typecheck/if-value.txt index 2fa1cf81..7f6b439c 100644 --- a/test/typecheck/if-value.txt +++ b/test/typecheck/if-value.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (result i32) i32.const 0 diff --git a/test/typecheck/label-redefinition.txt b/test/typecheck/label-redefinition.txt index b3d5d980..c4f98b43 100644 --- a/test/typecheck/label-redefinition.txt +++ b/test/typecheck/label-redefinition.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (result i32) block $l1 (result i32) diff --git a/test/typecheck/nested-br.txt b/test/typecheck/nested-br.txt index d95b409b..9552a916 100644 --- a/test/typecheck/nested-br.txt +++ b/test/typecheck/nested-br.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (result i32) block $outer diff --git a/test/typecheck/return-drop-value-2.txt b/test/typecheck/return-drop-value-2.txt index 029b8da9..34cd20b4 100644 --- a/test/typecheck/return-drop-value-2.txt +++ b/test/typecheck/return-drop-value-2.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func i32.const 0 diff --git a/test/typecheck/return-drop-value.txt b/test/typecheck/return-drop-value.txt index 11ecf540..60bd0200 100644 --- a/test/typecheck/return-drop-value.txt +++ b/test/typecheck/return-drop-value.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func nop diff --git a/test/typecheck/return-value.txt b/test/typecheck/return-value.txt index 6ced9aeb..e5d3f4b6 100644 --- a/test/typecheck/return-value.txt +++ b/test/typecheck/return-value.txt @@ -1,3 +1,4 @@ +;;; TOOL: wat2wasm (module (func (result i32) i32.const 1 |