-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
wasm simd: folded xor and unaligned load incorrectly "traps" #2943
Labels
bug
Incorrect behavior in the current implementation that needs fixing
wasm-proposal:simd
Issues related to the WebAssembly SIMD proposal
Comments
I can confirm this is the case. When I run
There are two problems here:
|
abrown
added a commit
to abrown/wasmtime
that referenced
this issue
Jul 21, 2021
Fixes bytecodealliance#2943, though not as optimally as may be desired. With x64 SIMD instructions, the memory operand must be aligned--this change adds that check. There are cases, however, where we can do better--see bytecodealliance#3106.
wgwoods
pushed a commit
to wgwoods/wasmtime
that referenced
this issue
Jul 29, 2021
Fixes bytecodealliance#2943, though not as optimally as may be desired. With x64 SIMD instructions, the memory operand must be aligned--this change adds that check. There are cases, however, where we can do better--see bytecodealliance#3106.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Incorrect behavior in the current implementation that needs fixing
wasm-proposal:simd
Issues related to the WebAssembly SIMD proposal
Given this wasm:
when run this yields:
It looks like in the disassembly
pxor
is being used with a memory operand, but presumably that memory operand needs to be aligned and the instruction is trapping otherwise?cc @abrown, @jlb6740
The text was updated successfully, but these errors were encountered: