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

Winch: Implement avgr instructions for x64 with AVX #10228

Merged
merged 3 commits into from
Feb 14, 2025

Conversation

jeffcharles
Copy link
Contributor

Part of #8093. Implements the following instructions:

  • i8x16.avgr_u
  • i16x8.avgr_u

@jeffcharles jeffcharles requested review from a team as code owners February 13, 2025 16:31
@jeffcharles jeffcharles requested review from fitzgen and removed request for a team February 13, 2025 16:31
@github-actions github-actions bot added the winch Winch issues or pull requests label Feb 13, 2025
Copy link

Subscribe to Label Action

cc @saulecabrera

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

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

  • saulecabrera: winch

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

Learn more.

Comment on lines 2721 to 2725
match size {
OperandSize::S8 | OperandSize::S16 => self.asm.xmm_vpavg_rrr(lhs, rhs, dst, size),
_ => unimplemented!(),
}

Copy link
Member

Choose a reason for hiding this comment

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

Could we avoid this match here entirely and instead delegate the operand size invariant checks to the assembler?

Copy link
Member

Choose a reason for hiding this comment

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

It's currently duplicated in both places, and I'm not sure if such duplication is worth it.

@saulecabrera saulecabrera added this pull request to the merge queue Feb 14, 2025
Merged via the queue into bytecodealliance:main with commit b09899d Feb 14, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
winch Winch issues or pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants