re PR rtl-optimization/82628 (wrong code at -Os on x86_64-linux-gnu in the 32-bit...
authorUros Bizjak <ubizjak@gmail.com>
Sun, 22 Oct 2017 18:05:17 +0000 (20:05 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sun, 22 Oct 2017 18:05:17 +0000 (20:05 +0200)
commit8cc857f9490dd71c311b529c4284f54a597e97bd
tree28116b37107e98d67df1d6b2658b08b08dab6377
parent00c378a954da643639e9e311fb713f908b0b0cc2
re PR rtl-optimization/82628 (wrong code at -Os on x86_64-linux-gnu in the 32-bit mode)

PR target/82628
* config/i386/i386.md (cmp<dwi>_doubleword): New pattern.
* config/i386/i386.c (ix86_expand_branch) <case E_TImode>:
Expand with cmp<dwi>_doubleword.

testsuite/ChangeLog:

PR target/82628
* gcc.dg/torture/pr82628.c: New test.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r253985
gcc/config/i386/i386.c
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr82628.c [new file with mode: 0644]