diff options
author | Aleksandar Markovic | 2020-06-13 17:21:24 +0200 |
---|---|---|
committer | Aleksandar Markovic | 2020-06-15 20:50:05 +0200 |
commit | 8ed86716f69fafc39f8ff1032ccc414b5cc76929 (patch) | |
tree | 8e76c92a17eb825e96020eb01c635baff26884b2 /target/mips/translate.c | |
parent | target/mips: msa: Split helpers for DPADD_U.<H|W|D> (diff) | |
download | qemu-8ed86716f69fafc39f8ff1032ccc414b5cc76929.tar.gz qemu-8ed86716f69fafc39f8ff1032ccc414b5cc76929.tar.xz qemu-8ed86716f69fafc39f8ff1032ccc414b5cc76929.zip |
target/mips: msa: Split helpers for DPSUB_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-6-aleksandar.qemu.devel@gmail.com>
Diffstat (limited to 'target/mips/translate.c')
-rw-r--r-- | target/mips/translate.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/target/mips/translate.c b/target/mips/translate.c index 0f99768358..caf3adfa25 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -29426,7 +29426,17 @@ static void gen_msa_3r(CPUMIPSState *env, DisasContext *ctx) } break; case OPC_DPSUB_S_df: - gen_helper_msa_dpsub_s_df(cpu_env, tdf, twd, tws, twt); + switch (df) { + case DF_HALF: + gen_helper_msa_dpsub_s_h(cpu_env, twd, tws, twt); + break; + case DF_WORD: + gen_helper_msa_dpsub_s_w(cpu_env, twd, tws, twt); + break; + case DF_DOUBLE: + gen_helper_msa_dpsub_s_d(cpu_env, twd, tws, twt); + break; + } break; case OPC_DPSUB_U_df: gen_helper_msa_dpsub_u_df(cpu_env, tdf, twd, tws, twt); |