public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Nathan Sidwell <nathan@codesourcery.com>
To: Rayappan.External@infineon.com
Cc: gcc-help@gcc.gnu.org
Subject: Re: Inline assembly
Date: Mon, 06 Jun 2005 15:33:00 -0000	[thread overview]
Message-ID: <42A46CBA.6030701@codesourcery.com> (raw)
In-Reply-To: <04EE7AD0450F7B498BA216312943A1A11D9EA1@blrse201.ap.infineon.com>

Rayappan.External@infineon.com wrote:
> Hi,
> 
> This kind of inline assembly is given in the GCC Test suits
> 
> asm ("" : "=r" (tmp) : "0" (tmp));
> 
> As per my understanding the input and output remains in the same
> register.But there is no instruction in the first double coats("").
> 
> The Question is 
> 
> What will be the value of r(tmp) after this instruction.Whether it is
> equivalent to

tmp will be unchanged from whatever was in it before.  TGhe "0" is a constraint 
saying tmp should start out in the same register as the result of that asm.

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

  reply	other threads:[~2005-06-06 15:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-06 12:53 Rayappan.External
2005-06-06 15:33 ` Nathan Sidwell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-01-05  1:07 Harald Dankworth
2000-01-05 10:13 ` d_cary
2000-01-07  6:31   ` Harald Dankworth
2000-04-01  0:00     ` Harald Dankworth
2000-04-01  0:00   ` d_cary
2000-04-01  0:00 ` Harald Dankworth

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=42A46CBA.6030701@codesourcery.com \
    --to=nathan@codesourcery.com \
    --cc=Rayappan.External@infineon.com \
    --cc=gcc-help@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).