https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98722
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Przemyslaw Wirkus <wir...@gcc.gnu.org>: https://gcc.gnu.org/g:1791b11d9cae388ae18a768eeb96c998439c986a commit r10-9881-g1791b11d9cae388ae18a768eeb96c998439c986a Author: Vladimir N. Makarov <vmaka...@redhat.com> Date: Wed Jan 20 11:40:14 2021 -0500 [PR98722] LRA: Check that target has no 3-op add insn to transform 2 plus expression. Patch cf2ac1c30af0fa783c8d72e527904dda5d8cc330 for solving PR97969 was assumed for targets with absent 3-op add insn. But the original patch did not check this. This patch adds the check. gcc/ChangeLog: PR rtl-optimization/98722 * lra-eliminations.c (eliminate_regs_in_insn): Check that target has no 3-op add insn to transform insns containing two pluses. gcc/testsuite/ChangeLog: PR rtl-optimization/98722 * g++.target/s390/pr98722.C: New. (cherry picked from commit 4334b524274203125193a08a8485250c41c2daa9)