diff options
author | Aleksandar Markovic | 2020-06-13 17:21:26 +0200 |
---|---|---|
committer | Aleksandar Markovic | 2020-06-15 20:50:19 +0200 |
commit | 165cacb65ce41334cfd1a89e362bfca749f0fdd6 (patch) | |
tree | bb1873f04b7812a67dd72e405a08d120e51b8eb9 /target/mips/translate.c | |
parent | target/mips: msa: Split helpers for DPSUB_U.<H|W|D> (diff) | |
download | qemu-165cacb65ce41334cfd1a89e362bfca749f0fdd6.tar.gz qemu-165cacb65ce41334cfd1a89e362bfca749f0fdd6.tar.xz qemu-165cacb65ce41334cfd1a89e362bfca749f0fdd6.zip |
target/mips: msa: Split helpers for DOTP_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-8-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 bd6febca9c..e150454253 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -29394,7 +29394,17 @@ static void gen_msa_3r(CPUMIPSState *env, DisasContext *ctx) } break; case OPC_DOTP_S_df: - gen_helper_msa_dotp_s_df(cpu_env, tdf, twd, tws, twt); + switch (df) { + case DF_HALF: + gen_helper_msa_dotp_s_h(cpu_env, twd, tws, twt); + break; + case DF_WORD: + gen_helper_msa_dotp_s_w(cpu_env, twd, tws, twt); + break; + case DF_DOUBLE: + gen_helper_msa_dotp_s_d(cpu_env, twd, tws, twt); + break; + } break; case OPC_DOTP_U_df: gen_helper_msa_dotp_u_df(cpu_env, tdf, twd, tws, twt); |