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

Use [su]extend_maybe in the iconst_[su] extractors #8686

Merged
merged 1 commit into from
May 23, 2024

Conversation

scottmcm
Copy link
Contributor

This enables various things -- like x * 2x + x and x * -1-x -- for 128-bit numbers as well.

Thanks to @jameysharp over in #8653 (comment) for noticing that these extractors weren't ever going to match 128-bit numbers as-written, even though the rules could produce 128-bit values.

This enables various things -- like `x * 2` → `x + x` -- for 128-bit numbers as well.
@scottmcm scottmcm requested a review from a team as a code owner May 23, 2024 07:08
@scottmcm scottmcm requested review from elliottt and removed request for a team May 23, 2024 07:08
Copy link
Contributor

@jameysharp jameysharp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, thank you!

@jameysharp jameysharp added this pull request to the merge queue May 23, 2024
Merged via the queue into bytecodealliance:main with commit 66f499f May 23, 2024
36 checks passed
@scottmcm scottmcm deleted the extended-iconst branch May 23, 2024 15:15
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request May 29, 2024
github-merge-queue bot pushed a commit that referenced this pull request May 30, 2024
…" (#8707)

* Revert "Use `[su]extend_maybe` in the `iconst_[su]` extractors (#8686)"

This reverts commit 66f499f.

* Add in failing tests from #8690
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