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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

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

commit r15-6309-gcfe1ad3c488693a10fafb39d68c8cabc6e48daa7
Author: Richard Biener <rguent...@suse.de>
Date:   Tue Dec 17 11:23:02 2024 +0100

    middle-end/118062 - bogus lowering of vector compares

    The generic expand_vector_piecewise routine supports lowering of
    a vector operation to vector operations of smaller size.  When
    computing the extract position from the larger vector it uses the
    element size in bits of the original result vector to determine
    the number of elements in the smaller vector.  That is wrong when
    lowering a compare as the vector element size of a bool vector
    does not have to agree with that of the compare operand.  The
    following simplifies this, fixing the error.

            PR middle-end/118062
            * tree-vect-generic.cc (expand_vector_piecewise): Properly
            compute delta.

Reply via email to