https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89865
--- Comment #23 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Mon Apr 8 12:35:22 2019 New Revision: 270205 URL: https://gcc.gnu.org/viewcvs?rev=270205&root=gcc&view=rev Log: PR rtl-optimization/89865 * config/i386/i386.md (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand numbers not to clash with the additional operands[4]. (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s with extra register copy in the middle. * gcc.target/i386/pr49095.c: Adjust number of expected RMW spots on ia32. Modified: trunk/gcc/ChangeLog trunk/gcc/config/i386/i386.md trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.target/i386/pr49095.c