https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124079
--- Comment #4 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:498983d96193517a4854deb2775dc4478063199c commit r16-7506-g498983d96193517a4854deb2775dc4478063199c Author: Vladimir N. Makarov <[email protected]> Date: Fri Feb 13 13:58:41 2026 -0500 [PR124079, LRA]: Fix broken s390 SPEC2017 benchmarks Recent patch for PR121191 broke compilation of s390 SPEC benchmarks. This patch fixes it. The patch uses existing lra_constraint_offset to calculate offsets. The same function is used to find invalid matching reloads. gcc/ChangeLog: PR rtl-optimization/124079 * lra-constraints.cc (get_matching_reload_reg_subreg): Add new arg rclass. Use another condition to use lowpart_subreg. Use lra_constraint_offset to calculate the subreg offset. (get_reload_reg, match_reload): Pass the new arg. gcc/testsuite/ChangeLog: PR rtl-optimization/124079 * gcc.target/s390/pr124079.c: New.
