This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug c/14582] float to unsigned int conversion fills only 16 of 32 bits


------- 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


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