Skip to content
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

Support #[repr(simd)] types in input/output of PowerPC inline assembly #131551

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented Oct 11, 2024

Depends on #131341. (The first commit is from it.)

Marked as draft until #131341 is merged.

I'm not sticking to whether this should be a separate PR or part of #131341, so I can merge this into #131341 if needed.

r? @Amanieu

@rustbot label +O-PowerPC +A-inline-assembly

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. O-PowerPC Target: PowerPC processors labels Oct 11, 2024
@taiki-e taiki-e changed the title Support input/output #[repr(simd)] types in PowerPC inline assembly Support #[repr(simd)] types in input/output of PowerPC inline assembly Oct 11, 2024
@taiki-e taiki-e force-pushed the ppc-asm-vreg-inout branch 2 times, most recently from 313e9f2 to ec39701 Compare October 11, 2024 15:46
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@taiki-e taiki-e force-pushed the ppc-asm-vreg-inout branch 4 times, most recently from 13b3493 to 97516cb Compare October 12, 2024 06:49
Comment on lines 53 to 57
// FIXME: vsx also supports integers and floats
types! {
altivec: VecI8(16), VecI16(8), VecI32(4), VecF32(4);
vsx: VecI64(2), VecF64(2);
}
Copy link
Member Author

@taiki-e taiki-e Oct 12, 2024

Choose a reason for hiding this comment

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

(Originally I tried to add I8, I16, I32, I64, F32, F64 to vsx, but I got "rustc-LLVM ERROR: Unknown mismatch in getCopyFromParts!" in the tests passing integers and floats to vreg.)

@taiki-e taiki-e force-pushed the ppc-asm-vreg-inout branch 3 times, most recently from b2afbe5 to e9dbcb1 Compare October 12, 2024 16:17
@rustbot rustbot added the A-inline-assembly Area: Inline assembly (`asm!(…)`) label Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-inline-assembly Area: Inline assembly (`asm!(…)`) O-PowerPC Target: PowerPC processors S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants