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]

Re: asm, 'r' constraint, floating point registers?


>>>>> Zack Weinberg writes:

Zack> int n;
Zack> asm ("frob %0" : "+r" (n));

Zack> one would generally expect n not to be put into a floating point
Zack> register.  The user insists this is what happens.  Is this 
Zack> (a) a bug in his port, (b) a bug in the machine-independent code, or
Zack> (c) expected behavior which must be avoided somehow?  I must confess I
Zack> don't know where to begin looking.

	I thought that "+" was not allowed in inlined assembly.  It is
correct for a machine description, but not user inlined assembly.  Or has
that restriction been lifted?

David


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