This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Bad constraint in asm
- To: gcc at gcc dot gnu dot org
- Subject: Bad constraint in asm
- From: Christian Iseli <chris at ludwig-alpha dot unil dot ch>
- Date: Fri, 30 Mar 2001 16:41:51 +0200
Hi folks,
Current GCC 3.0 from CVS tells me that in the following piece of code:
static inline long QRound (float inval)
{
long ret;
asm ("fistpl %0" : "=m" (ret) : "t" (inval) : "st");
return ret;
}
I have bad constraints for the asm. Since I know zilch about x86 assembly and
constraints, could anybody tell me what's wrong, and how to rewrite it
correctly for GCC 3.0 ? Older GCC (2.95.x) seem to accept this...
TIA.
Cheers,
Christian