Pelles C forum

Pelles C => Bug reports => Topic started by: oforshell on February 14, 2011, 10:51:06 PM

Title: error in __stosq intrinsic
Post by: oforshell on February 14, 2011, 10:51:06 PM
I use __stosq in a wrapper:

__inline void set8  (unsigned long long val,void *dstp,int count) {__stosq(dstp,val,count);}

I call it like this:

set8 (0x0203040506070809,buffer,sizeof(buffer)/8);

and get:

C:\Software\Projects\x86-64\sredump\sredump.c(24): warning #3110: [asm] Integer value too large for 32 bits.

This is because the intrinsic has the second parameter declared as eax (or at least tries to fit 0x0203040506070809 into eax) istdo rax.
Title: Re: error in __stosq intrinsic
Post by: Pelle on April 17, 2011, 03:53:29 PM
Confirmed. Should be fixed in 6.50, RC4.