re PR target/85683 (GCC 8 stopped using RMW (Read Modify Write) instructions on x86...
authorJakub Jelinek <jakub@redhat.com>
Tue, 8 May 2018 16:17:34 +0000 (18:17 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 8 May 2018 16:17:34 +0000 (18:17 +0200)
commit1eac383063f6d91d9fa052c06d46816c6485c8da
tree8d75a53ddf3cfe2cabbcfb205cbeac8aa775733a
parent41c3db9f28afae381b1f4cb18ac370fcd3da8706
re PR target/85683 (GCC 8 stopped using RMW (Read Modify Write) instructions on x86[_64])

PR target/85683
* config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0
after cmpelim optimization.

* gcc.target/i386/pr49095.c: Add -masm=att to dg-options.  Add
scan-assembler-times checking that except for [fh]*xor other functions
don't use any load instructions.

From-SVN: r260045
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr49095.c