diff options
author | Richard Henderson <rth@twiddle.net> | 2015-09-02 11:38:10 -0700 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@xilinx.com> | 2015-09-08 08:48:34 +0200 |
commit | 88174019d2e1d2e1c304d507654d37f6d7504957 (patch) | |
tree | 8c3acd497b55018e995be1abf9a810659c00df7d /target-cris/translate_v10.c | |
parent | 9d34158a5af734e8de0b42b0a7228200c426a8d0 (diff) |
target-cris: Use movcond and setcond
Signed-off-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Diffstat (limited to 'target-cris/translate_v10.c')
-rw-r--r-- | target-cris/translate_v10.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/target-cris/translate_v10.c b/target-cris/translate_v10.c index b742c4cd01..618c234949 100644 --- a/target-cris/translate_v10.c +++ b/target-cris/translate_v10.c @@ -535,16 +535,8 @@ static void dec10_reg_scc(DisasContext *dc) LOG_DIS("s%s $r%u\n", cc_name(cond), dc->src); - if (cond != CC_A) - { - TCGLabel *l1 = gen_new_label(); - gen_tst_cc (dc, cpu_R[dc->src], cond); - tcg_gen_brcondi_tl(TCG_COND_EQ, cpu_R[dc->src], 0, l1); - tcg_gen_movi_tl(cpu_R[dc->src], 1); - gen_set_label(l1); - } else { - tcg_gen_movi_tl(cpu_R[dc->src], 1); - } + gen_tst_cc(dc, cpu_R[dc->src], cond); + tcg_gen_setcondi_tl(TCG_COND_NE, cpu_R[dc->src], cpu_R[dc->src], 0); cris_cc_mask(dc, 0); } |