This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: matching constraints in asm operands question
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Peter Barada <peter at the-baradas dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 1 Mar 2005 19:59:20 -0500
- Subject: Re: matching constraints in asm operands question
- References: <20050302005404.4C14F9842C@baradas.org>
On Mar 1, 2005, at 7:54 PM, Peter Barada wrote:
which seems to work, but I'm really concerned about the manuals
warning of the input and output operads being in seperate places.
Which form is correct?
static __inline__ void atomic_inc(atomic_t *v)
{
__asm__ __volatile__("addql #1,%0" : "+m" (*v));
}
Works just fine, every where I know of. It is the same as you last
example also.
-- Pinski