re PR rtl-optimization/70467 (Useless "and [esp],-1" emitted on AND with uint64_t...
authorJakub Jelinek <jakub@redhat.com>
Fri, 1 Apr 2016 16:08:21 +0000 (18:08 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 1 Apr 2016 16:08:21 +0000 (18:08 +0200)
commit763cd859a1d87f361a88e380e849cf6f0eb10751
tree5cab43b888420f1abb496d4e7cd4c3bc22851a4d
parente7067fcdb510d363ea8dd354eb6fe6d698a83240
re PR rtl-optimization/70467 (Useless "and [esp],-1" emitted on AND with uint64_t variable)

PR rtl-optimization/70467
* config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
If low word of the last operand is 0, just emit addition/subtraction
for the high word.

* gcc.target/i386/pr70467-2.c: New test.

From-SVN: r234679
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr70467-2.c [new file with mode: 0644]