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]

Bad constraint in asm


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



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