qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v3 10/19] target-mips: add MSA I5 format instruc


From: Leon Alrae
Subject: Re: [Qemu-devel] [PATCH v3 10/19] target-mips: add MSA I5 format instruction
Date: Sun, 2 Nov 2014 17:53:44 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0

Hi Yongbok,

On 01/11/14 05:28, Yongbok Kim wrote:
> +    TCGv_i32 timm = tcg_temp_new_i32();
> +    tcg_gen_movi_i32(timm, u5);
> +
> +    switch (MASK_MSA_I5(ctx->opcode)) {
> +    case OPC_ADDVI_df:
> +        gen_helper_msa_addvi_df(cpu_env, tdf, twd, tws, timm);
> +        break;
> +    case OPC_SUBVI_df:
> +        gen_helper_msa_subvi_df(cpu_env, tdf, twd, tws, timm);
> +        break;
> +    case OPC_MAXI_S_df:
> +        tcg_gen_movi_i32(timm, s5);
> +        gen_helper_msa_maxi_s_df(cpu_env, tdf, twd, tws, timm);

I think tcg_gen_movi_i32(timm, u5) shouldn't be in front of the switch,
this operation is useless for instructions having signed immediate.
Probably it's not a big deal as tcg will optimize it out, but it needs
to be corrected at some point (the same applies to the 3RF group
introduced in patch #14). Otherwise,

Reviewed-by: Leon Alrae <address@hidden>



reply via email to

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