PR target/82628
commit4065f60aebbe2cb4efeb2d408ab3b4d05365e4cf
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Oct 2017 10:44:56 +0000 (24 10:44 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Oct 2017 10:44:56 +0000 (24 10:44 +0000)
treeffea2d11e20212b983fdd0aaa7477e99a37899ee
parent7c5c4b3763e5f723ce1501fcd1b11a56c67e87b8
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254039 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.md