This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/28038] Double to char conversion fails at 32769.0
- From: "barryb at cwipapps dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2006 15:54:17 -0000
- Subject: [Bug c/28038] Double to char conversion fails at 32769.0
- References: <bug-28038-12832@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from barryb at cwipapps dot net 2006-06-15 15:54 -------
The integers in the example ARE all within the range of unsigned short.
Therefore Falk's comments may be true, but are not relevant.
Note also that the same code works as expected on sparc.
We think that the problem lies in the generation of fistps rather than fistpl
opcodes, since the latter seems to work.
Somehow, MySQL AB have found a way to compile such expressions correctly in
their
4.0.23 function, scramble()
--
barryb at cwipapps dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |barryb at cwipapps dot net
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28038