On 05/30/2014 07:47 AM, Leon Alrae wrote: > + case R6_OPC_MUL: > + { > + TCGv_i32 t2 = tcg_temp_new_i32(); > + TCGv_i32 t3 = tcg_temp_new_i32(); > + tcg_gen_trunc_tl_i32(t2, t0); > + tcg_gen_trunc_tl_i32(t3, t1); > + tcg_gen_muls2_i32(t2, t3, t2, t3);
Use tcg_gen_mul_i32, since you discard the high part. Same with all of the other low-part multiplies. r~