-
Notifications
You must be signed in to change notification settings - Fork 171
WASM, WASM_X64: Support shift operations #1482
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
Conversation
This is ready. Please possibly review and share feedback. |
This PR might fail after merging of #1481. As the test |
8c05a06
to
cc0a7e0
Compare
All tests passed and I now rebased on top of the latest master. |
BitRShift is currently signed/arithmetic right shift. This is similar to LLVM Backend.
cc0a7e0
to
177a12d
Compare
The tests should hopefully pass now. The new commits X86Assembler: Implement SHL and SAR Instructions and |
I am adding this to auto-merge as it seems approved. I will support changes/updates suggested (if any) for recently added commits in a new PR. |
Yes, this is good, thanks! |
This PR adds support of
left shift
andright shift
operations in thewasm
andwasm_x64
backends. Forright shift
, I currently usedsigned/arithmetic
right shift operation (this seems similar to thellvm
backend). Other possibility is usingunsigned/logical
right shift operation.