projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf1064b
)
cris: Replace tcg branch sequence with setcond
author
Edgar E. Iglesias
<edgar.iglesias@gmail.com>
Tue, 25 Jan 2011 18:47:06 +0000
(19:47 +0100)
committer
Edgar E. Iglesias
<edgar.iglesias@gmail.com>
Tue, 25 Jan 2011 18:47:06 +0000
(19:47 +0100)
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
target-cris/translate.c
patch
|
blob
|
history
diff --git
a/target-cris/translate.c
b/target-cris/translate.c
index f4cc1252a5a484197b4fa7582cad8e7e4d632498..b4648a01dee396d47051027a303ea63384d09a0a 100644
(file)
--- a/
target-cris/translate.c
+++ b/
target-cris/translate.c
@@
-947,15
+947,8
@@
static void gen_tst_cc (DisasContext *dc, TCGv cc, int cond)
case CC_EQ:
if ((arith_opt || move_opt)
&& dc->cc_x_uptodate != (2 | X_FLAG)) {
- /* If cc_result is zero, T0 should be
- non-zero otherwise T0 should be zero. */
- int l1;
- l1 = gen_new_label();
- tcg_gen_movi_tl(cc, 0);
- tcg_gen_brcondi_tl(TCG_COND_NE, cc_result,
- 0, l1);
- tcg_gen_movi_tl(cc, 1);
- gen_set_label(l1);
+ tcg_gen_setcond_tl(TCG_COND_EQ, cc,
+ cc_result, tcg_const_tl(0));
}
else {
cris_evaluate_flags(dc);