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

[fuzz] Fix issues with single-inst module generator #4674

Merged
merged 2 commits into from
Aug 10, 2022

Conversation

abrown
Copy link
Contributor

@abrown abrown commented Aug 10, 2022

While fuzzing with the new target in #4671, I discovered several issues with the single-instruction module generator:

  • i64.extend32_s had an incorrect signature
  • the unary! macro was sometimes creating binary-argument functions

abrown added 2 commits August 10, 2022 08:26
This single-instruction test incorrectly attempted to convert an `i32`
to an `i64`; the correct signature is `i64 -> i64`. See the [WebAssembly
specification](https://webassembly.github.io/spec/core/bikeshed/#a7-index-of-instructions).
Previously, the `unary!` macro created functions that used two operands
instead of the expected one.
@alexcrichton alexcrichton enabled auto-merge (squash) August 10, 2022 15:43
@alexcrichton alexcrichton merged commit 354daf5 into bytecodealliance:main Aug 10, 2022
@abrown abrown deleted the single-inst-typos branch August 10, 2022 16:48
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