binaryen icon indicating copy to clipboard operation
binaryen copied to clipboard

Missing SIMD impls in interpreter

Open kripken opened this issue 3 years ago • 1 comments

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

kripken avatar Apr 20 '22 23:04 kripken

Oh hmm, I guess this is a downside of mutating recent tests. The fuzzer could not have created that program itself.

tlively avatar Apr 21 '22 01:04 tlively