-
-
Notifications
You must be signed in to change notification settings - Fork 670
Potentially wrong SIMD opcode generation in 0.17.2 #1551
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
Indeed looks like another renumbering took place there and we missed to update the constants. cc @MaxGraey |
I think we should update constants every time after update binaryen. @dcodeIO could you remind me about this during review? |
I guess we could build a test case that compares the constants somehow :) |
Thank you both! Is that maybe something which could be semi-automated via a little dev tool? I'm assuming those constants are retrieved from somewhere in the Binaryen codebase. Want me to look into it? If so, can you please provide some more pointers, i.e. which files & enums should be considered for syncing... |
The script responsible for updating the constants is https://github.com/AssemblyScript/assemblyscript/blob/master/scripts/update-constants.js Perhaps it could provide a |
Uh oh!
There was an error while loading. Please reload this page.
Hi all, I'm not sure if that's related to the recent Binaryen updates in 0.17.2, but the following code (which compiles just fine w/ all recent assemblyscript versions < 0.17.2) is now causing a validation error during compile and seemingly produces the wrong SIMD opcodes to begin with:
https://github.com/thi-ng/umbrella/blob/develop/packages/simd/assembly/abs.ts#L12
Where is that
i64x2.all_true
op coming from here? Should bef32x4.abs
...The text was updated successfully, but these errors were encountered: