re PR rtl-optimization/49095 (Horrible code generation for trivial decrement with...
authorJakub Jelinek <jakub@redhat.com>
Sun, 29 May 2011 18:51:48 +0000 (20:51 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 29 May 2011 18:51:48 +0000 (20:51 +0200)
commit3f831b7d309cd3806db70da6b5c05faa29d33168
treee3942ff4a32ccdefecf128d160069a33707c0ecd
parentfb03a37e57f31ad176cd901fcc39243d524d4cd4
re PR rtl-optimization/49095 (Horrible code generation for trivial decrement with test)

PR rtl-optimization/49095
* config/i386/predicates.md (plusminuslogic_operator): New predicate.
* config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.

* gcc.target/i386/pr49095.c: New test.

From-SVN: r174413
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/config/i386/predicates.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr49095.c [new file with mode: 0644]