Re: Inline assembly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rayappan.External@xxxxxxxxxxxx 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@xxxxxxxxxxxxxxxx    ::     http://www.planetfall.pwp.blueyonder.co.uk


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux