summaryrefslogtreecommitdiffstats
path: root/target/mips/translate.c
diff options
context:
space:
mode:
authorAleksandar Markovic2020-06-13 17:21:28 +0200
committerAleksandar Markovic2020-06-15 20:50:33 +0200
commit534e400141dfff34db060b9af842fb4bc2a69fc4 (patch)
treebf618c611177cb8d51ceb045affadd051418f951 /target/mips/translate.c
parenttarget/mips: msa: Split helpers for DOTP_U.<H|W|D> (diff)
downloadqemu-534e400141dfff34db060b9af842fb4bc2a69fc4.tar.gz
qemu-534e400141dfff34db060b9af842fb4bc2a69fc4.tar.xz
qemu-534e400141dfff34db060b9af842fb4bc2a69fc4.zip
target/mips: msa: Split helpers for SUBS_S.<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-10-aleksandar.qemu.devel@gmail.com>
Diffstat (limited to 'target/mips/translate.c')
-rw-r--r--target/mips/translate.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/target/mips/translate.c b/target/mips/translate.c
index 77e2d95d60..f33121a161 100644
--- a/target/mips/translate.c
+++ b/target/mips/translate.c
@@ -29299,7 +29299,20 @@ static void gen_msa_3r(CPUMIPSState *env, DisasContext *ctx)
}
break;
case OPC_SUBS_S_df:
- gen_helper_msa_subs_s_df(cpu_env, tdf, twd, tws, twt);
+ switch (df) {
+ case DF_BYTE:
+ gen_helper_msa_subs_s_b(cpu_env, twd, tws, twt);
+ break;
+ case DF_HALF:
+ gen_helper_msa_subs_s_h(cpu_env, twd, tws, twt);
+ break;
+ case DF_WORD:
+ gen_helper_msa_subs_s_w(cpu_env, twd, tws, twt);
+ break;
+ case DF_DOUBLE:
+ gen_helper_msa_subs_s_d(cpu_env, twd, tws, twt);
+ break;
+ }
break;
case OPC_MULV_df:
gen_helper_msa_mulv_df(cpu_env, tdf, twd, tws, twt);