diff options
author | Thomas Lively <tlively@google.com> | 2024-08-26 10:15:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-26 10:15:00 -0700 |
commit | dacc6e57048dc9af133c98ea3c843f8b912c9980 (patch) | |
tree | 8148a61bb1109a1661c7f1800047bcdbc2dc5619 /test/lit/validation | |
parent | 95a280f70ef529c3c506d628648a96f2d267f4c1 (diff) | |
download | binaryen-dacc6e57048dc9af133c98ea3c843f8b912c9980.tar.gz binaryen-dacc6e57048dc9af133c98ea3c843f8b912c9980.tar.bz2 binaryen-dacc6e57048dc9af133c98ea3c843f8b912c9980.zip |
Support more reference constants in wast scripts (#6865)
Spec tests use constants like `ref.array` and `ref.eq` to assert that
exported function return references of the correct types. Support more
such constants in the wast parser.
Also fix a bug where the interpretation of `array.new_data` for arrays
of packed fields was not properly truncating the packed data. Move the
function for reading fields from memory from literal.cpp to
wasm-interpreter.h, where the function for truncating packed data lives.
Other bugs prevent us from enabling any more spec tests as a result of
this change, but we can get farther through several of them before
failing. Update the comments about the failures accordingly.
Diffstat (limited to 'test/lit/validation')
0 files changed, 0 insertions, 0 deletions