Skip to content

SIMD code, lane index out of range error. Not sure if this is a bug in Twiggy or a feature request for more verbose output #632

@DVLP

Description

@DVLP

My piece of code is compiled with Emscripten. It contains SIMD instructions. When trying to run any twiggy function I'm getting an error. I don't know if this is an error in Twiggy or is it pointing to a valid error. All WABT tools work with this wasm file

error: WASM error: lane index out of range (at offset 10491)
caused by: lane index out of range (at offset 10491)

twiggy version:
twiggy-opt 0.7.0

👟 Steps to Reproduce

  • Run any command with the file attached
  • twiggy top -n 25 test_case.wasm

😲 Actual Behavior

Outputs
error: WASM error: lane index out of range (at offset 10491)
caused by: lane index out of range (at offset 10491)

🤔 Expected Behavior

No idea what should happen because I never used Twiggy before, perhaps should show some more verbose output with a few lines of context where the error occurred and in what symbol. Unless this is a bug and it should just work.
test_case.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions