[Bug target/101132] [11/12 regression] [MIPS/MSA] internal compiler error: in do_store_flag, at expr.c:12541

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 30 16:58:13 GMT 2021


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

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Xi Ruoyao <xry111@gcc.gnu.org>:

https://gcc.gnu.org/g:45cb789e6adf5d571c574a94b77413c845fed106

commit r12-2629-g45cb789e6adf5d571c574a94b77413c845fed106
Author: Xi Ruoyao <xry111@mengyan1223.wang>
Date:   Sun Jun 20 15:21:39 2021 +0800

    mips: add MSA vec_cmp and vec_cmpu expand pattern [PR101132]

    Middle-end started to emit vec_cmp and vec_cmpu since GCC 11, causing
    ICE on MIPS with MSA enabled.  Add the pattern to prevent it.

    gcc/

            PR target/101132
            * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
            * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
            * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
              expander.
              (vec_cmpu<IMSA:mode><mode_i>): New expander.

    gcc/testsuite/

            PR target/101132
            * gcc.target/mips/pr101132.c: New test.


More information about the Gcc-bugs mailing list