[Bug target/100645] ICE in related_vector_mode, at stor-layout.c:537

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Oct 19 09:05:18 GMT 2022


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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Kewen Lin <linkw@gcc.gnu.org>:

https://gcc.gnu.org/g:6db4ba9750ffd65c80995425db0d5f1020a04b28

commit r12-8845-g6db4ba9750ffd65c80995425db0d5f1020a04b28
Author: Kewen Lin <linkw@linux.ibm.com>
Date:   Sun Sep 25 22:01:50 2022 -0500

    rs6000: Fix condition of define_expand vec_shr_<mode> [PR100645]

    PR100645 exposes one latent bug in define_expand vec_shr_<mode>
    that the current condition TARGET_ALTIVEC is too loose.  The
    mode iterator VEC_L contains a few modes, they are not always
    supported as vector mode, VECTOR_UNIT_ALTIVEC_OR_VSX_P should
    be used like some other VEC_L usages.

            PR target/100645

    gcc/ChangeLog:

            * config/rs6000/vector.md (vec_shr_<mode>): Replace condition
            TARGET_ALTIVEC with VECTOR_UNIT_ALTIVEC_OR_VSX_P.

    gcc/testsuite/ChangeLog:

            * gcc.target/powerpc/pr100645.c: New test.

    (cherry picked from commit bfad7069b74c97000b698191c1945f07a6192db5)


More information about the Gcc-bugs mailing list