qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 09/21] target-mips: redefine Integer Multiply an


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH 09/21] target-mips: redefine Integer Multiply and Divide instructions
Date: Fri, 30 May 2014 09:57:44 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

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~




reply via email to

[Prev in Thread] Current Thread [Next in Thread]