public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Hans-Peter Nilsson <hp@bitrange.com>
To: Rohit Arul Raj <rohitarulraj@gmail.com>
Cc: gcc <gcc@gcc.gnu.org>
Subject: Re: clobber CC for arithmetic instructions
Date: Wed, 17 Aug 2011 06:57:00 -0000	[thread overview]
Message-ID: <alpine.BSF.2.00.1108170253070.84030@dair.pair.com> (raw)
In-Reply-To: <CAPVMLfWQcJyUoWmoR9pJ2bqek6ANi6-J0c+QDy5UVOEJQ8DoiQ@mail.gmail.com>

On Wed, 17 Aug 2011, Rohit Arul Raj wrote:
> On Sat, Aug 13, 2011 at 5:20 AM, Hans-Peter Nilsson <hp@bitrange.com> wrote:
> >> On Fri, Aug 12, 2011 at 12:17 PM, Rohit Arul Raj <rohitarulraj@gmail.com> wrote:
> >> > Setting the CCR register is done by a built-in function.
> >
> > Why is this user-controllable?

?

> > My first thought is that this is misguided.
> > Is this just a sketch or do you already have code using it?
> >
>
> We already have code using this :).

Hm.  Well, I don't see how user code can observe the state other
than through asms or called functions so you could supposedly
just set a variable in the builtin and set CCR to that value
before an asm, call or return...  But now I'm telling you
obvious things.  Good luck.

brgds, H-P

      reply	other threads:[~2011-08-17  6:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-12  6:48 Rohit Arul Raj
2011-08-12  9:48 ` Rohit Arul Raj
2011-08-12 10:21   ` Richard Guenther
2011-08-12 23:51   ` Hans-Peter Nilsson
2011-08-13  0:18     ` Hans-Peter Nilsson
2011-08-17  5:59     ` Rohit Arul Raj
2011-08-17  6:57       ` Hans-Peter Nilsson [this message]

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=alpine.BSF.2.00.1108170253070.84030@dair.pair.com \
    --to=hp@bitrange.com \
    --cc=gcc@gcc.gnu.org \
    --cc=rohitarulraj@gmail.com \
    /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).