diff options
author | Roger Sayle <roger@nextmovesoftware.com> | 2023-06-18 17:39:13 +0100 |
---|---|---|
committer | Roger Sayle <roger@nextmovesoftware.com> | 2023-06-18 17:39:13 +0100 |
commit | af29d0d6b75f9e5ad69820488972027fe4634850 (patch) | |
tree | 44d881bd9e67661e824ee2cf761f2ce020d6eef1 /gcc/tree-vectorizer.h | |
parent | 55686e6601b3633a515afad1358d71c7b2d565e2 (diff) | |
download | gcc-af29d0d6b75f9e5ad69820488972027fe4634850.zip gcc-af29d0d6b75f9e5ad69820488972027fe4634850.tar.gz gcc-af29d0d6b75f9e5ad69820488972027fe4634850.tar.bz2 |
i386: Refactor new ix86_expand_carry to set the carry flag.
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.
2023-06-18 Roger Sayle <roger@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.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions