From: Paul Koning <paulkoning@comcast.net>
To: sotrdg sotrdg <euloanty@live.com>
Cc: GCC Development <gcc@gcc.gnu.org>,
"gcc-request@gcc.gnu.org" <gcc-request@gcc.gnu.org>,
"gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: Re: __builtin_addc support??
Date: Wed, 27 Oct 2021 12:36:43 -0400 [thread overview]
Message-ID: <058A01F7-6073-4F1D-994A-4D6748126173@comcast.net> (raw)
In-Reply-To: <CH2PR02MB65225B964A39D84CE8EF708CB2859@CH2PR02MB6522.namprd02.prod.outlook.com>
> On Oct 27, 2021, at 12:12 PM, sotrdg sotrdg via Gcc <gcc@gcc.gnu.org> wrote:
>
> 79173 – add-with-carry and subtract-with-borrow support (x86_64 and others) (gnu.org)<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79173>
>
> What I find quite interesting is things like this.
>
> Since llvm clang provides __builtin_addc __builtin_subc for all targets. Can we provide something similar? Since currently no solutions we can access carry flag besides x86
Certainly some other targets could do this. The LLVM builtins explicitly expose carry, which isn't actually what you want (you'd want the carry flag in the condition code to be propagated). Presumably optimization would eliminate those explicit arguments and reduce them to CC references.
paul
next prev parent reply other threads:[~2021-10-27 16:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-27 16:12 sotrdg sotrdg
2021-10-27 16:36 ` Paul Koning [this message]
2021-10-27 16:54 ` sotrdg sotrdg
2021-10-27 23:16 ` Segher Boessenkool
2021-10-27 23:22 ` sotrdg sotrdg
2021-10-27 23:23 ` sotrdg sotrdg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=058A01F7-6073-4F1D-994A-4D6748126173@comcast.net \
--to=paulkoning@comcast.net \
--cc=euloanty@live.com \
--cc=gcc-help@gcc.gnu.org \
--cc=gcc-request@gcc.gnu.org \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).