On Thu, Mar 26, 2026 at 03:37:52AM -0500, Vijay Shankar wrote:
> Changes from v4:
>         * Update to use Use \m...\M in
> Changes from v3:
>       * Added New testcase.
> Changes from v2:
>       * Some formatting.
> Changes from v1:
>       * Added more info to commit message fixed indentation.
> 
> This patch removes redundant vector compare instructions and logic
> from the vec_first_mismatch_or_eos_index intrinsic.
> Currently, GCC generates extra vcmpneb instructions and additional
> masking logic (xxland, xxlorc) to handle EOS and mismatch comparisons.
> However, a single vcmpnezb instruction already suffices, as it covers
> both By eliminating the redundant comparisons (vcmpneb) and the
> associated logic (xxland/xxlorc) we produce shorter,
> more efficient code.
> 
> Bootstrapped and tested on powerpc64le-linux-gnu with no regressions.
> 
> 2025-10-22  Vijay Shankar  <[email protected]>
> 
> gcc/ChangeLog:
>       PR target/116004
>       * config/rs6000/vsx.md (first_mismatch_or_eos_index): Remove redundant
>       emit_insns.
> 
> gcc/testsuite/ChangeLog:
>       PR target/116004
>       * gcc.target/powerpc/pr116004.c: New Test.

Could you re-formulate the patch?  I tried to apply it to today's
source and the vsx.md change does not apply.

-- 
Michael Meissner, IBM
PO Box 98, Ayer, Massachusetts, USA, 01432
email: [email protected]

Reply via email to