summaryrefslogtreecommitdiffstats
path: root/target/mips/translate.c
diff options
context:
space:
mode:
authorAleksandar Markovic2020-06-13 17:21:25 +0200
committerAleksandar Markovic2020-06-15 20:50:12 +0200
commit0c8c76ac8592d768f20be7c0d3bfd2b892ec231a (patch)
tree3177e52428ce3d9fff3624c659d9c58f9e162606 /target/mips/translate.c
parenttarget/mips: msa: Split helpers for DPSUB_S.<H|W|D> (diff)
downloadqemu-0c8c76ac8592d768f20be7c0d3bfd2b892ec231a.tar.gz
qemu-0c8c76ac8592d768f20be7c0d3bfd2b892ec231a.tar.xz
qemu-0c8c76ac8592d768f20be7c0d3bfd2b892ec231a.zip
target/mips: msa: Split helpers for DPSUB_U.<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-7-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 caf3adfa25..bd6febca9c 100644
--- a/target/mips/translate.c
+++ b/target/mips/translate.c
@@ -29439,7 +29439,17 @@ static void gen_msa_3r(CPUMIPSState *env, DisasContext *ctx)
}
break;
case OPC_DPSUB_U_df:
- gen_helper_msa_dpsub_u_df(cpu_env, tdf, twd, tws, twt);
+ switch (df) {
+ case DF_HALF:
+ gen_helper_msa_dpsub_u_h(cpu_env, twd, tws, twt);
+ break;
+ case DF_WORD:
+ gen_helper_msa_dpsub_u_w(cpu_env, twd, tws, twt);
+ break;
+ case DF_DOUBLE:
+ gen_helper_msa_dpsub_u_d(cpu_env, twd, tws, twt);
+ break;
+ }
break;
}
break;