On 06/09/2011 03:45 AM, Kirill Batuzov wrote: > + case INDEX_op_ext8s_i32: > + return (int32_t)(int8_t)x; > + > + case INDEX_op_ext16s_i32: > + return (int32_t)(int16_t)x;
No need to cast back to a 32-bit type. They'll be extended properly for the return type which is TCGArg. And if you drop these intermediate casts, you can merge the 32 and 64-bit copies. r~