-
Notifications
You must be signed in to change notification settings - Fork 13k
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 asm! support for mips64 #77337
Add asm! support for mips64 #77337
Conversation
c9140cb
to
4fde576
Compare
@rustbot modify labels: -S-waiting-on-author +S-waiting-on-review |
Please tell me to git squash before merging! |
Self::reg => types! { _: I8, I16, I32, F32; }, | ||
Self::freg => types! { _: F32; }, | ||
match (self, arch) { | ||
(Self::reg, InlineAsmArch::Mips64) => types! { _: I8, I16, I32, I64, F32; }, |
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.
You should be able to support F64
here with the same bitcast
adjustment you did for F32
.
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.
Since we have hard-float by default for mips, I don't know how people enable soft-float FPU.
Is it important to support those operations ?
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.
It's just for consistency since all the other architectures support FP values in integer registers.
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.
Hmm, I added it then. Although I don't know how useful they are.
LGTM |
co-authored-by: Amanieu <amanieu@gmail.com>
rebased. |
@bors r+ |
📌 Commit f1d9b514471c47da029dbf0ac548a7b22b45e5f7 has been approved by |
Sorry, I didn't split "Add asm! support for mips64" and "Removes reg aliases since there are many ABIs: o32/n32/n64" @rustbot modify labels: -S-waiting-on-author +S-waiting-on-review |
@bors r+ |
📌 Commit 4d570fb has been approved by |
☀️ Test successful - checks-actions, checks-azure |
src/doc/unstable-book/src/library-features/asm.md
.cc #76839