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