diff options
author | Aleksandar Markovic | 2020-06-13 17:21:23 +0200 |
---|---|---|
committer | Aleksandar Markovic | 2020-06-15 20:49:57 +0200 |
commit | e5e0777e7fe0aa6b70040c7bcf92eecbf9493df4 (patch) | |
tree | 0d0d340ba5f7ac105e585196d2c11f3a3bd18d46 /target/mips/translate.c | |
parent | target/mips: msa: Split helpers for DPADD_S.<H|W|D> (diff) | |
download | qemu-e5e0777e7fe0aa6b70040c7bcf92eecbf9493df4.tar.gz qemu-e5e0777e7fe0aa6b70040c7bcf92eecbf9493df4.tar.xz qemu-e5e0777e7fe0aa6b70040c7bcf92eecbf9493df4.zip |
target/mips: msa: Split helpers for DPADD_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-5-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 47ac4ea91c..0f99768358 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -29413,7 +29413,17 @@ static void gen_msa_3r(CPUMIPSState *env, DisasContext *ctx) } break; case OPC_DPADD_U_df: - gen_helper_msa_dpadd_u_df(cpu_env, tdf, twd, tws, twt); + switch (df) { + case DF_HALF: + gen_helper_msa_dpadd_u_h(cpu_env, twd, tws, twt); + break; + case DF_WORD: + gen_helper_msa_dpadd_u_w(cpu_env, twd, tws, twt); + break; + case DF_DOUBLE: + gen_helper_msa_dpadd_u_d(cpu_env, twd, tws, twt); + break; + } break; case OPC_DPSUB_S_df: gen_helper_msa_dpsub_s_df(cpu_env, tdf, twd, tws, twt); |