------- Comment #3 from magnus dot christensson at acm dot org 2009-10-05 11:34 ------- I suspect that the problem is that an optimization path does not properly distinguish between signed and unsigned comparisons. You get the same behavior if you remove the "int32 int_res = res;" line and let the following code operate on "res".
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41577