On Sun, Jun 18, 2023 at 1:10 PM Roger Sayle <ro...@nextmovesoftware.com> wrote:
>
>
> This patch refactors the three places in the i386.md backend that we
> set the carry flag into a new ix86_expand_carry helper function, that
> allows Jakub's recently added uaddc<mode>5 and usubc<mode>5 expanders
> to take advantage of the recently added support for the stc instruction.
>
> This patch has been tested on x86_64-pc-linux-gnu with make bootstrap
> and make -k check, both with and without --target_board=unix{-m32}
> with no new failures.  Ok for mainline?
>
>
> 2023-06-18  Roger Sayle  <ro...@nextmovesoftware.com>
>
> gcc/ChangeLog
>         * config/i386/i386-expand.cc (ix86_expand_carry): New helper
>         function for setting the carry flag.
>         (ix86_expand_builtin) <handlecarry>: Use it here.
>         * config/i386/i386-protos.h (ix86_expand_carry): Prototype here.
>         * config/i386/i386.md (uaddc<mode>5): Use ix86_expand_carry.
>         (usubc<mode>5): Likewise.

OK.

Thanks,
Uros.

>
> Thanks in advance,
> Roger
> --
>

Reply via email to