mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:17:35 +00:00
LibWasm: Implement a few SIMD instructions
This commit is contained in:
parent
5f013e5374
commit
3c176bafee
8 changed files with 356 additions and 11 deletions
|
@ -16,7 +16,7 @@ if(INCLUDE_WASM_SPEC_TESTS)
|
|||
|
||||
find_program(WAT2WASM wat2wasm REQUIRED)
|
||||
find_program(PRETTIER prettier OPTIONAL)
|
||||
if (NOT SKIP_PRETTIER AND NOT PRETTIER_FOUND)
|
||||
if (NOT SKIP_PRETTIER AND PRETTIER EQUAL "PRETTIER-NOTFOUND")
|
||||
message(FATAL_ERROR "Prettier required to format Wasm spec tests! Install prettier or set WASM_SPEC_TEST_SKIP_FORMATTING to ON")
|
||||
endif()
|
||||
|
||||
|
|
|
@ -140,6 +140,7 @@ def parse_typed_value(ast):
|
|||
value.frombytes(parse_v128_chunk(num[0], ast[1][0]))
|
||||
assert len(value) - s == size, f'Expected {size} bytes, got {len(value) - s} bytes'
|
||||
|
||||
assert len(value) == 16, f'Expected 16 bytes, got {len(value)} bytes'
|
||||
return {
|
||||
'type': types[ast[0][0]],
|
||||
'value': value.tobytes().hex()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue