From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K0LHJ-0000fr-H2 for qemu-devel@nongnu.org; Sun, 25 May 2008 14:49:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K0LHJ-0000fR-4c for qemu-devel@nongnu.org; Sun, 25 May 2008 14:49:09 -0400 Received: from [199.232.76.173] (port=59415 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0LHI-0000f9-TM for qemu-devel@nongnu.org; Sun, 25 May 2008 14:49:08 -0400 Received: from savannah.gnu.org ([199.232.41.3]:55342 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K0LHI-00086p-Vq for qemu-devel@nongnu.org; Sun, 25 May 2008 14:49:09 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1K0LHH-0002fR-N3 for qemu-devel@nongnu.org; Sun, 25 May 2008 18:49:07 +0000 Received: from bellard by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1K0LHH-0002fJ-BM for qemu-devel@nongnu.org; Sun, 25 May 2008 18:49:07 +0000 MIME-Version: 1.0 Errors-To: bellard Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Fabrice Bellard Message-Id: Date: Sun, 25 May 2008 18:49:07 +0000 Subject: [Qemu-devel] [4583] jump simplification Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 4583 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4583 Author: bellard Date: 2008-05-25 18:49:06 +0000 (Sun, 25 May 2008) Log Message: ----------- jump simplification Modified Paths: -------------- trunk/tcg/x86_64/tcg-target.c Modified: trunk/tcg/x86_64/tcg-target.c =================================================================== --- trunk/tcg/x86_64/tcg-target.c 2008-05-25 18:41:58 UTC (rev 4582) +++ trunk/tcg/x86_64/tcg-target.c 2008-05-25 18:49:06 UTC (rev 4583) @@ -450,41 +450,20 @@ TCGArg arg1, TCGArg arg2, int const_arg2, int label_index, int rexw) { - int c; if (const_arg2) { if (arg2 == 0) { - /* use test */ - switch(cond) { - case TCG_COND_EQ: - c = JCC_JE; - break; - case TCG_COND_NE: - c = JCC_JNE; - break; - case TCG_COND_LT: - c = JCC_JS; - break; - case TCG_COND_GE: - c = JCC_JNS; - break; - default: - goto do_cmpi; - } /* test r, r */ tcg_out_modrm(s, 0x85 | rexw, arg1, arg1); - tcg_out_jxx(s, c, label_index); } else { - do_cmpi: if (rexw) tgen_arithi64(s, ARITH_CMP, arg1, arg2); else tgen_arithi32(s, ARITH_CMP, arg1, arg2); - tcg_out_jxx(s, tcg_cond_to_jcc[cond], label_index); } } else { tcg_out_modrm(s, 0x01 | (ARITH_CMP << 3) | rexw, arg2, arg1); - tcg_out_jxx(s, tcg_cond_to_jcc[cond], label_index); } + tcg_out_jxx(s, tcg_cond_to_jcc[cond], label_index); } #if defined(CONFIG_SOFTMMU)