From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Li3ns-0002v4-I3 for qemu-devel@nongnu.org; Fri, 13 Mar 2009 05:35:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Li3nr-0002uh-Eu for qemu-devel@nongnu.org; Fri, 13 Mar 2009 05:35:44 -0400 Received: from [199.232.76.173] (port=34671 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Li3nr-0002ub-6q for qemu-devel@nongnu.org; Fri, 13 Mar 2009 05:35:43 -0400 Received: from savannah.gnu.org ([199.232.41.3]:54197 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 1Li3nq-0006Q2-QN for qemu-devel@nongnu.org; Fri, 13 Mar 2009 05:35:42 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Li3nq-00073W-8u for qemu-devel@nongnu.org; Fri, 13 Mar 2009 09:35:42 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1Li3np-00073R-SF for qemu-devel@nongnu.org; Fri, 13 Mar 2009 09:35:42 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Fri, 13 Mar 2009 09:35:41 +0000 Subject: [Qemu-devel] [6836] target-i386: use the new bswap* TCG ops 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: 6836 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6836 Author: aurel32 Date: 2009-03-13 09:35:41 +0000 (Fri, 13 Mar 2009) Log Message: ----------- target-i386: use the new bswap* TCG ops Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/target-i386/translate.c Modified: trunk/target-i386/translate.c =================================================================== --- trunk/target-i386/translate.c 2009-03-13 09:35:34 UTC (rev 6835) +++ trunk/target-i386/translate.c 2009-03-13 09:35:41 UTC (rev 6836) @@ -6643,23 +6643,13 @@ tcg_gen_bswap64_i64(cpu_T[0], cpu_T[0]); gen_op_mov_reg_T0(OT_QUAD, reg); } else +#endif { - TCGv_i32 tmp0; gen_op_mov_TN_reg(OT_LONG, 0, reg); - - tmp0 = tcg_temp_new_i32(); - tcg_gen_trunc_i64_i32(tmp0, cpu_T[0]); - tcg_gen_bswap32_i32(tmp0, tmp0); - tcg_gen_extu_i32_i64(cpu_T[0], tmp0); + tcg_gen_ext32u_tl(cpu_T[0], cpu_T[0]); + tcg_gen_bswap32_tl(cpu_T[0], cpu_T[0]); gen_op_mov_reg_T0(OT_LONG, reg); } -#else - { - gen_op_mov_TN_reg(OT_LONG, 0, reg); - tcg_gen_bswap32_i32(cpu_T[0], cpu_T[0]); - gen_op_mov_reg_T0(OT_LONG, reg); - } -#endif break; case 0xd6: /* salc */ if (CODE64(s))