[Bug rtl-optimization/102031] [12 Regression] ICE in simplify_truncation, at simplify-rtx.c:620 since r12-3074-g7e5f9ead16d7514b3baa0254084de94f0bfcd216

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 24 21:08:49 GMT 2021


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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Roger Sayle <sayle@gcc.gnu.org>:

https://gcc.gnu.org/g:81e1894456bc6214c0c42148ff2b1bed142a3545

commit r12-3130-g81e1894456bc6214c0c42148ff2b1bed142a3545
Author: Roger Sayle <roger@nextmovesoftware.com>
Date:   Tue Aug 24 22:07:41 2021 +0100

    [Committed] PR middle-end/102031: Fix typo/mistake in simplify_truncation
patch.

    My apologies again.  My patch to simplify truncations of SUBREGs in
    simplify-rtx.c contained an error where I'd accidentally compared
    against a mode instead of the precision of that mode.  Grr!  It even
    survived regression testing on two platforms.  Fixed below, and
    committed as obvious, after a full "make bootstrap" and "make -k check"
    on x86_64-pc-linux-gnu with no new regressions.

    2021-08-24  Roger Sayle  <roger@nextmovesoftware.com>

    gcc/ChangeLog
            PR middle-end/102031
            * simplify-rtx.c (simplify_truncation): When comparing precisions
            use "subreg_prec" variable, not "subreg_mode".


More information about the Gcc-bugs mailing list