Documentation on {} and | in inline asm to allow Intel syntax?
Andrew Pinski
pinskia@physics.uc.edu
Mon Nov 8 02:55:00 GMT 2004
On Nov 7, 2004, at 9:40 PM, Danny Smith wrote:
> Hi,
>
> I can't find documentation on the use of {} and | in inline asm
> (as in this from libstdc++-v3/config/cpu/i486/atomicity.h)
>
> __asm__ __volatile__ ("lock; xadd{l} {%0,%1|%1,%0}"
> ....)
> to allow Intel syntax in addition to default AT&T
>
> Specifically, can anyone tell me when this feature was introduced?
This is just like in the i386.md (and rs6000.md) file, it says to use
the alternative spelling of an instruction. I think when intel
syntax support was added to the GCC when this was support. But the
support for this feature has been in GCC since rs6000 support was added
or at least before the EGCS split.
(I was the one who fixed up the libstdc++ headers for use of the
alternative
spelling for x86).
Thanks,
Andrew Pinski
More information about the Gcc
mailing list