inline assembly issue

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

 



Hi,

I'm using inline assembly for my custom instruction on SPARC architecture.

For my custom instruction, the output and input register cannot be the same
one, otherwise get error. Can you suggest how to modify my inline
instruction to have this feature:

asm_volatile (
      "cpop1 [%1 + %%g0], %0"
     : =r(tasknum)
     : r (cmd));

Only two register involved in this command, %1 to input command, %0 to
output value. 

Is there any way to tell the compiler not let them have the same register,
or some way to tie them to specific register (o1, o2 should be ok).

Thanks,

-- 
View this message in context: http://www.nabble.com/inline-assembly-issue-tp23655722p23655722.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[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