aboutsummaryrefslogtreecommitdiff
path: root/tcg/x86_64
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2008-02-03 21:06:23 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2008-02-03 21:06:23 +0000
commitbb210e78b35d21f8bfe2addbe64b65f586f5a241 (patch)
treeb36821a427809d0d71716a04da4b739acecf4b49 /tcg/x86_64
parentac56dd48120521b530e48f641b65b1f15c061899 (diff)
compare fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3962 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tcg/x86_64')
-rw-r--r--tcg/x86_64/tcg-target.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcg/x86_64/tcg-target.c b/tcg/x86_64/tcg-target.c
index a2f0e4c743..b4b3e7d29a 100644
--- a/tcg/x86_64/tcg-target.c
+++ b/tcg/x86_64/tcg-target.c
@@ -445,7 +445,7 @@ static void tcg_out_brcond(TCGContext *s, int cond,
/* use test */
switch(cond) {
case TCG_COND_EQ:
- c = JCC_JNE;
+ c = JCC_JE;
break;
case TCG_COND_NE:
c = JCC_JNE;
@@ -471,7 +471,7 @@ static void tcg_out_brcond(TCGContext *s, int cond,
tcg_out_jxx(s, tcg_cond_to_jcc[cond], label_index);
}
} else {
- tcg_out_modrm(s, 0x01 | (ARITH_CMP << 3) | rexw, arg1, arg2);
+ tcg_out_modrm(s, 0x01 | (ARITH_CMP << 3) | rexw, arg2, arg1);
tcg_out_jxx(s, tcg_cond_to_jcc[cond], label_index);
}
}