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

--- Comment #8 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:f4e92d62dccb96ade753f3a8f49be1b5f61c31f1

commit r14-9666-gf4e92d62dccb96ade753f3a8f49be1b5f61c31f1
Author: Richard Biener <rguent...@suse.de>
Date:   Tue Mar 26 09:11:00 2024 +0100

    tree-optimization/114471 - ICE with mismatching vector types

    The following fixes too lax verification of vector type compatibility
    in vectorizable_operation.  When we only have a single vector size then
    comparing the number of elements is enough but with SLP we mix those
    and thus for operations like BIT_AND_EXPR we need to verify compatible
    element types as well.  Allow sign changes for ABSU_EXPR though.

            PR tree-optimization/114471
            * tree-vect-stmts.cc (vectorizable_operation): Verify operand
            types are compatible with the result type.

            * gcc.dg/vect/pr114471.c: New testcase.

Reply via email to