Specify named registers for ARM inline asm

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

 



For ARM, is there a way to directly load a named register in inline asm?
Registers may be named in the clobber list, but not in the input or
output lists.

I would like to do this:

  asm( "stuff" :: "r1" (xxx) );

but instead have to do this:

  asm( "mov r1,%0; stuff" :: "r" (xxx) : "r1" );

Its worse for "+r"

  asm( "stuff" : "+r1" (xxx) );

becomes:

  asm( "mov r1,%0; stuff; mov %0,r1" : "+r" (xxx) : "r1" );




[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