This is the mail archive of the
mailing list for the GCC project.
asm, 'r' constraint, floating point registers?
- To: gcc at gcc dot gnu dot org
- Subject: asm, 'r' constraint, floating point registers?
- From: Zack Weinberg <zack at codesourcery dot com>
- Date: Thu, 11 Oct 2001 08:43:57 -0700
I've been talking off list with a user about his asm() problems and
discovered something odd.
If you write
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.