diff options
author | Aleksandar Markovic | 2020-06-13 17:21:20 +0200 |
---|---|---|
committer | Aleksandar Markovic | 2020-06-15 20:48:47 +0200 |
commit | 7a7a162addecf3fbbc706645ac94bbfb92f5514b (patch) | |
tree | 9dcb4da105f0895863e7b518d01008dfc27fec10 /target/mips/translate.c | |
parent | target/mips: Add comments for vendor-specific ASEs (diff) | |
download | qemu-7a7a162addecf3fbbc706645ac94bbfb92f5514b.tar.gz qemu-7a7a162addecf3fbbc706645ac94bbfb92f5514b.tar.xz qemu-7a7a162addecf3fbbc706645ac94bbfb92f5514b.zip |
target/mips: msa: Split helpers for MADDV.<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-2-aleksandar.qemu.devel@gmail.com>
Diffstat (limited to 'target/mips/translate.c')
-rw-r--r-- | target/mips/translate.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/target/mips/translate.c b/target/mips/translate.c index e49f32f6ae..4975e57e35 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -29058,6 +29058,22 @@ static void gen_msa_3r(CPUMIPSState *env, DisasContext *ctx) break; } break; + case OPC_MADDV_df: + switch (df) { + case DF_BYTE: + gen_helper_msa_maddv_b(cpu_env, twd, tws, twt); + break; + case DF_HALF: + gen_helper_msa_maddv_h(cpu_env, twd, tws, twt); + break; + case DF_WORD: + gen_helper_msa_maddv_w(cpu_env, twd, tws, twt); + break; + case DF_DOUBLE: + gen_helper_msa_maddv_d(cpu_env, twd, tws, twt); + break; + } + break; case OPC_ASUB_S_df: switch (df) { case DF_BYTE: @@ -29284,9 +29300,6 @@ static void gen_msa_3r(CPUMIPSState *env, DisasContext *ctx) case OPC_SUBS_U_df: gen_helper_msa_subs_u_df(cpu_env, tdf, twd, tws, twt); break; - case OPC_MADDV_df: - gen_helper_msa_maddv_df(cpu_env, tdf, twd, tws, twt); - break; case OPC_SPLAT_df: gen_helper_msa_splat_df(cpu_env, tdf, twd, tws, twt); break; |