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

--- Comment #3 from uros at gcc dot gnu.org ---
Author: uros
Date: Mon May 14 15:53:58 2018
New Revision: 260231

URL: https://gcc.gnu.org/viewcvs?rev=260231&root=gcc&view=rev
Log:
        PR target/85756
        * config/i386/i386.md: Disallow non-commutative arithmetics in
        last twpeephole for mem {+,-,&,|,^}= x; mem != 0 after cmpelim
        optimization.  Use COMMUTATIVE_ARITH_P test rather than != MINUS
        in the peephole2 before it.

testsuite/ChangeLog:

        * gcc.c-torture/execute/pr85756.c: New test.


Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr85756.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.md
    trunk/gcc/testsuite/ChangeLog

Reply via email to