Skip to contentSkip to conversation

What does that "%U0" and "%X0" mean

DISCUSSION [email protected] 2 participants 2 messages Oct 7, 2005

lore
Share & tools
lore
#0 lore raw

What does that "%U0" and "%X0" mean in
__asm__ __volatile__("stb%U0%X0 %1,%0; eieio" : "=m" (*addr) : "r" (val));

does any reference existing ?

#1 lore raw
Quoted 4 lines · [email protected] wrote:

What does that "%U0" and "%X0" mean in
__asm__ __volatile__("stb%U0%X0 %1,%0; eieio" : "=m" (*addr) : "r" (val));

does any reference existing ?

The X and U prefixes are arch specific. This looks like ppc code. The only references I've every found are the gcc source code. The gcc source says:

U: Print 'u' if this has an auto-increment or auto-decrement.
X: Print 'x' if this is an indexed address.

--
Brian Gerst