Skip to content

stabilize s390x vector registers#2215

Open
folkertdev wants to merge 1 commit intorust-lang:masterfrom
folkertdev:stabilize-s390x-vector-registers
Open

stabilize s390x vector registers#2215
folkertdev wants to merge 1 commit intorust-lang:masterfrom
folkertdev:stabilize-s390x-vector-registers

Conversation

@folkertdev
Copy link
Contributor

@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Mar 22, 2026
Comment on lines -629 to +632
| s390x | `vreg` | `v[0-31]` | Only clobbers |
| s390x | `vreg` | `v[0-31]` | `v` |
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment on lines +321 to +322
> [!NOTE]
> If the value's type is smaller than the register, the value of the upper bits is platform-specific. Some targets zero out the upper bits, while others leave them untouched.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This came up in the stabilization PR. Amanieu mentions that aarch64 zeros the upper bits, while s390x does not touch them.

This might need some re-phrasing, but I think it's useful to include to prevent future confusion.

@folkertdev folkertdev force-pushed the stabilize-s390x-vector-registers branch from a0c1541 to 41a2fc8 Compare March 22, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: The marked PR is awaiting review from a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants