-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
x64: Migrate fcvt_from_sint and fcvt_low_from_sint to ISLE #4650
Conversation
Subscribe to Label Action
This issue or pull request has been labeled: "cranelift", "cranelift:area:x64", "isle"
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.
Thanks! Just one note below as we're going through the opcodes to fully clean up the unary vs binary distinction...
@@ -1527,6 +1527,7 @@ pub(crate) fn emit( | |||
SseOpcode::Cvtdq2pd => (LegacyPrefixes::_F3, 0x0FE6, 2), | |||
SseOpcode::Cvtpd2ps => (LegacyPrefixes::_66, 0x0F5A, 2), | |||
SseOpcode::Cvtps2pd => (LegacyPrefixes::None, 0x0F5A, 2), | |||
SseOpcode::Cvtdq2ps => (LegacyPrefixes::None, 0x0F5B, 2), |
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.
In addition to adding it here, can we remove it from here and make sure we switch over any uses of that (tweaking any handwritten uses of it in-place is fine for now)? Since the opcode has unary (one src, one dst) semantics it should only appear here, not elsewhere.
I'm also slightly suspect of the two cvt*
opcodes above that one in XmmRmR
too, and we should see if they should be moved over too, while we're at it...
ee99a41
to
cc0b69f
Compare
cc0b69f
to
0d9a272
Compare
Migrate
fcvt_from_sint
andfcvt_low_from_sint
to ISLE. Also support theCvtdq2ps
opcode when emittingXmmUnaryRmR
instructions.