Repository navigation
Add clobber-only register classes for asm! - #86416
Merged
Merged
Conversation
Contributor
|
(rust-highfive has picked a reviewer for you, use r? to override) |
Member
Author
|
r? @nagisa |
nagisa
reviewed
Jul 8, 2021
Member
There was a problem hiding this comment.
I'm not following what purpose the matches!(reg, asm::InlineAsmRegOrRegClass::RegClass(_)) part is serving. Could you explain and/or add a comment?
Member
There was a problem hiding this comment.
If I understand this correctly, the addition of z registers is not strictly related to the clobber-only register classes, correct? While related to the p registers, I don't believe p registers are required to utilize the z registers, right?
If that's the case, could this become a separate commit?
These are needed to properly express a function call ABI using a clobber list, even though we don't support passing actual values into/out of these registers.
Amanieu
force-pushed
the
asm_clobber_only
branch
from
July 10, 2021 15:29
5ede032 to
d2a1d04
Compare
Member
|
@bors r+ Thanks! |
Contributor
|
📌 Commit d2a1d04 has been approved by |
Contributor
Contributor
|
☀️ Test successful - checks-actions |
N1ark
pushed a commit
to N1ark/reference
that referenced
this pull request
Nov 26, 2026
On AArch64, we've accepted `z0`, `z1`, etc. as names for the `v` registers since inline assembly was stabilized in Rust 1.59. We've accepted these for Arm64EC since it was stabilized in Rust 1.84. But our table of register aliases doesn't list these aliases. Let's add them. (We added these aliases in rust-lang/rust#86416.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These are needed to properly express a function call ABI using a clobber
list, even though we don't support passing actual values into/out of
these registers.