linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* ppc inline asm syntax
@ 2007-01-13 11:41 yuraxa
  2007-01-13 13:20 ` Andreas Schwab
  0 siblings, 1 reply; 5+ messages in thread
From: yuraxa @ 2007-01-13 11:41 UTC (permalink / raw)
  To: linuxppc-dev

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.  For example:

__asm__ __volatile__("lwz%U1%X1 %0,%1;\n"
                              "twi 0,%0,0;\n"
                              "isync" : "=r" (ret) : "m" (*addr));

Can you explain me please  howto interpret 'lwz%U1%X1'  format string
in the assembler template line? Some other of them are:

'stw%U0%X0'   etc...

I can't find any help on this topic on the web.

Thanks a'lot,
Yury.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-01-13 23:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-13 11:41 ppc inline asm syntax yuraxa
2007-01-13 13:20 ` Andreas Schwab
2007-01-13 18:28   ` yuraxa
2007-01-13 23:09     ` Alan Modra
2007-01-13 23:48     ` Paul Mackerras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).