[Bug rtl-optimization/105711] [12 Regression] ICE: in simplify_subreg, at simplify-rtx.cc:7346 with -O2 --param=sccvn-max-alias-queries-per-access=0 since r12-6173-g9ff206d3865df5cb

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 2 09:40:00 GMT 2022


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

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

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

commit r12-8451-gcdd93e5b88e6aab832509d7aabed6cfd2d014c58
Author: Richard Biener <rguenther@suse.de>
Date:   Tue May 24 10:09:25 2022 +0200

    middle-end/105711 - properly handle CONST_INT when expanding bitfields

    This is another place where we fail to pass down the mode of a
    CONST_INT.

    2022-05-24  Richard Biener  <rguenther@suse.de>

            PR middle-end/105711
            * expmed.cc (extract_bit_field_as_subreg): Add op0_mode parameter
            and use it.
            (extract_bit_field_1): Pass down the mode of op0 to
            extract_bit_field_as_subreg.

            * gcc.target/i386/pr105711.c: New testcase.

    (cherry picked from commit 91c7c5edd2c1d31bf379be1d077b39644391cc31)


More information about the Gcc-bugs mailing list