This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Documentation on {} and | in inline asm to allow Intel syntax?
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 08 Nov 2004 15:40:25 +1300
- Subject: Documentation on {} and | in inline asm to allow Intel syntax?
- Reply-to: Danny Smith <dannysmith at users dot sourceforge dot net>
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?
Thanks,
Danny