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

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

https://gcc.gnu.org/g:5a16651495171d8e6f60df29757f2b396e30a2d5

commit r16-8158-g5a16651495171d8e6f60df29757f2b396e30a2d5
Author: Vladimir N. Makarov <[email protected]>
Date:   Wed Mar 18 15:12:00 2026 -0400

    [PR124041, PR124439, LRA]: Check hard_regno_mode_ok for hard reg subreg to
satisfy reg constraint

    Patch for PR124041 resulted in wrong code generation and in new
    PR124439 as the patch prevented equivalence substitution when
    equivalence initialization insn was removed.

    This patch implements another fix for PR124041 and this fixes
    PR124439.

    gcc/ChangeLog:

            PR rtl-optimization/124041
            PR rtl-optimization/124439
            * lra-constraints.cc (process_alt_operands): Check hard reg subreg
            mode by hard_regno_mode_ok.
            (curr_insn_transform): Always subsitute equivalence for hard reg
            subreg.

Reply via email to