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

Add integer binary instructions to Winch #6538

Conversation

jeffcharles
Copy link
Contributor

Part of #6528. Adds x86 support for a number of integer binary instructions to Winch.

@jeffcharles jeffcharles requested review from a team as code owners June 7, 2023 18:47
@jeffcharles jeffcharles requested review from alexcrichton and abrown and removed request for a team June 7, 2023 18:47
@github-actions github-actions bot added fuzzing Issues related to our fuzzing infrastructure winch Winch issues or pull requests labels Jun 7, 2023
@github-actions
Copy link

github-actions bot commented Jun 7, 2023

Subscribe to Label Action

cc @fitzgen, @saulecabrera

This issue or pull request has been labeled: "fuzzing", "winch"

Thus the following users have been cc'd because of the following labels:

  • fitzgen: fuzzing
  • saulecabrera: winch

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

Copy link
Member

@saulecabrera saulecabrera left a comment

Choose a reason for hiding this comment

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

Left one comment regarding handling of invalid operand combinations. After that I think we can get this landed.

Comment on lines 327 to 330
_ => panic!(
"Invalid operand combination for and; src = {:?} dst = {:?}",
src, dst
),
Copy link
Member

Choose a reason for hiding this comment

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

I believe for this and all the other functions below, we can use Self::handle_invalid_operand_combination?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I also noticed I can substitute self.load_constant for self.move_ir when loading a larger than 32-bit integer into the scratch register so I'll make that change too.

@saulecabrera saulecabrera added this pull request to the merge queue Jun 7, 2023
Merged via the queue into bytecodealliance:main with commit f5fafba Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fuzzing Issues related to our fuzzing infrastructure winch Winch issues or pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants