diff options
Diffstat (limited to 'test/parse/expr')
71 files changed, 71 insertions, 0 deletions
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)) |