Skip to content

PowerPC: Implement VSX floating-point comparison intrinsics #2166

Draft
lei137 wants to merge 3 commits into
rust-lang:mainfrom
lei137:addVecCmp
Draft

PowerPC: Implement VSX floating-point comparison intrinsics #2166
lei137 wants to merge 3 commits into
rust-lang:mainfrom
lei137:addVecCmp

Conversation

@lei137

@lei137 lei137 commented Jun 18, 2026

Copy link
Copy Markdown

Add support for vec_cmpeq, vec_cmpgt, and vec_cmpge operations on
vector_float and vector_double types.

AI Assisted.

@rustbot

rustbot commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the pull request, and welcome! The Rust Project is excited to review your changes, and you should hear from @folkertdev (or someone else) some time within the next two weeks.

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @Amanieu, @adamgemmell, @davidtwco, @folkertdev, @sayantn
  • @Amanieu, @adamgemmell, @davidtwco, @folkertdev, @sayantn expanded to Amanieu, adamgemmell, davidtwco, folkertdev, sayantn
  • Random selection from Amanieu, adamgemmell, davidtwco, folkertdev, sayantn

lei137 added 2 commits June 18, 2026 16:19
Implements VSX floating-point comparison intrinsics for PowerPC.
Add support for vec_cmpeq, vec_cmpgt, and vec_cmpge operations on
vector_float and vector_double types. Implementation uses VSX-specific
instructions (xvcmpeqsp/xvcmpeqdp, xvcmpgtsp/xvcmpgtdp,
xvcmpgesp/xvcmpgedp) for improved performance when VSX is available,
while maintaining backward compatibility with AltiVec's vcmpgefp for
vector_float when VSX is not enabled.

AI Assited.
@lei137 lei137 changed the title PowerPC: Implement vec_cmp for VSX vector float/double PowerPC: Implement VSX floating-point comparison intrinsics Jun 18, 2026
@lei137 lei137 marked this pull request as draft June 19, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants