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

stage2: wasm - Implement overflow arithmetic #11321

Merged
merged 2 commits into from
Mar 27, 2022

Conversation

Luukdegram
Copy link
Contributor

Implements the following instructions:

  • @addWithOverflow
  • @subWithOverflow
  • @shlWithOverflow
  • @mulWithOverflow

This already uses the new semantics from #10248 meaning we create a tuple that stores the result as well as the overflow bit.

This implements the overflow arithmetic for unsigned and signed integers.
Meaning the following instructions:
- @addWithOverflow
- @subWithOverflow
- @shlWithOverflow
- @mulWithOverflow
@andrewrk andrewrk merged commit 0501962 into ziglang:master Mar 27, 2022
@Luukdegram Luukdegram deleted the wasm-overflow branch March 27, 2022 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants