Moving long long int using inline asm
Mohamed Shafi
shafitvm@gmail.com
Thu Feb 1 08:29:00 GMT 2007
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
More information about the Gcc-help
mailing list