-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
Gets a few spec tests and CLIF tests passing cc bytecodealliance#9783
Subscribe to Label Actioncc @fitzgen
This issue or pull request has been labeled: "cranelift", "pulley"
Thus the following users have been cc'd because of the following labels:
To subscribe or unsubscribe from this label, edit the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Gets a few spec tests and CLIF tests passing
cc #9783