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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tamar Christina <tnfch...@gcc.gnu.org>:

https://gcc.gnu.org/g:411ac94611f164fac7ec1cd5953549c0a56cf43a

commit r12-6038-g411ac94611f164fac7ec1cd5953549c0a56cf43a
Author: Tamar Christina <tamar.christ...@arm.com>
Date:   Fri Dec 17 10:59:25 2021 +0000

    slp: check that the operation we're combing is a boolean operation
[PR103741]

    It seems I forgot to check that the operation we're combing when masking
the
    predicated together are actually predicates types.

    Without it we end up accidentally trying to combine a value and a mask.

    gcc/ChangeLog:

            PR tree-optimization/103741
            * tree-vect-stmts.c (vectorizable_operation): Check for boolean.

    gcc/testsuite/ChangeLog:

            PR tree-optimization/103741
            * gcc.target/aarch64/pr103741.c: New test.

Reply via email to