-
-
Notifications
You must be signed in to change notification settings - Fork 669
SIMD splat causes compiler error #1409
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
Comments
Could confirm. I guess it could be during |
Problem appears to be that Binaryen can precompute the splat to a constant nowadays, but the code there really only expects an integer or a float to inline as a constant. A workaround would be to replace the Regarding a proper fix, an important question is if it even makes sense to inline |
|
Thank you both @dcodeIO & @MaxGraey for the quick fix and workaround to use |
It seems Node 14.5.0 still using old opcodes before renumbering: WebAssembly/simd#209 |
Thanks @MaxGraey! Very much the case what @zeux mentioned in that linked issue:
|
- update asmscript to 0.14.4 - implement workaround as mentioned here: AssemblyScript/assemblyscript#1409 (comment)
I've just been trying to upgrade my assemblyscript dependency from 0.9.4 to 0.14.3 and am now getting a not very informative compiler error for code which worked completely fine in the older version. After various back and fro, removing code in my project and slowly going back with trying older assemblyscript versions, I managed to narrow it down and replicate the issue first appearing in assemblyscript 0.10.0 and using this small test function:
Btw. In the actual code base this issue arises in this function..
The text was updated successfully, but these errors were encountered: