Skip to content

Using wasm_v32x4_load_splat triggers assertion in visitSIMDLoad #9725

@zeux

Description

@zeux

When compiling with -munimplemented-simd128, I'm getting:

wasm-opt: /b/s/w/ir/cache/builder/emscripten-releases/binaryen/src/wasm-interpreter.h:1091: wasm::Flow wasm::ExpressionRunnerwasm::PrecomputingExpressionRunner::visitSIMDLoad(wasm::SIMDLoad *) [SubType = wasm::PrecomputingExpressionRunner]: Assertion `false' failed.
shared:ERROR: '/mnt/c/work/emsdk/upstream/bin/wasm-opt build/meshopt_decoder.wasm -o build/meshopt_decoder.wasm --post-emscripten --no-exit-runtime -O3 --low-memory-unused --strip-debug --strip-producers --pass-arg=emscripten-sbrk-ptr@1536 --pass-arg=emscripten-sbrk-val@26272 --mvp-features --enable-simd' failed (-6)

When using wasm_v32x4_load_splat.

Maybe it shouldn't work in the first place and the unimplemented is supposed to suggest this? :) Although https://github.com/WebAssembly/simd/blob/master/proposals/simd/ImplementationStatus.md page lists implementation status for many "unimplemented" intrinsics so I'm not sure. Feel free to close this if this is expected and there's some other issue tracking this.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions