diff options
author | edgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-07 12:27:46 +0000 |
---|---|---|
committer | edgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-07 12:27:46 +0000 |
commit | c2cfc6c1b29d99eab4204e9befe59f765827eeee (patch) | |
tree | d204b393512ffcffc0852eedb3ec0d821d3da61d /target-cris/translate.c | |
parent | 2ae8655ae069cbcfdd909bcdb4472d943eaa0394 (diff) | |
download | qemu-c2cfc6c1b29d99eab4204e9befe59f765827eeee.tar.gz qemu-c2cfc6c1b29d99eab4204e9befe59f765827eeee.tar.bz2 qemu-c2cfc6c1b29d99eab4204e9befe59f765827eeee.zip |
CRIS: Move operations can be optimized as arithmetic ones for cc evaluation.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6199 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-cris/translate.c')
-rw-r--r-- | target-cris/translate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target-cris/translate.c b/target-cris/translate.c index 24ae03cfac..ab83b66451 100644 --- a/target-cris/translate.c +++ b/target-cris/translate.c @@ -975,6 +975,7 @@ static int arith_cc(DisasContext *dc) case CC_OP_CMP: return 1; case CC_OP_NEG: return 1; case CC_OP_OR: return 1; + case CC_OP_AND: return 1; case CC_OP_XOR: return 1; case CC_OP_MULU: return 1; case CC_OP_MULS: return 1; @@ -1000,7 +1001,7 @@ static void gen_tst_cc (DisasContext *dc, TCGv cc, int cond) * code is true. */ arith_opt = arith_cc(dc) && !dc->flags_uptodate; - move_opt = (dc->cc_op == CC_OP_MOVE) && dc->flags_uptodate; + move_opt = (dc->cc_op == CC_OP_MOVE); switch (cond) { case CC_EQ: if (arith_opt || move_opt) { |