ppc inline asm syntax

yuraxa ygeorgie at gmail.com
Sun Jan 14 05:28:39 EST 2007


> > Hi, i'm writing some inline assembly for ppc.
> > Grepping linux src code for examples i found syntax that i can't
> > understand, but as i can see it's frequently used.
>
> There is some documentation in the GCC internals manual, see
> <http://gcc.gnu.org/onlinedocs/gccint/Output-Template.html>.  The ppc
> specific operand modifiers are only documented in the GCC source, see
> print_operand in
> <http://gcc.gnu.org/viewcvs/trunk/gcc/config/rs6000/rs6000.c?view=markup>.
>
> Andreas.
>

Thanks a'lot, It helps! But may be you'll be so graceful to explain
more precisely?
I don't quite understand how the final string will look like...
For 'U' operand modifier the comment is:
/* Print `u' if this has an auto-increment or auto-decrement.  */
But for 'X' operand modifier there is no comment at all.

Thanks in advance,
Yury.



More information about the Linuxppc-dev mailing list