Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JxRoV-0007aq-Q7 for qemu-devel@nongnu.org; Sat, 17 May 2008 15:11:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JxRoV-0007aV-CX for qemu-devel@nongnu.org; Sat, 17 May 2008 15:11:27 -0400 Received: from [199.232.76.173] (port=40752 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JxRoV-0007aS-4m for qemu-devel@nongnu.org; Sat, 17 May 2008 15:11:27 -0400 Received: from savannah.gnu.org ([199.232.41.3]:38420 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 1JxRoU-000695-Sw for qemu-devel@nongnu.org; Sat, 17 May 2008 15:11:26 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1JxRoT-0001iz-Ai for qemu-devel@nongnu.org; Sat, 17 May 2008 19:11:25 +0000 Received: from edgar_igl by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1JxRoN-0001iK-76 for qemu-devel@nongnu.org; Sat, 17 May 2008 19:11:24 +0000 MIME-Version: 1.0 Errors-To: edgar_igl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: "Edgar E. Iglesias" Message-Id: Date: Sat, 17 May 2008 19:11:21 +0000 Subject: [Qemu-devel] [4480] Use tcg_gen_not. 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: 4480 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4480 Author: edgar_igl Date: 2008-05-17 19:11:14 +0000 (Sat, 17 May 2008) Log Message: ----------- Use tcg_gen_not. Modified Paths: -------------- trunk/target-cris/translate.c Modified: trunk/target-cris/translate.c =================================================================== --- trunk/target-cris/translate.c 2008-05-17 19:05:28 UTC (rev 4479) +++ trunk/target-cris/translate.c 2008-05-17 19:11:14 UTC (rev 4480) @@ -347,7 +347,7 @@ tcg_gen_shri_i32(y, x, 14); /* m = y & ~(y >> 1) */ tcg_gen_sari_i32(m, y, 1); - tcg_gen_xori_i32(m, m, 0xffffffff); + tcg_gen_not_i32(m, m); tcg_gen_and_i32(m, m, y); /* d = n + 2 - m */ @@ -754,7 +754,7 @@ tcg_gen_add_tl(cpu_T[0], cpu_T[0], cpu_T[1]); tcg_gen_neg_tl(cpu_T[1], cpu_T[1]); /* CRIS flag evaluation needs ~src. */ - tcg_gen_xori_tl(cpu_T[1], cpu_T[1], -1); + tcg_gen_not_tl(cpu_T[1], cpu_T[1]); /* Extended arithmetics. */ t_gen_subx_carry(dc, cpu_T[0]); @@ -826,7 +826,7 @@ case CC_OP_CMP: tcg_gen_sub_tl(cpu_T[0], cpu_T[0], cpu_T[1]); /* CRIS flag evaluation needs ~src. */ - tcg_gen_xori_tl(cpu_T[1], cpu_T[1], ~0); + tcg_gen_not_tl(cpu_T[1], cpu_T[1]); /* Extended arithmetics. */ t_gen_subx_carry(dc, cpu_T[0]); @@ -1686,7 +1686,7 @@ cris_cc_mask(dc, CC_MASK_NZ); t_gen_mov_TN_reg(cpu_T[0], dc->op1); if (dc->op2 & 8) - tcg_gen_xori_tl(cpu_T[0], cpu_T[0], -1); + tcg_gen_not_tl(cpu_T[0], cpu_T[0]); if (dc->op2 & 4) t_gen_swapw(cpu_T[0], cpu_T[0]); if (dc->op2 & 2)