2005-10-07 12:08:40

by sampersy

[permalink] [raw]
Subject: What does that "%U0" and "%X0" mean

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

does any reference existing ?


2005-10-07 12:45:52

by Brian Gerst

[permalink] [raw]
Subject: Re: What does that "%U0" and "%X0" mean

[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