[Bug target/15470] Incorrect floating-point generation on Pentium 4 with -mno-fp-ret-in-387
belyshev at lubercy dot com
gcc-bugzilla@gcc.gnu.org
Mon May 17 01:58:00 GMT 2004
------- Additional Comments From belyshev at lubercy dot com 2004-05-16 18:09 -------
Created an attachment (id=6312)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6312&action=view)
minimized testcase (124 bytes)
cat > bug.i << EOF
extern double cos (double);
extern int printf (const char *, ...);
int main ()
{
printf ("%f\n", cos (0.5));
return 0;
}
EOF
gcc bug.i -lm -mno-fp-ret-in-387
./a.out
0.000000
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15470
More information about the Gcc-bugs
mailing list