[Bug rtl-optimization/126276] [17 Regression] Recent change breaks cris-elf

"cvs-commit at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126276

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Roger Sayle <[email protected]>:

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

commit r17-2792-gb349b554d10aac80e242c1749c69764bbabc9006
Author: Roger Sayle <[email protected]>
Date:   Wed Jul 29 17:39:42 2026 +0100

    cris: PR rtl-optimization/126276: Restore build on cris-elf.

    This patch resolves PR rtl-optimization/126276 which is a target-specific
    regression on CRIS, triggered by a recent RTL simplification improvement.
    The underlying problem is that cris.md's *cbranch<mode>4_btstrq1_<CC>
    accepts more machines modes than the define_insn it is lowering to.
    Fixed by adding the necessary modes to the *btst<mode> define_insn.

    2026-07-29  Roger Sayle  <[email protected]>

    gcc/ChangeLog
            PR target/126276
            * config/cris/cris.md (*btst<BWD><ZnNNZSET): Handle BWD modes,
            not just SImode.
            (*cbranch<mode>4_btstrq1_<CC>): Likewise.
            (*cbranch<mode>4_btstqb0_<CC>): Likewise.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.