https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127877

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-16 branch has been updated by Richard Biener
<[email protected]>:

https://gcc.gnu.org/g:c25a46c861ebbf8dd50933447607cb9fca461758

commit r16-9904-gc25a46c861ebbf8dd50933447607cb9fca461758
Author: Richard Biener <[email protected]>
Date:   Tue Oct 13 19:51:01 2026 +0200

    tree-optimization/127877 - wrong code with non-linear induction
vectorization

    When we validate the shift amount for a non-linear shift induction
    we only consider nunits shift count updates rather than VF ones.

            PR tree-optimization/127877
            * tree-vect-loop.cc (vectorizable_nonlinear_induction): Fix
            shift count check.

            * gcc.dg/vect/vect-pr127877.c: New testcase.

    (cherry picked from commit b24bee5c07afb8c90c02597527871a44b00c4fd5)

Reply via email to