This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: An ia32 LOCK/XADD bug.
- To: amodra at one dot net dot au
- Subject: Re: An ia32 LOCK/XADD bug.
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 17 May 2001 00:54:11 -0700
- Cc: "H . J . Lu" <hjl at lucon dot org>, GNU C Library <libc-alpha at sourceware dot cygnus dot com>, binutils at sourceware dot cygnus dot com
- References: <20010516125536.A6006@lucon.org> <20010517001556.B16213@lucon.org><20010517172055.A14368@squeak.one.net.au>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
amodra@one.net.au writes:
> > 1. How to write a correct exchange_and_add? Is exchange_and_add_1 ok?
>
> I think you'll need to use "=&r" and "=&m" as output constraints.
No, why? Without the & the instruction is explained exactly right.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------