https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127326
--- 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:481222de94ad9eac9ecdb5f3fea7f82d5fda7443 commit r17-4580-g481222de94ad9eac9ecdb5f3fea7f82d5fda7443 Author: Vladimir N. Makarov <[email protected]> Date: Tue Sep 22 13:42:38 2026 -0400 [PR 127326][LRA]: Implement fallback to memory for memory and reg constraint LRA correctly works for 'rm' constraint when register can not hold value of given mode. For 'g' constraint, LRA fails as it correctly considers the constraint can be satisfied but tries to use hard register which can not be in given mode. The patch fixes this. gcc/ChangeLog: PR rtl-optimization/127326 * lra-constraints.cc (process_alt_operands): Ignore register if constraint describes memory and register which can not hold the mode value. gcc/testsuite/ChangeLog: PR rtl-optimization/127326 * gcc.target/i386/pr127326.c: New.
