Moving long long int using inline asm

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

 



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?

Thanks in advance.

Regards,
Shafi

[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