diff options
author | Aleksandar Markovic | 2020-06-13 17:21:29 +0200 |
---|---|---|
committer | Aleksandar Markovic | 2020-06-15 20:50:40 +0200 |
commit | 81b53858fed8a316a4715c2f7f92cdfb4a7b4dd8 (patch) | |
tree | a5b3c73937b58a2d94c1901bf31f2cb5940b40cb /target/mips/translate.c | |
parent | target/mips: msa: Split helpers for SUBS_S.<B|H|W|D> (diff) | |
download | qemu-81b53858fed8a316a4715c2f7f92cdfb4a7b4dd8.tar.gz qemu-81b53858fed8a316a4715c2f7f92cdfb4a7b4dd8.tar.xz qemu-81b53858fed8a316a4715c2f7f92cdfb4a7b4dd8.zip |
target/mips: msa: Split helpers for SUBS_U.<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-11-aleksandar.qemu.devel@gmail.com>
Diffstat (limited to 'target/mips/translate.c')
-rw-r--r-- | target/mips/translate.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/target/mips/translate.c b/target/mips/translate.c index f33121a161..7671a4909d 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -29327,7 +29327,20 @@ static void gen_msa_3r(CPUMIPSState *env, DisasContext *ctx) gen_helper_msa_subv_df(cpu_env, tdf, twd, tws, twt); break; case OPC_SUBS_U_df: - gen_helper_msa_subs_u_df(cpu_env, tdf, twd, tws, twt); + switch (df) { + case DF_BYTE: + gen_helper_msa_subs_u_b(cpu_env, twd, tws, twt); + break; + case DF_HALF: + gen_helper_msa_subs_u_h(cpu_env, twd, tws, twt); + break; + case DF_WORD: + gen_helper_msa_subs_u_w(cpu_env, twd, tws, twt); + break; + case DF_DOUBLE: + gen_helper_msa_subs_u_d(cpu_env, twd, tws, twt); + break; + } break; case OPC_SPLAT_df: gen_helper_msa_splat_df(cpu_env, tdf, twd, tws, twt); |