Skip to content

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

Merged
jameysharp merged 1 commit into
bytecodealliance:mainfrom
scottmcm:extended-iconst
May 23, 2024
Merged

Use [su]extend_maybe in the iconst_[su] extractors#8686
jameysharp merged 1 commit into
bytecodealliance:mainfrom
scottmcm:extended-iconst

Conversation

@scottmcm
Copy link
Copy Markdown
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
Copy Markdown
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
@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