summaryrefslogtreecommitdiff
path: root/test/spec/const.txt
Commit message (Collapse)AuthorAgeFilesLines
* update br_table validation rule + enforce module validity in spectest-interp ↵Keith Winstein2022-04-131-1/+1
| | | | (#1895)
* Reference types changes to remove subtyping (#1407)Ben Smith2020-05-281-98/+98
| | | | | | | | Main changes: * Rename `anyref` -> `externref` * Remove `nullref` * Rename `hostref` -> `externref` * `ref.null` and `ref.is_null` now have "ref kind" parameter * Add ref kind keywords: `func`, `extern`, `exn`
* Update spec testsuite (#1237)Sam Clegg2019-11-221-60/+244
| | | | | | | The only major change to the interpreter is to move segment initialization out `ReadBinaryInterp` (in the binary reader) and into interp.cc. This is because the test suite now expects out of bound semgments to be reported during initialization rather than reported as validation errors.
* Update spec testsuite (#1111)Ben Smith2019-07-161-33/+57
| | | | | * Remove passive keyword from bulk-memory * Fix rounding on hex floats * Allow underscores in NaN payloads
* Fix run-tests.py when STDIN_FILE is used > 1 times (#711)Ben Smith2018-01-091-48/+48
| | | | | | | | | | Each test should be run with its own directory of outputs, so the tests can be run in parallel without clobbering results. Since I added wasm2c, the spec `.wast` files were being used twice, but using the same output directory. This would often work properly in a full run, but was flaky, since they both write `.json` and `.wasm` files with the same names. This fix gives them their own directories by always using the directory name of the test.
* Use `.wat` extension for wast2json-generated files (#669)Ben Smith2017-11-131-24/+24
| | | Fixes #668.
* Remove BinaryErrorHandler, rename SourceErrorHandler (#553)Ben Smith2017-07-061-24/+24
| | | | | | | Since SourceErrorHandler can support binary locations, it doesn't make much sense to have two different error handlers. There is now only an ErrorHandler base class, and the first argument specifies whether the error handler is expecting text or binary locations.
* Update the testsuite; fix literal parsing issues (#515)Ben Smith2017-06-221-1/+65
| | | | | | | * Return error when floats overflow (used to return inf) * Significantly simplfy the significand parser in FloatParser::ParseHex * Add some new parse tests to hexfloat.cc; the previous tests only checked valid/canonical strings
* Update testsuite; more lexer/parser changes (#484)Ben Smith2017-06-111-0/+37
* Add support for quoted modules: `(module quote "...")` * Binary modules must be annotated: `(module binary "...")` * Multiple result blocks are no longer a parser error: `(func (result i32) (result i32) ...)` * Function types can specify unused bind variables: `(type (func (param $foo)))` * Rename `RawModule` -> `ScriptModule`. This encapsulates a module that may not be parsed yet, whether binary or "quoted". * Validate load/store offsets and alignment in the parser, not in the validator. The spec tests assume that you can catch these errors with `assert_malformed`. * Parse wast files in `wasm-interp` when checking malformed/invalid/etc. modules. This allows us to run all assertions at the same time, which is nice. `wasm-interp` should probably be renamed, though. * Two tests in `type.wast` fail because they use: `(assert_invalid (module quote "..."))`. I'd prefer that we don't support this, since it's unnecessary, and additional work. I'll fix in a follow-up CL if we decide this is worth keeping.