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

fuzzgen: Enable bitcast instruction #6747

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

afonso360
Copy link
Contributor

👋 Hey,

This PR enables the bitcast instruction in fuzzgen. This was previously fixed in #6379, and we can now start fuzzing it.

@afonso360 afonso360 requested a review from a team as a code owner July 18, 2023 22:44
@afonso360 afonso360 requested review from jameysharp and removed request for a team July 18, 2023 22:44
Comment on lines -457 to +471
let ret = args[0];
let ret = rets[0];

// Vector arguments must produce vector results, and scalar arguments must produce
// scalar results.
if arg.is_vector() != ret.is_vector() {
return false;
}

if arg.is_vector() && arg.is_vector() {
if arg.is_vector() && ret.is_vector() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a little bit of a driveby fix, but these looked wrong. I ran fuzzgen afterwards and it didn't reveal any new panics.

@github-actions github-actions bot added the cranelift Issues related to the Cranelift code generator label Jul 19, 2023
@alexcrichton alexcrichton added this pull request to the merge queue Jul 19, 2023
Merged via the queue into bytecodealliance:main with commit fe69c04 Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift Issues related to the Cranelift code generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants