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

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Andre Simoes Dias Vieira
<avie...@gcc.gnu.org>:

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

commit r12-10165-ge84c06f801fbf8376fe43719675a409f588f68bd
Author: Andre Vieira <andre.simoesdiasvie...@arm.com>
Date:   Wed Dec 20 16:41:52 2023 +0000

    veclower: improve selection of vector mode when lowering [PR 112787]

    This patch addresses the issue reported in PR target/112787 by improving
the
    compute type selection.  We do this by not considering types with more
elements
    than the type we are lowering since we'd reject such types anyway.

    gcc/ChangeLog:

            PR target/112787
            * tree-vect-generic.cc (type_for_widest_vector_mode): Change
function to
            use original vector type and check widest vector mode has at most
the
            same number of elements.
            (get_compute_type): Pass original vector type rather than the
element
            type to type_for_widest_vector_mode and remove now obsolete check
for
            the number of elements.

    gcc/testsuite/ChangeLog:

            * gcc.target/aarch64/pr112787.c: New test.

    (cherry picked from commit a3ff76278efe006dc0b50249c8e5baf565bff56b)

Reply via email to