summaryrefslogtreecommitdiffstats
path: root/target/mips/translate.c
diff options
context:
space:
mode:
authorAleksandar Markovic2020-06-13 17:21:22 +0200
committerAleksandar Markovic2020-06-15 20:49:50 +0200
commit9f5840a6a58cd9201567806dd831b6cf0db00195 (patch)
treef008dffda4060cfb6d83211143cb7ce7614e16e4 /target/mips/translate.c
parenttarget/mips: msa: Split helpers for MSUBV.<B|H|W|D> (diff)
downloadqemu-9f5840a6a58cd9201567806dd831b6cf0db00195.tar.gz
qemu-9f5840a6a58cd9201567806dd831b6cf0db00195.tar.xz
qemu-9f5840a6a58cd9201567806dd831b6cf0db00195.zip
target/mips: msa: Split helpers for DPADD_S.<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-4-aleksandar.qemu.devel@gmail.com>
Diffstat (limited to 'target/mips/translate.c')
-rw-r--r--target/mips/translate.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/target/mips/translate.c b/target/mips/translate.c
index 7388a1600c..47ac4ea91c 100644
--- a/target/mips/translate.c
+++ b/target/mips/translate.c
@@ -29400,7 +29400,17 @@ static void gen_msa_3r(CPUMIPSState *env, DisasContext *ctx)
gen_helper_msa_dotp_u_df(cpu_env, tdf, twd, tws, twt);
break;
case OPC_DPADD_S_df:
- gen_helper_msa_dpadd_s_df(cpu_env, tdf, twd, tws, twt);
+ switch (df) {
+ case DF_HALF:
+ gen_helper_msa_dpadd_s_h(cpu_env, twd, tws, twt);
+ break;
+ case DF_WORD:
+ gen_helper_msa_dpadd_s_w(cpu_env, twd, tws, twt);
+ break;
+ case DF_DOUBLE:
+ gen_helper_msa_dpadd_s_d(cpu_env, twd, tws, twt);
+ break;
+ }
break;
case OPC_DPADD_U_df:
gen_helper_msa_dpadd_u_df(cpu_env, tdf, twd, tws, twt);