From: Tim Prince <tprince@myrealbox.com>
To: Mohamed Shafi <shafitvm@gmail.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Moving long long int using inline asm
Date: Thu, 01 Feb 2007 09:34:00 -0000 [thread overview]
Message-ID: <45C1B420.9080009@myrealbox.com> (raw)
In-Reply-To: <ba0bd44d0702010029haf80d65r9a0b2352a6b8e5e8@mail.gmail.com>
Mohamed Shafi wrote:
> Hello all,
>
> There are two variables
> long long var1;
> long long var2;
>
> Using inline assembly how will i be able to move the value from var1
> to var2,
> i.e var2 = var1
>
> The architecture has only a 32 bit move instruction say mov32
> Something like
>
> asm( "mov32 %0, %1" : "=r"(var2) : "r"(var1) );
>
> would have worked fine for 32bit data types.What is the similar syntax
> for 64 bit data types?
>
> Can someone help me?
>
As you don't care to reveal enough details to permit an answer, you
might start by checking how your copy of gcc does it for your target
(e.g. gcc -S...). If you don't care to do that, you have no business
with asm.
prev parent reply other threads:[~2007-02-01 9:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-01 8:29 Mohamed Shafi
2007-02-01 9:34 ` Tim Prince [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=45C1B420.9080009@myrealbox.com \
--to=tprince@myrealbox.com \
--cc=gcc-help@gcc.gnu.org \
--cc=shafitvm@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).