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/28038] Double to char conversion fails at 32769.0



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


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