commutative asm operands

Alan Modra amodra@bigpond.net.au
Mon Aug 5 16:38:00 GMT 2002


On Tue, Aug 06, 2002 at 01:13:56AM +0200, Roman Zippel wrote:
> On Mon, 5 Aug 2002, Alan Modra wrote:
> >         addc 3, 5, 3
> 
> The "3, 5, 3" line isn't correct, it's conflicting with the constraints.

Oh?  This is from (doing some renumbering of constraints)

  asm ("addc %0, %1, %2" : "=r" (a) : "%0" (c), "r" (a));

Or expanding the "%" constraint:

  asm ("addc %0, %1, %2" : "=r,r" (a) : "0,r" (c), "r,0" (a));

Tell me why this conflicts.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Gcc mailing list