summaryrefslogtreecommitdiffstats
path: root/target/mips/translate.c
diff options
context:
space:
mode:
authorAleksandar Markovic2020-06-13 17:21:21 +0200
committerAleksandar Markovic2020-06-15 20:49:36 +0200
commit5f148a023279c735f9b26955e8af8556620fb7ec (patch)
tree4b1d5ad0b138b345ff813b3f90427e556a92ebef /target/mips/translate.c
parenttarget/mips: msa: Split helpers for MADDV.<B|H|W|D> (diff)
downloadqemu-5f148a023279c735f9b26955e8af8556620fb7ec.tar.gz
qemu-5f148a023279c735f9b26955e8af8556620fb7ec.tar.xz
qemu-5f148a023279c735f9b26955e8af8556620fb7ec.zip
target/mips: msa: Split helpers for MSUBV.<B|H|W|D>
Achieves clearer code and slightly better performance. Reviewed-by: Aleksandar Rikalo <aleksandar.rikalo@syrmia.com> Signed-off-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com> Message-Id: <20200613152133.8964-3-aleksandar.qemu.devel@gmail.com>
Diffstat (limited to 'target/mips/translate.c')
-rw-r--r--target/mips/translate.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/target/mips/translate.c b/target/mips/translate.c
index 4975e57e35..7388a1600c 100644
--- a/target/mips/translate.c
+++ b/target/mips/translate.c
@@ -29074,6 +29074,22 @@ static void gen_msa_3r(CPUMIPSState *env, DisasContext *ctx)
break;
}
break;
+ case OPC_MSUBV_df:
+ switch (df) {
+ case DF_BYTE:
+ gen_helper_msa_msubv_b(cpu_env, twd, tws, twt);
+ break;
+ case DF_HALF:
+ gen_helper_msa_msubv_h(cpu_env, twd, tws, twt);
+ break;
+ case DF_WORD:
+ gen_helper_msa_msubv_w(cpu_env, twd, tws, twt);
+ break;
+ case DF_DOUBLE:
+ gen_helper_msa_msubv_d(cpu_env, twd, tws, twt);
+ break;
+ }
+ break;
case OPC_ASUB_S_df:
switch (df) {
case DF_BYTE:
@@ -29306,9 +29322,6 @@ static void gen_msa_3r(CPUMIPSState *env, DisasContext *ctx)
case OPC_SUBSUS_U_df:
gen_helper_msa_subsus_u_df(cpu_env, tdf, twd, tws, twt);
break;
- case OPC_MSUBV_df:
- gen_helper_msa_msubv_df(cpu_env, tdf, twd, tws, twt);
- break;
case OPC_SUBSUU_S_df:
gen_helper_msa_subsuu_s_df(cpu_env, tdf, twd, tws, twt);
break;