binaryen
binaryen copied to clipboard
Missing SIMD impls in interpreter
Fuzzer found this:
(module
(type $v128_=>_v128 (func (param v128) (result v128)))
(func $0 (param $0 v128) (result v128)
(i32x4.dot_i8x16_i7x16_add_s
(v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000)
(v128.const i32x4 0x30181f08 0xffffff96 0xffffe747 0xffff7fff)
(v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000)
)
)
)
That fails with --precompute on not implemented from here:
https://github.com/WebAssembly/binaryen/blob/68807a4f8570a58f9e5d3756f54476884b97a366/src/wasm-interpreter.h#L1132-L1133
Oh hmm, I guess this is a downside of mutating recent tests. The fuzzer could not have created that program itself.