This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: commutative asm operands


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]