Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DVLP opened this issue Mar 20, 2022 · 1 comment · May be fixed by #654
Labels
bug Something isn't working

Comments

@DVLP
Copy link

DVLP commented Mar 20, 2022

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

@AlexEne AlexEne added the bug Something isn't working label Mar 21, 2022
@AlexEne
Copy link
Collaborator

AlexEne commented Mar 21, 2022

Thanks for the report, it sounds like a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants