From: Leon Alrae <leon.alrae@imgtec.com>
To: Yongbok Kim <yongbok.kim@imgtec.com>
Cc: qemu-devel@nongnu.org, aurelien@aurel32.net
Subject: Re: [Qemu-devel] [PATCH v3 10/19] target-mips: add MSA I5 format instruction
Date: Sun, 2 Nov 2014 17:53:44 +0000 [thread overview]
Message-ID: <54566FA8.7090301@imgtec.com> (raw)
In-Reply-To: <1414819733-30765-11-git-send-email-yongbok.kim@imgtec.com>
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 <leon.alrae@imgtec.com>
next prev parent reply other threads:[~2014-11-02 17:54 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-01 5:28 [Qemu-devel] [PATCH v3 00/19] target-mips: add MSA module Yongbok Kim
2014-11-01 5:28 ` [Qemu-devel] [PATCH v3 01/19] target-mips: add MSA defines and data structure Yongbok Kim
2014-11-01 5:28 ` [Qemu-devel] [PATCH v3 02/19] target-mips: add MSA exceptions Yongbok Kim
2014-11-01 5:28 ` [Qemu-devel] [PATCH v3 03/19] target-mips: remove duplicated mips/ieee mapping function Yongbok Kim
2014-11-01 5:28 ` [Qemu-devel] [PATCH v3 04/19] target-mips: stop translation after ctc1 Yongbok Kim
2014-11-01 5:28 ` [Qemu-devel] [PATCH v3 05/19] target-mips: add MSA opcode enum Yongbok Kim
2014-11-01 5:28 ` [Qemu-devel] [PATCH v3 06/19] target-mips: add msa_reset(), global msa register Yongbok Kim
2014-11-01 5:28 ` [Qemu-devel] [PATCH v3 07/19] target-mips: add msa_helper.c Yongbok Kim
2014-11-01 5:28 ` [Qemu-devel] [PATCH v3 08/19] target-mips: add MSA branch instructions Yongbok Kim
2014-11-01 5:28 ` [Qemu-devel] [PATCH v3 09/19] target-mips: add MSA I8 format instructions Yongbok Kim
2014-11-01 5:28 ` [Qemu-devel] [PATCH v3 10/19] target-mips: add MSA I5 format instruction Yongbok Kim
2014-11-02 17:53 ` Leon Alrae [this message]
2014-11-01 5:28 ` [Qemu-devel] [PATCH v3 11/19] target-mips: add MSA BIT format instructions Yongbok Kim
2014-11-01 5:28 ` [Qemu-devel] [PATCH v3 12/19] target-mips: add MSA 3R " Yongbok Kim
2014-11-01 5:28 ` [Qemu-devel] [PATCH v3 13/19] target-mips: add MSA ELM " Yongbok Kim
2014-11-01 5:28 ` [Qemu-devel] [PATCH v3 14/19] target-mips: add MSA 3RF " Yongbok Kim
2014-11-01 5:28 ` [Qemu-devel] [PATCH v3 15/19] target-mips: add MSA VEC/2R " Yongbok Kim
2014-11-01 5:28 ` [Qemu-devel] [PATCH v3 16/19] target-mips: add MSA 2RF " Yongbok Kim
2014-11-01 5:28 ` [Qemu-devel] [PATCH v3 17/19] target-mips: add MSA MI10 " Yongbok Kim
2014-11-01 5:28 ` [Qemu-devel] [PATCH v3 18/19] disas/mips.c: disassemble MSA instructions Yongbok Kim
2014-11-01 5:28 ` [Qemu-devel] [PATCH v3 19/19] target-mips: add MSA support to mips32r5-generic Yongbok Kim
2014-11-02 20:06 ` Leon Alrae
2014-11-02 22:14 ` [Qemu-devel] [PATCH v3 00/19] target-mips: add MSA module Leon Alrae
2014-11-02 23:08 ` Peter Maydell
2014-11-03 10:54 ` Leon Alrae
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54566FA8.7090301@imgtec.com \
--to=leon.alrae@imgtec.com \
--cc=aurelien@aurel32.net \
--cc=qemu-devel@nongnu.org \
--cc=yongbok.kim@imgtec.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.