re PR rtl-optimization/70467 (Useless "and [esp],-1" emitted on AND with uint64_t...
authorJakub Jelinek <jakub@redhat.com>
Tue, 3 May 2016 11:45:04 +0000 (13:45 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 3 May 2016 11:45:04 +0000 (13:45 +0200)
commit31ed166586451e3955d0da9c7931c71da968eee4
tree1ce1e1bae4e7829ce25014d49a2a894842c9b7d1
parente7437b594f9c54bc07a2ef0bda9801ce62b1eab7
re PR rtl-optimization/70467 (Useless "and [esp],-1" emitted on AND with uint64_t variable)

PR rtl-optimization/70467
* config/i386/predicates.md (x86_64_hilo_int_operand,
x86_64_hilo_general_operand): New predicates.
* config/i386/constraints.md (Wd): New constraint.
* config/i386/i386.md (mode attr di): Use Wd instead of e.
(general_hilo_operand): New mode attr.
(add<mode>3, sub<mode>3): Use <general_hilo_operand>
instead of <general_operand>.
(*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
x86_64_hilo_general_operand instead of <general_operand>.

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

Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>
From-SVN: r235816
gcc/ChangeLog
gcc/config/i386/constraints.md
gcc/config/i386/i386.md
gcc/config/i386/predicates.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr70467-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr70467-4.c [new file with mode: 0644]