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

pulley: Implement SIMD splat instruction #9832

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

alexcrichton
Copy link
Member

Gets a few spec tests and CLIF tests passing

cc #9783

Gets a few spec tests and CLIF tests passing

cc bytecodealliance#9783
@alexcrichton alexcrichton requested review from a team as code owners December 16, 2024 15:34
@alexcrichton alexcrichton requested review from abrown and dicej and removed request for a team December 16, 2024 15:34
@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator pulley Issues related to the Pulley interpreter labels Dec 16, 2024
Copy link

Subscribe to Label Action

cc @fitzgen

This issue or pull request has been labeled: "cranelift", "pulley"

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

  • fitzgen: pulley

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

Learn more.

Copy link
Contributor

@abrown abrown left a comment

Choose a reason for hiding this comment

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

LGTM!

cranelift/codegen/src/isa/pulley_shared/lower.isle Outdated Show resolved Hide resolved
@@ -2695,6 +2695,42 @@ impl OpVisitor for Interpreter<'_> {
self.state[dst].set_u128(val);
ControlFlow::Continue(())
}

fn vsplatx8(&mut self, dst: VReg, src: XReg) -> ControlFlow<Done> {
let val = self.state[src].get_u32() as u8;
Copy link
Contributor

Choose a reason for hiding this comment

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

We may need get_u8 and get_u16 eventually?

Copy link
Contributor

Choose a reason for hiding this comment

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

...just mulling over whether discarding the upper bits here is going to be problematic — probably not?

Copy link
Member Author

Choose a reason for hiding this comment

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

I've been wondering the same yeah, I'll probably add these in a follow-up

@alexcrichton alexcrichton added this pull request to the merge queue Dec 17, 2024
Merged via the queue into bytecodealliance:main with commit db4bd21 Dec 17, 2024
76 checks passed
@alexcrichton alexcrichton deleted the simd-splat branch December 17, 2024 01:03
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 pulley Issues related to the Pulley interpreter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants