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?


On Thu, Oct 11, 2001 at 08:43:57AM -0700, Zack Weinberg wrote:
> I've been talking off list with a user about his asm() problems and
> discovered something odd.
> 
> If you write
> 
>   int n;
>   asm ("frob %0" : "+r" (n));
> 
> one would generally expect n not to be put into a floating point
> register.  The user insists this is what happens.  Is this 
> (a) a bug in his port, (b) a bug in the machine-independent code, or
> (c) expected behavior which must be avoided somehow?  I must confess I
> don't know where to begin looking.

"In his port"?  So this isn't x86 or something?  If so, 
it's probably a bug in the definition of the register 
classes.


r~


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