summaryrefslogtreecommitdiffstats
path: root/target/mips/translate.c
diff options
context:
space:
mode:
authorAleksandar Markovic2020-06-13 17:21:32 +0200
committerAleksandar Markovic2020-06-15 20:50:59 +0200
commit83b2e79a80a05b905bbfbe88dd7a29e00e65a5a9 (patch)
tree4a9c424eb8226972f824c0cf68e72d328ad49ab8 /target/mips/translate.c
parenttarget/mips: msa: Split helpers for SUBSUU_S.<B|H|W|D> (diff)
downloadqemu-83b2e79a80a05b905bbfbe88dd7a29e00e65a5a9.tar.gz
qemu-83b2e79a80a05b905bbfbe88dd7a29e00e65a5a9.tar.xz
qemu-83b2e79a80a05b905bbfbe88dd7a29e00e65a5a9.zip
target/mips: msa: Split helpers for SUBV.<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-14-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 6d9ae1de4b..9ca17ed02c 100644
--- a/target/mips/translate.c
+++ b/target/mips/translate.c
@@ -29324,7 +29324,20 @@ static void gen_msa_3r(CPUMIPSState *env, DisasContext *ctx)
gen_helper_msa_vshf_df(cpu_env, tdf, twd, tws, twt);
break;
case OPC_SUBV_df:
- gen_helper_msa_subv_df(cpu_env, tdf, twd, tws, twt);
+ switch (df) {
+ case DF_BYTE:
+ gen_helper_msa_subv_b(cpu_env, twd, tws, twt);
+ break;
+ case DF_HALF:
+ gen_helper_msa_subv_h(cpu_env, twd, tws, twt);
+ break;
+ case DF_WORD:
+ gen_helper_msa_subv_w(cpu_env, twd, tws, twt);
+ break;
+ case DF_DOUBLE:
+ gen_helper_msa_subv_d(cpu_env, twd, tws, twt);
+ break;
+ }
break;
case OPC_SUBS_U_df:
switch (df) {