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

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Xi Ruoyao <xry...@gcc.gnu.org>:

https://gcc.gnu.org/g:95543c5d2fcb90e120d4291c06eba33f174986e4

commit r15-9987-g95543c5d2fcb90e120d4291c06eba33f174986e4
Author: Xi Ruoyao <xry...@xry111.site>
Date:   Wed Jul 2 15:28:33 2025 +0800

    LoongArch: Prevent subreg of subreg in CRC [PR 120807]

    The register_operand predicate can match subreg, then we'd have a subreg
    of subreg and it's invalid.  Use lowpart_subreg to avoid the nested
     subreg.

    gcc/ChangeLog:

            PR target/120807
            * config/loongarch/loongarch.md (crc_combine): Avoid nested
            subreg.

    gcc/testsuite/ChangeLog:

            PR target/120807
            * gcc.c-torture/compile/pr120807.c: New test.

    (cherry picked from commit 113ed3adc03f79f09ffe00d429d18f89f335b188)

Reply via email to