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

--- Comment #6 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:560766f6e239a8192c42ac5f009f0a4ee2478a61

commit r16-7464-g560766f6e239a8192c42ac5f009f0a4ee2478a61
Author: Vladimir N. Makarov <[email protected]>
Date:   Wed Feb 11 13:46:34 2026 -0500

    [PR121191, LRA]: Check int modes to generate the right subreg offset when
matching reload regs of different modes

    In the PR test case (gcc.c-torture/compile/pr35318.c), LRA chose to
    match operands in DFmode and SImode modes.  On big endian targets,
    this resulted in wrong subreg offset generation and wrong insn
    generation.  The offset would be right if the both operands were
    scalar integers (see call of reload.cc:operands_match_p in
    recog.cc:constrain_operands).  The patch solves the problem.

    gcc/ChangeLog:

            PR rtl-optimization/121191
            * lra-constraints.cc (get_matching_reload_reg_subreg): New.
            (get_reload_reg, match_reload): Use it.

Reply via email to