diff options
author | Aleksandar Markovic | 2019-09-25 14:46:06 +0200 |
---|---|---|
committer | Aleksandar Markovic | 2019-10-01 16:58:45 +0200 |
commit | ade7e788e1e19868d9e66aaa79e134362b671b11 (patch) | |
tree | f84f77cf4c01c4bcc81290dcff9df5ebbef46d58 /target/mips/translate.c | |
parent | target/mips: msa: Split helpers for AVER_<S|U>.<B|H|W|D> (diff) | |
download | qemu-ade7e788e1e19868d9e66aaa79e134362b671b11.tar.gz qemu-ade7e788e1e19868d9e66aaa79e134362b671b11.tar.xz qemu-ade7e788e1e19868d9e66aaa79e134362b671b11.zip |
target/mips: msa: Split helpers for CEQ.<B|H|W|D>
Achieves clearer code and slightly better performance.
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com>
Message-Id: <1569415572-19635-15-git-send-email-aleksandar.markovic@rt-rk.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 9b186d3cb6..ad1572e959 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -28530,15 +28530,28 @@ static void gen_msa_3r(CPUMIPSState *env, DisasContext *ctx) break; } break; + case OPC_CEQ_df: + switch (df) { + case DF_BYTE: + gen_helper_msa_ceq_b(cpu_env, twd, tws, twt); + break; + case DF_HALF: + gen_helper_msa_ceq_h(cpu_env, twd, tws, twt); + break; + case DF_WORD: + gen_helper_msa_ceq_w(cpu_env, twd, tws, twt); + break; + case DF_DOUBLE: + gen_helper_msa_ceq_d(cpu_env, twd, tws, twt); + break; + } + break; case OPC_SLL_df: gen_helper_msa_sll_df(cpu_env, tdf, twd, tws, twt); break; case OPC_ADDV_df: gen_helper_msa_addv_df(cpu_env, tdf, twd, tws, twt); break; - case OPC_CEQ_df: - gen_helper_msa_ceq_df(cpu_env, tdf, twd, tws, twt); - break; case OPC_ADD_A_df: gen_helper_msa_add_a_df(cpu_env, tdf, twd, tws, twt); break; |