This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/14582] float to unsigned int conversion fills only 16 of 32 bits
- From: "sebastian dot tusk at gmx dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2004 17:10:23 -0000
- Subject: [Bug c/14582] float to unsigned int conversion fills only 16 of 32 bits
- References: <20040315161026.14582.sebastian.tusk@gmx.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From sebastian dot tusk at gmx dot net 2004-03-15 17:10 -------
I realized that omitting the "-masm=intel" flag solves the problem. The compiler
is still not 100 percent correct as it produces "fistpll -24(%ebp)" where
"fistpl -24(%ebp)" should be sufficient. But besides writing 4 bytes more than
necessary no harm is done.
That fistpll seems to be the same problem as that QWORD suffix in the intel
style assembler. The difference is that fistpll lands correctly in the binary in
contrast to the intel version where "fistp WORD PTR []" appears in the binary.
So in fact there could be two problems.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14582