diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-10-12 13:35:40 +0200 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2013-02-18 15:03:56 -0800 |
commit | 5bdb91b0dd66b7e0fdfc801601c433ad4752aeb0 (patch) | |
tree | 228aaa91e5159d79c5ccc7d1e9e54ad15ee0650b /target-i386 | |
parent | 6fa38ed219587723fcab9b878f42269489d51705 (diff) |
target-i386: use gen_jcc1 to compile loopz
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/translate.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/target-i386/translate.c b/target-i386/translate.c index 64564e0712..6fcd0f6e20 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -6896,13 +6896,7 @@ static target_ulong disas_insn(CPUX86State *env, DisasContext *s, gen_op_set_cc_op(s->cc_op); gen_op_add_reg_im(s->aflag, R_ECX, -1); gen_op_jz_ecx(s->aflag, l3); - gen_compute_eflags(cpu_tmp0); - tcg_gen_andi_tl(cpu_tmp0, cpu_tmp0, CC_Z); - if (b == 0) { - tcg_gen_brcondi_tl(TCG_COND_EQ, cpu_tmp0, 0, l1); - } else { - tcg_gen_brcondi_tl(TCG_COND_NE, cpu_tmp0, 0, l1); - } + gen_jcc1(s, (JCC_Z << 1) | (b ^ 1), l1); break; case 2: /* loop */ gen_op_add_reg_im(s->aflag, R_ECX, -1); |