re PR rtl-optimization/82628 (wrong code at -Os on x86_64-linux-gnu in the 32-bit...
authorJakub Jelinek <jakub@redhat.com>
Tue, 24 Oct 2017 10:44:56 +0000 (12:44 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 24 Oct 2017 10:44:56 +0000 (12:44 +0200)
commitb75200689b0d86be5c3b91afb7303575359622ae
treeffea2d11e20212b983fdd0aaa7477e99a37899ee
parent585a449d7307c46919fa9b2d6a0ee63fcb692789
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 (addcarry<mode>, subborrow<mode>): Change
patterns to better describe from which operation the CF is computed.
(addcarry<mode>_0, subborrow<mode>_0): New patterns.
* config/i386/i386.c (ix86_expand_builtin) <case handlecarry>: Pass
one LTU with [DT]Imode and another one with [SD]Imode.  If arg0
is 0, use _0 suffixed expanders instead of emitting a comparison
before it.

From-SVN: r254039
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.md