qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 5/9] target-sh4: optimize negc using add2 and


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH v2 5/9] target-sh4: optimize negc using add2 and sub2
Date: Tue, 24 Dec 2013 06:25:32 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 12/22/2013 03:50 AM, Aurelien Jarno wrote:
> +            TCGv t0 = tcg_const_i32(0);
> +            tcg_gen_add2_i32(REG(B11_8), cpu_sr_t,
> +                             REG(B7_4), t0, cpu_sr_t, t0);
> +            tcg_gen_sub2_i32(REG(B11_8), cpu_sr_t,
> +                             t0, t0, REG(B11_8), cpu_sr_t);

While this formulation is correct, I wonder why you strayed from the two
subtracts model of subc, since negc is similarly described in the manual?

Otherwise,

Reviewed-by: Richard Henderson <address@hidden>


r~



reply via email to

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