Repository files navigation # W.A.S.P
This is a highly experimental WebAssembly interpreter.
It is not suitable for usage yet.
## Latest spec test (typechecking currently disabled)
💅: 39\
💩: 214
## Failed: test-suite/test/core/address0.wast
```bash
```
## Failed: test-suite/test/core/address1.wast
```bash
```
## Failed: test-suite/test/core/address64.wast
```bash
```
## Failed: test-suite/test/core/align.wast
```bash
ERROR src/testsuite.rs:438: test 108/165 failed (module: "test-suite/test/core/align.106.wasm", invoke: "f32_align_switch", error: wrong type popped from stack (got f32, expected u32): src/runtime/methods/step.rs:392:29)
```
## Failed: test-suite/test/core/align0.wast
```bash
```
## Failed: test-suite/test/core/align64.wast
```bash
```
## Failed: test-suite/test/core/annotations.wast
```bash
ERROR src/testsuite.rs:344: failed calling wast2json: test-suite/test/core/annotations.wast:14:7: error: unexpected char
(@a , ; ] [ }} }x{ ({) ,{{};}] ;)
^
test-suite/test/core/annotations.wast:14:9: error: unexpected char
(@a , ; ] [ }} }x{ ({) ,{{};}] ;)
^
test-suite/test/core/annotations.wast:14:11: error: unexpected char
(@a , ; ] [ }} }x{ ({) ,{{};}] ;)
^
test-suite/test/core/annotations.wast:14:13: error: unexpected char
(@a , ; ] [ }} }x{ ({) ,{{};}] ;)
^
test-suite/test/core/annotations.wast:14:15: error: unexpected char
(@a , ; ] [ }} }x{ ({) ,{{};}] ;)
^
test-suite/test/core/annotations.wast:14:16: error: unexpected char
(@a , ; ] [ }} }x{ ({) ,{{};}] ;)
^
test-suite/test/core/annotations.wast:14:18: error: unexpected char
(@a , ; ] [ }} }x{ ({) ,{{};}] ;)
^
test-suite/test/core/annotations.wast:14:20: error: unexpected char
(@a , ; ] [ }} }x{ ({) ,{{};}] ;)
^
test-suite/test/core/annotations.wast:14:23: error: unexpected char
(@a , ; ] [ }} }x{ ({) ,{{};}] ;)
^
test-suite/test/core/annotations.wast:14:26: error: unexpected char
(@a , ; ] [ }} }x{ ({) ,{{};}] ;)
^
test-suite/test/core/annotations.wast:14:27: error: unexpected char
(@a , ; ] [ }} }x{ ({) ,{{};}] ;)
^
test-suite/test/core/annotations.wast:14:28: error: unexpected char
(@a , ; ] [ }} }x{ ({) ,{{};}] ;)
^
test-suite/test/core/annotations.wast:14:29: error: unexpected char
(@a , ; ] [ }} }x{ ({) ,{{};}] ;)
^
test-suite/test/core/annotations.wast:14:30: error: unexpected char
(@a , ; ] [ }} }x{ ({) ,{{};}] ;)
^
test-suite/test/core/annotations.wast:14:31: error: unexpected char
(@a , ; ] [ }} }x{ ({) ,{{};}] ;)
^
test-suite/test/core/annotations.wast:14:32: error: unexpected char
(@a , ; ] [ }} }x{ ({) ,{{};}] ;)
^
test-suite/test/core/annotations.wast:14:34: error: unexpected char
(@a , ; ] [ }} }x{ ({) ,{{};}] ;)
^
test-suite/test/core/annotations.wast:32:2: error: error in quoted module: @0x700000001: empty module
(module quote "(@a 9)") ;;
^^^^^^
test-suite/test/core/annotations.wast:33:2: error: error in quoted module: @0x200000002: empty module
(module quote "(@a a)") ;;
^^^^^^
test-suite/test/core/annotations.wast:36:2: error: error in quoted module: @0x700000001: empty module
(module quote "(@a d)") ;;
^^^^^^
test-suite/test/core/annotations.wast:55:2: error: error in quoted module: @0x700000001: empty module
(module quote "(@a \20)") ;; space
^^^^^^
test-suite/test/core/annotations.wast:100:35: error: unexpected token a, expected ).
((@a) global (@a) $g (@a) i32 (@a)) (@a)
^^^
test-suite/test/core/annotations.wast:103:54: error: unexpected token a, expected ).
((@a) table (@a) $t (@a) 10 (@a) 20 (@a) funcref (@a)) (@a)
^^^
test-suite/test/core/annotations.wast:110:28: error: unexpected token a, expected ).
((@a) param (@a) i32 (@a) f32 (@a)) (@a)
^^^
test-suite/test/core/annotations.wast:116:23: error: undefined global variable "$g"
((@a) global (@a) $g (@a)) (@a)
^^
test-suite/test/core/annotations.wast:119:22: error: undefined table variable "$t"
((@a) table (@a) $t (@a)) (@a)
^^
test-suite/test/core/annotations.wast:125:21: error: undefined function variable "$f"
((@a) func (@a) $f (@a)) (@a)
^^
test-suite/test/core/annotations.wast:133:9: error: unexpected token a, expected ).
i32 (@a)
^^^
test-suite/test/core/annotations.wast:139:13: error: unexpected token a, expected ).
funcref (@a)
^^^
test-suite/test/core/annotations.wast:149:26: error: unexpected token a, expected ).
((@a) param (@a) i32 (@a) f32 (@a)) (@a)
^^^
```
## Failed: test-suite/test/core/array.wast
```bash
```
## Failed: test-suite/test/core/array_copy.wast
```bash
```
## Failed: test-suite/test/core/array_fill.wast
```bash
```
## Failed: test-suite/test/core/array_init_data.wast
```bash
```
## Failed: test-suite/test/core/array_init_elem.wast
```bash
```
## Failed: test-suite/test/core/array_new_data.wast
```bash
```
## Failed: test-suite/test/core/array_new_elem.wast
```bash
```
## Failed: test-suite/test/core/binary0.wast
```bash
```
## Failed: test-suite/test/core/binary_leb128_64.wast
```bash
```
## Failed: test-suite/test/core/br_if.wast
```bash
ERROR src/testsuite.rs:433: test 10/119 failed (module: "test-suite/test/core/br_if.0.wasm", invoke: "as-block-first", got [--- BLOCK ---, i32(2)], but expected [i32(2)])
```
## Failed: test-suite/test/core/br_on_cast.wast
```bash
```
## Failed: test-suite/test/core/br_on_cast_fail.wast
```bash
```
## Failed: test-suite/test/core/br_on_non_null.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:400:45:
failed to load module: ParseError(File: "test-suite/test/core/br_on_non_null.0.wasm"
UnknownType(<64>), bin pos: 18, stack: [
"wasp::parser::valtype::ValType",
"alloc::vec::Vec",
"wasp::parser::resulttype::ResultType",
"wasp::parser::functype::FuncType",
"alloc::vec::Vec",
"wasp::parser::typesec::TypeSection",
"wasp::parser::module::Module",
])
Last test (1):
Module(Module { _type: MustBe!("module"), _name: None, filename: "br_on_non_null.0.wasm" })
```
## Failed: test-suite/test/core/br_on_null.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:400:45:
failed to load module: ParseError(File: "test-suite/test/core/br_on_null.0.wasm"
UnknownType(<64>), bin pos: 18, stack: [
"wasp::parser::valtype::ValType",
"alloc::vec::Vec",
"wasp::parser::resulttype::ResultType",
"wasp::parser::functype::FuncType",
"alloc::vec::Vec",
"wasp::parser::typesec::TypeSection",
"wasp::parser::module::Module",
])
Last test (1):
Module(Module { _type: MustBe!("module"), _name: None, filename: "br_on_null.0.wasm" })
```
## Failed: test-suite/test/core/br_table.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:355:6:
failed to parse test data: Error("data did not match any variant of untagged enum Case", line: 154, column: 2)
Last test (1):
Default
```
## Failed: test-suite/test/core/bulk.wast
```bash
```
## Failed: test-suite/test/core/bulk64.wast
```bash
```
## Failed: test-suite/test/core/call_indirect.wast
```bash
ERROR src/testsuite.rs:438: test 2/172 failed (module: "test-suite/test/core/call_indirect.0.wasm", invoke: "type-i32", error: indirect call type mismatch)
```
## Failed: test-suite/test/core/call_indirect64.wast
```bash
```
## Failed: test-suite/test/core/call_ref.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:400:45:
failed to load module: ParseError(File: "test-suite/test/core/call_ref.0.wasm"
UnknownType(<64>), bin pos: 30, stack: [
"wasp::parser::valtype::ValType",
"alloc::vec::Vec",
"wasp::parser::resulttype::ResultType",
"wasp::parser::functype::FuncType",
"alloc::vec::Vec",
"wasp::parser::typesec::TypeSection",
"wasp::parser::module::Module",
])
Last test (1):
Module(Module { _type: MustBe!("module"), _name: None, filename: "call_ref.0.wasm" })
```
## Failed: test-suite/test/core/comments.wast
```bash
ERROR src/testsuite.rs:433: test 6/8 failed (module: "test-suite/test/core/comments.4.wasm", invoke: "f1", got [i32(1), i32(2)], but expected [i32(2)])
```
## Failed: test-suite/test/core/data.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:400:45:
failed to load module: ParseError(File: "test-suite/test/core/data.6.wasm"
InvalidImportDesc(<7f>), bin pos: 22, stack: [
"wasp::parser::importdesc::ImportDesc",
"wasp::parser::import::Import",
"alloc::vec::Vec",
"wasp::parser::importsec::ImportSection",
"wasp::parser::module::Module",
])
Last test (7):
Module(Module { _type: MustBe!("module"), _name: None, filename: "data.6.wasm" })
```
## Failed: test-suite/test/core/data0.wast
```bash
```
## Failed: test-suite/test/core/data1.wast
```bash
```
## Failed: test-suite/test/core/data_drop0.wast
```bash
```
## Failed: test-suite/test/core/elem.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/runtime/clean_model.rs:720:25:
explicit panic
Last test (1):
Module(Module { _type: MustBe!("module"), _name: None, filename: "elem.0.wasm" })
```
## Failed: test-suite/test/core/endianness.wast
```bash
ERROR src/testsuite.rs:433: test 2/69 failed (module: "test-suite/test/core/endianness.0.wasm", invoke: "i32_load16_s", got [i32(65535)], but expected [i32(-1)])
```
## Failed: test-suite/test/core/endianness64.wast
```bash
```
## Failed: test-suite/test/core/exports.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:264:17:
not yet implemented
Last test (14):
AssertReturn(AssertReturn { _type: MustBe!("assert_return"), action: Invoke { module: Some("$Func"), field: "e", args: [I32 { value: "42" }] }, expected: [I32 { value: "43" }] })
```
## Failed: test-suite/test/core/exports0.wast
```bash
```
## Failed: test-suite/test/core/extern.wast
```bash
```
## Failed: test-suite/test/core/fac.wast
```bash
ERROR src/testsuite.rs:433: test 3/8 failed (module: "test-suite/test/core/fac.0.wasm", invoke: "fac-iter", got [i64(1)], but expected [i64(7034535277573963776)])
```
## Failed: test-suite/test/core/float_exprs.wast
```bash
ERROR src/testsuite.rs:433: test 332/927 failed (module: "test-suite/test/core/float_exprs.39.wasm", invoke: "no_demote_mixed_mul", got [i32(0)], but expected [i32(329178166)])
```
## Failed: test-suite/test/core/float_exprs0.wast
```bash
```
## Failed: test-suite/test/core/float_exprs1.wast
```bash
```
## Failed: test-suite/test/core/float_memory0.wast
```bash
```
## Failed: test-suite/test/core/float_memory64.wast
```bash
```
## Failed: test-suite/test/core/func.wast
```bash
ERROR src/testsuite.rs:433: test 57/175 failed (module: "test-suite/test/core/func.0.wasm", invoke: "break-br_if-empty", got [i32(2)], but expected [])
```
## Failed: test-suite/test/core/func_ptrs.wast
```bash
83
ERROR src/testsuite.rs:556: test 6/36 did not fail invalidating/parsing, expected error: "unknown table" (module: "test-suite/test/core/func_ptrs.1.wasm")
```
## Failed: test-suite/test/core/global.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:355:6:
failed to parse test data: Error("data did not match any variant of untagged enum Case", line: 118, column: 2)
Last test (1):
Default
```
## Failed: test-suite/test/core/i16x8_relaxed_q15mulr_s.wast
```bash
```
## Failed: test-suite/test/core/i31.wast
```bash
```
## Failed: test-suite/test/core/i32x4_relaxed_trunc.wast
```bash
```
## Failed: test-suite/test/core/i8x16_relaxed_swizzle.wast
```bash
```
## Failed: test-suite/test/core/id.wast
```bash
ERROR src/testsuite.rs:344: failed calling wast2json: test-suite/test/core/id.wast:5:9: error: unexpected token $" random
stuff ", expected ).
(func $" random
stuff ") (func (call $" random
stuff "))
^^^^^^^^^^^^^^^^^^^^^^^
test-suite/test/core/id.wast:5:46: error: unexpected token "$" random
stuff "", expected a numeric index or a name (e.g. 12 or $foo).
(func $" random
stuff ") (func (call $" random
stuff "))
^^^^^^^^^^^^^^^^^^^^^^^
test-suite/test/core/id.wast:6:9: error: unexpected token $" ".
(func $" ") (func (call $" "))
^^^^^^^^^^
test-suite/test/core/id.wast:6:33: error: unexpected token "$" "", expected a numeric index or a name (e.g. 12 or $foo).
(func $" ") (func (call $" "))
^^^^^^^^^^
test-suite/test/core/id.wast:8:26: error: unexpected token "$"fh"", expected a numeric index or a name (e.g. 12 or $foo).
(func $fh) (func (call $"fh"))
^^^^^
test-suite/test/core/id.wast:9:9: error: unexpected token $"fi".
(func $"fi") (func (call $fi))
^^^^^
test-suite/test/core/id.wast:10:49: error: unexpected token "$"!?@#a$%^&*-+_.:9'`|/\<=>~"", expected a numeric index or a name (e.g. 12 or $foo).
(func $!?@#a$%^&*-+_.:9'`|/\<=>~) (func (call $"!?@#a$%^&*-+_.:9'`|/\<=>~"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test-suite/test/core/id.wast:12:9: error: unexpected token $"\41B".
(func $"\41B") (func (call $"AB") (call $"A\42") (call $"\41\42") (call $"\...
^^^^^^^
test-suite/test/core/id.wast:12:30: error: unexpected token "$"AB"", expected a numeric index or a name (e.g. 12 or $foo).
(func $"\41B") (func (call $"AB") (call $"A\42") (call $"\41\42") (call $"\...
^^^^^
test-suite/test/core/id.wast:12:43: error: unexpected token "$"A\42"", expected a numeric index or a name (e.g. 12 or $foo).
...$"\41B") (func (call $"AB") (call $"A\42") (call $"\41\42") (call $"{41}...
^^^^^^^
test-suite/test/core/id.wast:12:58: error: unexpected token "$"\41\42"", expected a numeric index or a name (e.g. 12 or $foo).
...") (func (call $"AB") (call $"A\42") (call $"\41\42") (call $"{41}{42}"))
^^^^^^^^^
test-suite/test/core/id.wast:12:75: error: unexpected token "$"{41}{42}"", expected a numeric index or a name (e.g. 12 or $foo).
...") (func (call $"AB") (call $"A\42") (call $"\41\42") (call $"{41}{42}"))
^^^^^^^^^^^^^^^
test-suite/test/core/id.wast:13:9: error: unexpected token $" ".
(func $" ") (func (call $"9") (call $"{09}"))
^^^^^
test-suite/test/core/id.wast:13:28: error: unexpected token "$"9"", expected a numeric index or a name (e.g. 12 or $foo).
(func $" ") (func (call $"9") (call $"{09}"))
^^^^^^
test-suite/test/core/id.wast:13:42: error: unexpected token "$"{09}"", expected a numeric index or a name (e.g. 12 or $foo).
(func $" ") (func (call $"9") (call $"{09}"))
^^^^^^^^^
test-suite/test/core/id.wast:14:9: error: unexpected token $"".
(func $"") (func (call $"�f\98\9a�f\92�9") (call $"{f61a}{f4a9...
^^^^^^^^^
test-suite/test/core/id.wast:14:32: error: unexpected token "$"�f\98\9a�f\92�9"", expected a numeric index or a name (e.g. 12 or $foo).
...unc $"") (func (call $"�f\98\9a�f\92�9") (call $"{f61a}{f4a9}"))
^^^^^^^^^^^^^^^^^^^^^
test-suite/test/core/id.wast:14:61: error: unexpected token "$"{f61a}{f4a9}"", expected a numeric index or a name (e.g. 12 or $foo).
...unc $"") (func (call $"�f\98\9a�f\92�9") (call $"{f61a}{f4a9}"))
^^^^^^^^^^^^^^^^^^^
test-suite/test/core/id.wast:17:19: error: unexpected token "$"l1"", expected a numeric index or a name (e.g. 12 or $foo).
block $l1 (br $"l1") end $"l1"
^^^^^
test-suite/test/core/id.wast:17:30: error: unexpected token $"l1".
block $l1 (br $"l1") end $"l1"
^^^^^
test-suite/test/core/id.wast:18:20: error: unexpected token "$"007"", expected a numeric index or a name (e.g. 12 or $foo).
block $007 (br $"007") end $"007"
^^^^^^
test-suite/test/core/id.wast:18:32: error: unexpected token $"007".
block $007 (br $"007") end $"007"
^^^^^^
test-suite/test/core/id.wast:19:42: error: unexpected token $"!?@#a$%^&*-+_.:9'`|/\<=>~", expected end.
block $!?@#a$%^&*-+_.:9'`|/\<=>~ end $"!?@#a$%^&*-+_.:9'`|/\<=>~"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test-suite/test/core/id.wast:20:22: error: unexpected token $"\41B", expected end.
(i32.const 0) if $"\41B" (br $AB) else $"A\42" end $"{41}{42}"
^^^^^^^
test-suite/test/core/id.wast:20:39: error: unexpected token else, expected end.
(i32.const 0) if $"\41B" (br $AB) else $"A\42" end $"{41}{42}"
^^^^
test-suite/test/core/id.wast:20:44: error: unexpected token $"A\42".
(i32.const 0) if $"\41B" (br $AB) else $"A\42" end $"{41}{42}"
^^^^^^^
test-suite/test/core/id.wast:20:56: error: unexpected token $"{41}{42}".
(i32.const 0) if $"\41B" (br $AB) else $"A\42" end $"{41}{42}"
^^^^^^^^^^^^^^^
test-suite/test/core/id.wast:21:22: error: unexpected token $" ", expected end.
(i32.const 0) if $" " else $"9" end $"{09}"
^^^^^
test-suite/test/core/id.wast:21:33: error: unexpected token $"9".
(i32.const 0) if $" " else $"9" end $"{09}"
^^^^^^
test-suite/test/core/id.wast:21:44: error: unexpected token $"{09}".
(i32.const 0) if $" " else $"9" end $"{09}"
^^^^^^^^^
test-suite/test/core/id.wast:22:22: error: unexpected token $" ", expected end.
(i32.const 0) if $" " else $"�f\98\9a�f\92�9 " end $"{f61a}{...
^^^^^^^^^^
test-suite/test/core/id.wast:22:38: error: unexpected token $"�f\98\9a�f\92�9 ".
...2.const 0) if $" " else $"�f\98\9a�f\92�9 " end $"{f61a}{f4a9} "
^^^^^^^^^^^^^^^^^^^^^^
test-suite/test/core/id.wast:22:65: error: unexpected token $"{f61a}{f4a9} ".
...2.const 0) if $" " else $"�f\98\9a�f\92�9 " end $"{f61a}{f4a9} "
^^^^^^^^^^^^^^^^^^^^
```
## Failed: test-suite/test/core/if.wast
```bash
ERROR src/testsuite.rs:433: test 38/241 failed (module: "test-suite/test/core/if.0.wasm", invoke: "as-br_if-last", got [--- BLOCK ---, i32(2), i32(3)], but expected [i32(3)])
```
## Failed: test-suite/test/core/imports.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:400:45:
failed to load module: ParseError(File: "test-suite/test/core/imports.0.wasm"
InvalidSection(UnknownHeader(<0d>)), bin pos: 51, stack: [
"wasp::parser::module::Module",
])
Last test (1):
Module(Module { _type: MustBe!("module"), _name: None, filename: "imports.0.wasm" })
```
## Failed: test-suite/test/core/imports0.wast
```bash
```
## Failed: test-suite/test/core/imports1.wast
```bash
```
## Failed: test-suite/test/core/imports2.wast
```bash
```
## Failed: test-suite/test/core/imports3.wast
```bash
```
## Failed: test-suite/test/core/imports4.wast
```bash
```
## Failed: test-suite/test/core/instance.wast
```bash
ERROR src/testsuite.rs:344: failed calling wast2json: test-suite/test/core/instance.wast:3:9: error: unexpected token "definition", expected a module field.
(module definition $M
^^^^^^^^^^
```
## Failed: test-suite/test/core/labels.wast
```bash
ERROR src/testsuite.rs:433: test 3/29 failed (module: "test-suite/test/core/labels.0.wasm", invoke: "loop1", got [i32(1)], but expected [i32(5)])
```
## Failed: test-suite/test/core/left-to-right.wast
```bash
ERROR src/testsuite.rs:438: test 57/96 failed (module: "test-suite/test/core/left-to-right.0.wasm", invoke: "i32_call_indirect", error: indirect call type mismatch)
```
## Failed: test-suite/test/core/linking.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:641:21:
not yet implemented: Register: "Mf" $Mf
Last test (2):
Register(Register { _type: MustBe!("register"), name: Some("$Mf"), _as: "Mf" })
```
## Failed: test-suite/test/core/linking0.wast
```bash
```
## Failed: test-suite/test/core/linking1.wast
```bash
```
## Failed: test-suite/test/core/linking2.wast
```bash
```
## Failed: test-suite/test/core/linking3.wast
```bash
```
## Failed: test-suite/test/core/load0.wast
```bash
```
## Failed: test-suite/test/core/load1.wast
```bash
```
## Failed: test-suite/test/core/load2.wast
```bash
```
## Failed: test-suite/test/core/load64.wast
```bash
```
## Failed: test-suite/test/core/local_get.wast
```bash
ERROR src/testsuite.rs:433: test 15/36 failed (module: "test-suite/test/core/local_get.0.wasm", invoke: "as-br_table-value", got [--- BLOCK ---, i32(2)], but expected [i32(2)])
```
## Failed: test-suite/test/core/local_init.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:400:45:
failed to load module: ParseError(File: "test-suite/test/core/local_init.0.wasm"
UnknownType(<64>), bin pos: 14, stack: [
"wasp::parser::valtype::ValType",
"alloc::vec::Vec",
"wasp::parser::resulttype::ResultType",
"wasp::parser::functype::FuncType",
"alloc::vec::Vec",
"wasp::parser::typesec::TypeSection",
"wasp::parser::module::Module",
])
Last test (1):
Module(Module { _type: MustBe!("module"), _name: None, filename: "local_init.0.wasm" })
```
## Failed: test-suite/test/core/local_set.wast
```bash
ERROR src/testsuite.rs:438: test 20/53 failed (module: "test-suite/test/core/local_set.0.wasm", invoke: "write", error: wrong type popped from stack (got f32, expected u64): src/runtime/methods/step.rs:1429:25)
```
## Failed: test-suite/test/core/local_tee.wast
```bash
ERROR src/testsuite.rs:438: test 55/98 failed (module: "test-suite/test/core/local_tee.0.wasm", invoke: "write", error: wrong type popped from stack (got f32, expected u64): src/runtime/methods/step.rs:1429:25)
```
## Failed: test-suite/test/core/loop.wast
```bash
ERROR src/testsuite.rs:433: test 40/121 failed (module: "test-suite/test/core/loop.0.wasm", invoke: "break-multi-value", got [i32(0), i32(0), i64(0)], but expected [i32(18), i32(-18), i64(18)])
```
## Failed: test-suite/test/core/memory-multi.wast
```bash
```
## Failed: test-suite/test/core/memory.wast
```bash
ERROR src/testsuite.rs:344: failed calling wast2json: test-suite/test/core/memory.wast:8:9: error: unexpected token "definition", expected a module field.
(module definition (memory 65536))
^^^^^^^^^^
test-suite/test/core/memory.wast:78:19: error: invalid int "0x1_0000_0000"
(module (memory 0x1_0000_0000))
^^^^^^^^^^^^^
test-suite/test/core/memory.wast:82:19: error: invalid int "0x1_0000_0000"
(module (memory 0x1_0000_0000 0x1_0000_0000))
^^^^^^^^^^^^^
test-suite/test/core/memory.wast:82:33: error: invalid int "0x1_0000_0000"
(module (memory 0x1_0000_0000 0x1_0000_0000))
^^^^^^^^^^^^^
test-suite/test/core/memory.wast:86:21: error: invalid int "0x1_0000_0000"
(module (memory 0 0x1_0000_0000))
^^^^^^^^^^^^^
test-suite/test/core/memory.wast:91:36: error: invalid int "0x1_0000_0000"
(module (memory (import "M" "m") 0x1_0000_0000))
^^^^^^^^^^^^^
test-suite/test/core/memory.wast:95:36: error: invalid int "0x1_0000_0000"
(module (memory (import "M" "m") 0x1_0000_0000 0x1_0000_0000))
^^^^^^^^^^^^^
test-suite/test/core/memory.wast:95:50: error: invalid int "0x1_0000_0000"
(module (memory (import "M" "m") 0x1_0000_0000 0x1_0000_0000))
^^^^^^^^^^^^^
test-suite/test/core/memory.wast:99:38: error: invalid int "0x1_0000_0000"
(module (memory (import "M" "m") 0 0x1_0000_0000))
^^^^^^^^^^^^^
```
## Failed: test-suite/test/core/memory64-imports.wast
```bash
```
## Failed: test-suite/test/core/memory64.wast
```bash
```
## Failed: test-suite/test/core/memory_copy.wast
```bash
```
## Failed: test-suite/test/core/memory_copy0.wast
```bash
```
## Failed: test-suite/test/core/memory_copy1.wast
```bash
```
## Failed: test-suite/test/core/memory_copy64.wast
```bash
```
## Failed: test-suite/test/core/memory_fill.wast
```bash
```
## Failed: test-suite/test/core/memory_fill0.wast
```bash
```
## Failed: test-suite/test/core/memory_fill64.wast
```bash
```
## Failed: test-suite/test/core/memory_grow.wast
```bash
ERROR src/testsuite.rs:433: test 32/106 failed (module: "test-suite/test/core/memory_grow.3.wasm", invoke: "size", got [i32(65535)], but expected [i32(0)])
```
## Failed: test-suite/test/core/memory_grow64.wast
```bash
```
## Failed: test-suite/test/core/memory_init.wast
```bash
```
## Failed: test-suite/test/core/memory_init0.wast
```bash
```
## Failed: test-suite/test/core/memory_init64.wast
```bash
```
## Failed: test-suite/test/core/memory_redundancy64.wast
```bash
```
## Failed: test-suite/test/core/memory_size.wast
```bash
ERROR src/testsuite.rs:433: test 2/42 failed (module: "test-suite/test/core/memory_size.0.wasm", invoke: "size", got [i32(65535)], but expected [i32(0)])
```
## Failed: test-suite/test/core/memory_size0.wast
```bash
```
## Failed: test-suite/test/core/memory_size1.wast
```bash
```
## Failed: test-suite/test/core/memory_size2.wast
```bash
```
## Failed: test-suite/test/core/memory_size_import.wast
```bash
```
## Failed: test-suite/test/core/memory_trap.wast
```bash
ERROR src/testsuite.rs:438: test 2/182 failed (module: "test-suite/test/core/memory_trap.0.wasm", invoke: "store", error: out of bounds memory access)
```
## Failed: test-suite/test/core/memory_trap0.wast
```bash
```
## Failed: test-suite/test/core/memory_trap1.wast
```bash
```
## Failed: test-suite/test/core/memory_trap64.wast
```bash
```
## Failed: test-suite/test/core/names.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:400:45:
failed to load module: ParseError(File: "test-suite/test/core/names.3.wasm"
InvalidImportDesc(<7f>), bin pos: 34, stack: [
"wasp::parser::importdesc::ImportDesc",
"wasp::parser::import::Import",
"alloc::vec::Vec",
"wasp::parser::importsec::ImportSection",
"wasp::parser::module::Module",
])
Last test (485):
Module(Module { _type: MustBe!("module"), _name: None, filename: "names.3.wasm" })
```
## Failed: test-suite/test/core/ref.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:400:45:
failed to load module: ParseError(File: "test-suite/test/core/ref.0.wasm"
UnknownType(<64>), bin pos: 19, stack: [
"wasp::parser::valtype::ValType",
"alloc::vec::Vec",
"wasp::parser::resulttype::ResultType",
"wasp::parser::functype::FuncType",
"alloc::vec::Vec",
"wasp::parser::typesec::TypeSection",
"wasp::parser::module::Module",
])
Last test (1):
Module(Module { _type: MustBe!("module"), _name: None, filename: "ref.0.wasm" })
```
## Failed: test-suite/test/core/ref_as_non_null.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:400:45:
failed to load module: ParseError(File: "test-suite/test/core/ref_as_non_null.0.wasm"
UnknownType(<64>), bin pos: 18, stack: [
"wasp::parser::valtype::ValType",
"alloc::vec::Vec",
"wasp::parser::resulttype::ResultType",
"wasp::parser::functype::FuncType",
"alloc::vec::Vec",
"wasp::parser::typesec::TypeSection",
"wasp::parser::module::Module",
])
Last test (1):
Module(Module { _type: MustBe!("module"), _name: None, filename: "ref_as_non_null.0.wasm" })
```
## Failed: test-suite/test/core/ref_cast.wast
```bash
```
## Failed: test-suite/test/core/ref_eq.wast
```bash
```
## Failed: test-suite/test/core/ref_func.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:400:45:
failed to load module: ParseError(File: "test-suite/test/core/ref_func.1.wasm"
UnknownInstruction(), bin pos: 224, stack: [
"wasp::parser::instr::Instr",
"wasp::parser::expr::Expr",
"wasp::parser::func::Func",
"wasp::parser::code::Code",
"alloc::vec::Vec",
"wasp::parser::codesec::CodeSection",
"wasp::parser::module::Module",
])
Last test (3):
Module(Module { _type: MustBe!("module"), _name: None, filename: "ref_func.1.wasm" })
```
## Failed: test-suite/test/core/ref_is_null.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:355:6:
failed to parse test data: Error("data did not match any variant of untagged enum Case", line: 5, column: 2)
Last test (1):
Default
```
## Failed: test-suite/test/core/ref_null.wast
```bash
ERROR src/testsuite.rs:344: failed calling wast2json: test-suite/test/core/ref_null.wast:3:35: error: unexpected token anyref, expected ).
(func (export "anyref") (result anyref) (ref.null any))
^^^^^^
test-suite/test/core/ref_null.wast:3:53: error: unexpected token any.
(func (export "anyref") (result anyref) (ref.null any))
^^^
test-suite/test/core/ref_null.wast:9:11: error: unexpected token "anyref", expected i32, i64, f32, f64, v128, externref, exnref or funcref.
(global anyref (ref.null any))
^^^^^^
test-suite/test/core/ref_null.wast:9:28: error: unexpected token any.
(global anyref (ref.null any))
^^^
test-suite/test/core/ref_null.wast:16:44: error: unexpected token "any", expected func, extern or exn.
(assert_return (invoke "anyref") (ref.null any))
^^^
test-suite/test/core/ref_null.wast:25:17: error: unexpected token "nullref", expected i32, i64, f32, f64, v128, externref, exnref or funcref.
(global $null nullref (ref.null none))
^^^^^^^
test-suite/test/core/ref_null.wast:25:35: error: unexpected token none.
(global $null nullref (ref.null none))
^^^^
test-suite/test/core/ref_null.wast:26:21: error: unexpected token "nullfuncref", expected i32, i64, f32, f64, v128, externref, exnref or funcref.
(global $nullfunc nullfuncref (ref.null nofunc))
^^^^^^^^^^^
test-suite/test/core/ref_null.wast:26:43: error: unexpected token nofunc.
(global $nullfunc nullfuncref (ref.null nofunc))
^^^^^^
test-suite/test/core/ref_null.wast:27:20: error: unexpected token "nullexnref", expected i32, i64, f32, f64, v128, externref, exnref or funcref.
(global $nullexn nullexnref (ref.null noexn))
^^^^^^^^^^
test-suite/test/core/ref_null.wast:27:41: error: unexpected token noexn.
(global $nullexn nullexnref (ref.null noexn))
^^^^^
test-suite/test/core/ref_null.wast:28:23: error: unexpected token "nullexternref", expected i32, i64, f32, f64, v128, externref, exnref or funcref.
(global $nullextern nullexternref (ref.null noextern))
^^^^^^^^^^^^^
test-suite/test/core/ref_null.wast:28:47: error: unexpected token noextern.
(global $nullextern nullexternref (ref.null noextern))
^^^^^^^^
test-suite/test/core/ref_null.wast:29:35: error: unexpected token anyref, expected ).
(func (export "anyref") (result anyref) (global.get $null))
^^^^^^
test-suite/test/core/ref_null.wast:30:36: error: unexpected token nullref, expected ).
(func (export "nullref") (result nullref) (global.get $null))
^^^^^^^
test-suite/test/core/ref_null.wast:32:40: error: unexpected token nullfuncref, expected ).
(func (export "nullfuncref") (result nullfuncref) (global.get $nullfunc))
^^^^^^^^^^^
test-suite/test/core/ref_null.wast:34:39: error: unexpected token nullexnref, expected ).
(func (export "nullexnref") (result nullexnref) (global.get $nullexn))
^^^^^^^^^^
test-suite/test/core/ref_null.wast:36:42: error: unexpected token nullexternref, expected ).
...unc (export "nullexternref") (result nullexternref) (global.get $nullextern))
^^^^^^^^^^^^^
test-suite/test/core/ref_null.wast:39:11: error: unexpected token "anyref", expected i32, i64, f32, f64, v128, externref, exnref or funcref.
(global anyref (ref.null any))
^^^^^^
test-suite/test/core/ref_null.wast:39:28: error: unexpected token any.
(global anyref (ref.null any))
^^^
test-suite/test/core/ref_null.wast:40:11: error: unexpected token "anyref", expected i32, i64, f32, f64, v128, externref, exnref or funcref.
(global anyref (ref.null none))
^^^^^^
test-suite/test/core/ref_null.wast:40:28: error: unexpected token none.
(global anyref (ref.null none))
^^^^
test-suite/test/core/ref_null.wast:42:29: error: unexpected token "nofunc", expected func, extern or exn.
(global funcref (ref.null nofunc))
^^^^^^
test-suite/test/core/ref_null.wast:44:28: error: unexpected token "noexn", expected func, extern or exn.
(global exnref (ref.null noexn))
^^^^^
test-suite/test/core/ref_null.wast:46:31: error: unexpected token "noextern", expected func, extern or exn.
(global externref (ref.null noextern))
^^^^^^^^
test-suite/test/core/ref_null.wast:47:11: error: unexpected token nullref.
(global nullref (ref.null none))
^^^^^^^
test-suite/test/core/ref_null.wast:47:29: error: unexpected token "none", expected func, extern or exn.
(global nullref (ref.null none))
^^^^
test-suite/test/core/ref_null.wast:48:11: error: unexpected token nullfuncref.
(global nullfuncref (ref.null nofunc))
^^^^^^^^^^^
test-suite/test/core/ref_null.wast:48:33: error: unexpected token "nofunc", expected func, extern or exn.
(global nullfuncref (ref.null nofunc))
^^^^^^
test-suite/test/core/ref_null.wast:49:11: error: unexpected token nullexnref.
(global nullexnref (ref.null noexn))
^^^^^^^^^^
test-suite/test/core/ref_null.wast:49:32: error: unexpected token "noexn", expected func, extern or exn.
(global nullexnref (ref.null noexn))
^^^^^
test-suite/test/core/ref_null.wast:50:11: error: unexpected token nullexternref.
(global nullexternref (ref.null noextern))
^^^^^^^^^^^^^
test-suite/test/core/ref_null.wast:50:35: error: unexpected token "noextern", expected func, extern or exn.
(global nullexternref (ref.null noextern))
^^^^^^^^
test-suite/test/core/ref_null.wast:52:35: error: unexpected token "nofunc", expected func, extern or exn.
(global (ref null $t) (ref.null nofunc))
^^^^^^
test-suite/test/core/ref_null.wast:55:44: error: unexpected token "any", expected func, extern or exn.
(assert_return (invoke "anyref") (ref.null any))
^^^
test-suite/test/core/ref_null.wast:56:44: error: unexpected token "none", expected func, extern or exn.
(assert_return (invoke "anyref") (ref.null none))
^^^^
test-suite/test/core/ref_null.wast:57:43: error: unexpected token ")", expected func, extern or exn.
(assert_return (invoke "anyref") (ref.null))
^
test-suite/test/core/ref_null.wast:58:45: error: unexpected token "any", expected func, extern or exn.
(assert_return (invoke "nullref") (ref.null any))
^^^
test-suite/test/core/ref_null.wast:59:45: error: unexpected token "none", expected func, extern or exn.
(assert_return (invoke "nullref") (ref.null none))
^^^^
test-suite/test/core/ref_null.wast:60:44: error: unexpected token ")", expected func, extern or exn.
(assert_return (invoke "nullref") (ref.null))
^
test-suite/test/core/ref_null.wast:31:57: error: undefined global variable "$nullfunc"
(func (export "funcref") (result funcref) (global.get $nullfunc))
^^^^^^^^^
test-suite/test/core/ref_null.wast:33:55: error: undefined global variable "$nullexn"
(func (export "exnref") (result exnref) (global.get $nullexn))
^^^^^^^^
test-suite/test/core/ref_null.wast:35:61: error: undefined global variable "$nullextern"
(func (export "externref") (result externref) (global.get $nullextern))
^^^^^^^^^^^
test-suite/test/core/ref_null.wast:37:59: error: undefined global variable "$nullfunc"
(func (export "ref") (result (ref null $t)) (global.get $nullfunc))
^^^^^^^^^
test-suite/test/core/ref_null.wast:62:45: error: unexpected token "nofunc", expected func, extern or exn.
(assert_return (invoke "funcref") (ref.null nofunc))
^^^^^^
test-suite/test/core/ref_null.wast:65:49: error: unexpected token "nofunc", expected func, extern or exn.
(assert_return (invoke "nullfuncref") (ref.null nofunc))
^^^^^^
test-suite/test/core/ref_null.wast:68:44: error: unexpected token "noexn", expected func, extern or exn.
(assert_return (invoke "exnref") (ref.null noexn))
^^^^^
test-suite/test/core/ref_null.wast:71:48: error: unexpected token "noexn", expected func, extern or exn.
(assert_return (invoke "nullexnref") (ref.null noexn))
^^^^^
test-suite/test/core/ref_null.wast:74:47: error: unexpected token "noextern", expected func, extern or exn.
(assert_return (invoke "externref") (ref.null noextern))
^^^^^^^^
test-suite/test/core/ref_null.wast:77:51: error: unexpected token "noextern", expected func, extern or exn.
(assert_return (invoke "nullexternref") (ref.null noextern))
^^^^^^^^
test-suite/test/core/ref_null.wast:80:41: error: unexpected token "nofunc", expected func, extern or exn.
(assert_return (invoke "ref") (ref.null nofunc))
^^^^^^
```
## Failed: test-suite/test/core/ref_test.wast
```bash
```
## Failed: test-suite/test/core/relaxed_dot_product.wast
```bash
```
## Failed: test-suite/test/core/relaxed_laneselect.wast
```bash
```
## Failed: test-suite/test/core/relaxed_madd_nmadd.wast
```bash
```
## Failed: test-suite/test/core/relaxed_min_max.wast
```bash
```
## Failed: test-suite/test/core/return.wast
```bash
ERROR src/testsuite.rs:433: test 6/84 failed (module: "test-suite/test/core/return.0.wasm", invoke: "type-i32-value", got [--- BLOCK ---, i32(1)], but expected [i32(1)])
```
## Failed: test-suite/test/core/return_call.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:400:45:
failed to load module: ParseError(File: "test-suite/test/core/return_call.0.wasm"
UnknownInstruction(<12>), bin pos: 500, stack: [
"wasp::parser::instr::Instr",
"wasp::parser::expr::Expr",
"wasp::parser::func::Func",
"wasp::parser::code::Code",
"alloc::vec::Vec",
"wasp::parser::codesec::CodeSection",
"wasp::parser::module::Module",
])
Last test (1):
Module(Module { _type: MustBe!("module"), _name: None, filename: "return_call.0.wasm" })
```
## Failed: test-suite/test/core/return_call_indirect.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:400:45:
failed to load module: ParseError(File: "test-suite/test/core/return_call_indirect.0.wasm"
UnknownInstruction(<12>), bin pos: 781, stack: [
"wasp::parser::instr::Instr",
"wasp::parser::expr::Expr",
"wasp::parser::func::Func",
"wasp::parser::code::Code",
"alloc::vec::Vec",
"wasp::parser::codesec::CodeSection",
"wasp::parser::module::Module",
])
Last test (1):
Module(Module { _type: MustBe!("module"), _name: None, filename: "return_call_indirect.0.wasm" })
```
## Failed: test-suite/test/core/return_call_ref.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:400:45:
failed to load module: ParseError(File: "test-suite/test/core/return_call_ref.0.wasm"
UnknownType(<64>), bin pos: 116, stack: [
"wasp::parser::valtype::ValType",
"wasp::parser::globaltype::GlobalType",
"wasp::parser::global::Global",
"alloc::vec::Vec",
"wasp::parser::globalsec::GlobalSection",
"wasp::parser::module::Module",
])
Last test (1):
Module(Module { _type: MustBe!("module"), _name: None, filename: "return_call_ref.0.wasm" })
```
## Failed: test-suite/test/core/select.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:355:6:
failed to parse test data: Error("data did not match any variant of untagged enum Case", line: 33, column: 2)
Last test (1):
Default
```
## Failed: test-suite/test/core/simd_address.wast
```bash
```
## Failed: test-suite/test/core/simd_align.wast
```bash
```
## Failed: test-suite/test/core/simd_bit_shift.wast
```bash
```
## Failed: test-suite/test/core/simd_bitwise.wast
```bash
```
## Failed: test-suite/test/core/simd_boolean.wast
```bash
```
## Failed: test-suite/test/core/simd_const.wast
```bash
```
## Failed: test-suite/test/core/simd_conversions.wast
```bash
```
## Failed: test-suite/test/core/simd_f32x4.wast
```bash
```
## Failed: test-suite/test/core/simd_f32x4_arith.wast
```bash
```
## Failed: test-suite/test/core/simd_f32x4_cmp.wast
```bash
```
## Failed: test-suite/test/core/simd_f32x4_pmin_pmax.wast
```bash
```
## Failed: test-suite/test/core/simd_f32x4_rounding.wast
```bash
```
## Failed: test-suite/test/core/simd_f64x2.wast
```bash
```
## Failed: test-suite/test/core/simd_f64x2_arith.wast
```bash
```
## Failed: test-suite/test/core/simd_f64x2_cmp.wast
```bash
```
## Failed: test-suite/test/core/simd_f64x2_pmin_pmax.wast
```bash
```
## Failed: test-suite/test/core/simd_f64x2_rounding.wast
```bash
```
## Failed: test-suite/test/core/simd_i16x8_arith.wast
```bash
```
## Failed: test-suite/test/core/simd_i16x8_arith2.wast
```bash
```
## Failed: test-suite/test/core/simd_i16x8_cmp.wast
```bash
```
## Failed: test-suite/test/core/simd_i16x8_extadd_pairwise_i8x16.wast
```bash
```
## Failed: test-suite/test/core/simd_i16x8_extmul_i8x16.wast
```bash
```
## Failed: test-suite/test/core/simd_i16x8_q15mulr_sat_s.wast
```bash
```
## Failed: test-suite/test/core/simd_i16x8_sat_arith.wast
```bash
```
## Failed: test-suite/test/core/simd_i32x4_arith.wast
```bash
```
## Failed: test-suite/test/core/simd_i32x4_arith2.wast
```bash
```
## Failed: test-suite/test/core/simd_i32x4_cmp.wast
```bash
```
## Failed: test-suite/test/core/simd_i32x4_dot_i16x8.wast
```bash
```
## Failed: test-suite/test/core/simd_i32x4_extadd_pairwise_i16x8.wast
```bash
```
## Failed: test-suite/test/core/simd_i32x4_extmul_i16x8.wast
```bash
```
## Failed: test-suite/test/core/simd_i32x4_trunc_sat_f32x4.wast
```bash
```
## Failed: test-suite/test/core/simd_i32x4_trunc_sat_f64x2.wast
```bash
```
## Failed: test-suite/test/core/simd_i64x2_arith.wast
```bash
```
## Failed: test-suite/test/core/simd_i64x2_arith2.wast
```bash
```
## Failed: test-suite/test/core/simd_i64x2_cmp.wast
```bash
```
## Failed: test-suite/test/core/simd_i64x2_extmul_i32x4.wast
```bash
```
## Failed: test-suite/test/core/simd_i8x16_arith.wast
```bash
```
## Failed: test-suite/test/core/simd_i8x16_arith2.wast
```bash
```
## Failed: test-suite/test/core/simd_i8x16_cmp.wast
```bash
```
## Failed: test-suite/test/core/simd_i8x16_sat_arith.wast
```bash
```
## Failed: test-suite/test/core/simd_int_to_int_extend.wast
```bash
```
## Failed: test-suite/test/core/simd_lane.wast
```bash
```
## Failed: test-suite/test/core/simd_linking.wast
```bash
```
## Failed: test-suite/test/core/simd_load.wast
```bash
```
## Failed: test-suite/test/core/simd_load16_lane.wast
```bash
```
## Failed: test-suite/test/core/simd_load32_lane.wast
```bash
```
## Failed: test-suite/test/core/simd_load64_lane.wast
```bash
```
## Failed: test-suite/test/core/simd_load8_lane.wast
```bash
```
## Failed: test-suite/test/core/simd_load_extend.wast
```bash
```
## Failed: test-suite/test/core/simd_load_splat.wast
```bash
```
## Failed: test-suite/test/core/simd_load_zero.wast
```bash
```
## Failed: test-suite/test/core/simd_memory-multi.wast
```bash
```
## Failed: test-suite/test/core/simd_select.wast
```bash
```
## Failed: test-suite/test/core/simd_splat.wast
```bash
```
## Failed: test-suite/test/core/simd_store.wast
```bash
```
## Failed: test-suite/test/core/simd_store16_lane.wast
```bash
```
## Failed: test-suite/test/core/simd_store32_lane.wast
```bash
```
## Failed: test-suite/test/core/simd_store64_lane.wast
```bash
```
## Failed: test-suite/test/core/simd_store8_lane.wast
```bash
```
## Failed: test-suite/test/core/stack.wast
```bash
ERROR src/testsuite.rs:433: test 2/7 failed (module: "test-suite/test/core/stack.0.wasm", invoke: "fac-expr", got [i64(1)], but expected [i64(7034535277573963776)])
```
## Failed: test-suite/test/core/start0.wast
```bash
```
## Failed: test-suite/test/core/store0.wast
```bash
```
## Failed: test-suite/test/core/store1.wast
```bash
```
## Failed: test-suite/test/core/store2.wast
```bash
```
## Failed: test-suite/test/core/struct.wast
```bash
```
## Failed: test-suite/test/core/switch.wast
```bash
ERROR src/testsuite.rs:433: test 2/28 failed (module: "test-suite/test/core/switch.0.wasm", invoke: "stmt", got [--- BLOCK ---, --- BLOCK ---, --- BLOCK ---, --- BLOCK ---, --- BLOCK ---, --- BLOCK ---, --- BLOCK ---, --- BLOCK ---, --- BLOCK ---, i32(0)], but expected [i32(0)])
```
## Failed: test-suite/test/core/table-sub.wast
```bash
```
## Failed: test-suite/test/core/table.wast
```bash
ERROR src/testsuite.rs:344: failed calling wast2json: test-suite/test/core/table.wast:9:9: error: unexpected token "definition", expected a module field.
(module definition (table 0xffff_ffff funcref))
^^^^^^^^^^
```
## Failed: test-suite/test/core/table64.wast
```bash
```
## Failed: test-suite/test/core/table_copy.wast
```bash
```
## Failed: test-suite/test/core/table_copy64.wast
```bash
```
## Failed: test-suite/test/core/table_copy_mixed.wast
```bash
```
## Failed: test-suite/test/core/table_fill.wast
```bash
```
## Failed: test-suite/test/core/table_fill64.wast
```bash
```
## Failed: test-suite/test/core/table_get.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:355:6:
failed to parse test data: Error("data did not match any variant of untagged enum Case", line: 8, column: 2)
Last test (1):
Default
```
## Failed: test-suite/test/core/table_get64.wast
```bash
```
## Failed: test-suite/test/core/table_grow.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:355:6:
failed to parse test data: Error("data did not match any variant of untagged enum Case", line: 44, column: 2)
Last test (1):
Default
```
## Failed: test-suite/test/core/table_grow64.wast
```bash
```
## Failed: test-suite/test/core/table_init.wast
```bash
```
## Failed: test-suite/test/core/table_init64.wast
```bash
```
## Failed: test-suite/test/core/table_set.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:355:6:
failed to parse test data: Error("data did not match any variant of untagged enum Case", line: 10, column: 2)
Last test (1):
Default
```
## Failed: test-suite/test/core/table_set64.wast
```bash
```
## Failed: test-suite/test/core/table_size.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/runtime/methods/step.rs:1762:17:
not implemented: instruction not supported : xfc_16_table_size(TableIdX(0))
Last test (2):
AssertReturn(AssertReturn { _type: MustBe!("assert_return"), action: Invoke { module: None, field: "size-t0", args: [] }, expected: [I32 { value: "0" }] })
```
## Failed: test-suite/test/core/table_size64.wast
```bash
```
## Failed: test-suite/test/core/traps0.wast
```bash
```
## Failed: test-suite/test/core/type-canon.wast
```bash
ERROR src/testsuite.rs:344: failed calling wast2json: test-suite/test/core/type-canon.wast:2:4: error: unexpected token "rec", expected a module field.
(rec
^^^
```
## Failed: test-suite/test/core/type-equivalence.wast
```bash
ERROR src/testsuite.rs:344: failed calling wast2json: test-suite/test/core/type-equivalence.wast:31:4: error: unexpected token "rec", expected a module field.
(rec (type $t1 (func (param i32 (ref $t1)))))
^^^
```
## Failed: test-suite/test/core/type-rec.wast
```bash
ERROR src/testsuite.rs:344: failed calling wast2json: test-suite/test/core/type-rec.wast:5:3: error: unexpected token (, expected ).
(rec
^
test-suite/test/core/type-rec.wast:5:4: error: unexpected token rec.
(rec
^^^
```
## Failed: test-suite/test/core/type-subtyping.wast
```bash
```
## Failed: test-suite/test/core/unreachable.wast
```bash
ERROR src/testsuite.rs:500: test 34/64 did not fail, expected error: "unreachable" (module: "test-suite/test/core/unreachable.0.wasm", function "as-if-then-no-else")
```
## Failed: test-suite/test/core/unreached-invalid.wast
```bash
ERROR src/testsuite.rs:556: test 1/121 did not fail invalidating/parsing, expected error: "unknown local" (module: "test-suite/test/core/unreached-invalid.0.wasm")
```
## Failed: test-suite/test/core/unreached-valid.wast
```bash
ERROR src/testsuite.rs:323: oops the test-suite panicked!
Reason:
panicked at src/testsuite.rs:400:45:
failed to load module: ParseError(File: "test-suite/test/core/unreached-valid.0.wasm"
UnknownInstruction(), bin pos: 303, stack: [
"wasp::parser::instr::Instr",
"wasp::parser::expr::Expr",
"wasp::parser::func::Func",
"wasp::parser::code::Code",
"alloc::vec::Vec",
"wasp::parser::codesec::CodeSection",
"wasp::parser::module::Module",
])
Last test (1):
Module(Module { _type: MustBe!("module"), _name: None, filename: "unreached-valid.0.wasm" })
```
## Failed: test-suite/test/core/unwind.wast
```bash
ERROR src/testsuite.rs:433: test 3/50 failed (module: "test-suite/test/core/unwind.0.wasm", invoke: "func-unwind-by-br", got [i32(3), i64(1)], but expected [])
```
## Failed: test-suite/test/core/utf8-custom-section-id.wast
```bash
ERROR src/testsuite.rs:556: test 1/176 did not fail invalidating/parsing, expected error: "malformed UTF-8 encoding" (module: "test-suite/test/core/utf8-custom-section-id.0.wasm")
```
# Opinionated order of tests
Beware that this list might miss a test or two
1. ✅ binary
2. ❌ func
3. ❌ memory
4. ❌ table
5. ✅ i32
6. ✅ i64
7. ✅ f32
8. ✅ f64
9. ✅ call
10. ❌ call_indirect
11. ✅ block
12. ❌ if
13. ❌ loop
14. ✅ br
15. ❌ br_if
16. ❌ br_table
17. ❌ global
18. ❌ local_get
19. ❌ local_set
20. ❌ local_tee
21. ❌ stack
22. ❌ imports
23. ❌ exports
24. ✅ start
25. ❌ data
26. ❌ elem
27. ✅ type
28. ✅ address
29. ✅ load
30. ✅ store
31. ✅ const
32. ✅ conversions
33. ❌ return
34. ❌ select
35. ✅ traps
36. ❌ ref_func
37. ❌ ref_null
38. ❌ ref_is_null
39. ❌ memory_size
40. ❌ memory_grow
41. ❌ memory_init
42. ❌ memory_copy
43. ❌ memory_fill
44. ❌ table_get
45. ❌ table_set
46. ❌ table_size
47. ❌ table_grow
48. ❌ table_init
49. ❌ table_copy
50. ❌ table_fill
51. ❌ align
52. ❌ bulk
53. ✅ int_exprs
54. ✅ int_literals
55. ❌ float_exprs
56. ✅ float_literals
57. ✅ float_memory
58. ✅ float_misc
59. ✅ f32_cmp
60. ✅ f64_cmp
61. ✅ f32_bitwise
62. ✅ f64_bitwise
63. ❌ labels
64. ❌ unreachable
65. ✅ nop
66. ❌ comments
67. ❌ names
68. ❌ linking
69. ✅ custom
70. ❌ endianness
71. ✅ forward
72. ✅ binary-leb128
73. ❌ func_ptrs
74. ❌ left-to-right
75. ✅ memory_redundancy
76. ❌ memory_trap
77. ✅ token
78. ❌ unwind
79. ✅ skip-stack-guard-page
80. ✅ obsolete-keywords
81. ❌ fac
82. ❌ unreached-invalid
83. ❌ unreached-valid
84. ❌ utf8-custom-section-id
85. ✅ utf8-import-field
86. ✅ utf8-import-module
87. ✅ utf8-invalid-encoding
88. ❌ switch
89. ✅ inline-module
90. ❌ simd_load
91. ❌ simd_store
92. ❌ simd_const
93. ❌ simd_lane
94. ❌ simd_conversions
95. ❌ simd_bitwise
96. ❌ simd_boolean
97. ❌ simd_i8x16_arith
98. ❌ simd_i16x8_arith
99. ❌ simd_i32x4_arith
100. ❌ simd_i64x2_arith
101. ❌ simd_f32x4_arith
102. ❌ simd_f64x2_arith
103. ❌ simd_f32x4_cmp
104. ❌ simd_f64x2_cmp
105. ❌ simd_i8x16_cmp
106. ❌ simd_i16x8_cmp
107. ❌ simd_i32x4_cmp
108. ❌ simd_i64x2_cmp
109. ❌ simd_splat
110. ❌ simd_bit_shift
111. ❌ simd_address
112. ❌ simd_align
113. ❌ simd_i8x16_sat_arith
114. ❌ simd_i16x8_sat_arith
115. ❌ simd_i8x16_arith2
116. ❌ simd_i16x8_arith2
117. ❌ simd_i32x4_arith2
118. ❌ simd_i64x2_arith2
119. ❌ simd_f32x4_rounding
120. ❌ simd_f64x2_rounding
121. ❌ simd_f32x4_pmin_pmax
122. ❌ simd_f64x2_pmin_pmax
123. ❌ simd_load_splat
124. ❌ simd_load_extend
125. ❌ simd_load_zero
126. ❌ simd_load8_lane
127. ❌ simd_load16_lane
128. ❌ simd_load32_lane
129. ❌ simd_load64_lane
130. ❌ simd_store8_lane
131. ❌ simd_store16_lane
132. ❌ simd_store32_lane
133. ❌ simd_store64_lane
134. ❌ simd_int_to_int_extend
135. ❌ simd_i16x8_extmul_i8x16
136. ❌ simd_i32x4_extmul_i16x8
137. ❌ simd_i64x2_extmul_i32x4
138. ❌ simd_i16x8_extadd_pairwise_i8x16
139. ❌ simd_i32x4_extadd_pairwise_i16x8
140. ❌ simd_i32x4_dot_i16x8
141. ❌ simd_i16x8_q15mulr_sat_s
142. ❌ simd_i32x4_trunc_sat_f32x4
143. ❌ simd_i32x4_trunc_sat_f64x2
144. ❌ simd_linking
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.