From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KwtY6-00034M-CV for qemu-devel@nongnu.org; Mon, 03 Nov 2008 02:08:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KwtY4-00033z-NC for qemu-devel@nongnu.org; Mon, 03 Nov 2008 02:08:29 -0500 Received: from [199.232.76.173] (port=36160 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwtY4-00033w-J3 for qemu-devel@nongnu.org; Mon, 03 Nov 2008 02:08:28 -0500 Received: from savannah.gnu.org ([199.232.41.3]:46646 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 1KwtY4-0001fm-7f for qemu-devel@nongnu.org; Mon, 03 Nov 2008 02:08:28 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KwtY3-0004Jm-Es for qemu-devel@nongnu.org; Mon, 03 Nov 2008 07:08:27 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KwtY3-0004Ji-45 for qemu-devel@nongnu.org; Mon, 03 Nov 2008 07:08:27 +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: Mon, 03 Nov 2008 07:08:27 +0000 Subject: [Qemu-devel] [5606] tcg-op.h: reorder _i64 instructions common to 32- and 64-bit targets 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: 5606 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5606 Author: aurel32 Date: 2008-11-03 07:08:26 +0000 (Mon, 03 Nov 2008) Log Message: ----------- tcg-op.h: reorder _i64 instructions common to 32- and 64-bit targets Use the same order as the _i32 version (pure code move). Suggested by Laurent Laurent Desnogues. Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/tcg/tcg-op.h Modified: trunk/tcg/tcg-op.h =================================================================== --- trunk/tcg/tcg-op.h 2008-11-03 01:08:14 UTC (rev 5605) +++ trunk/tcg/tcg-op.h 2008-11-03 07:08:26 UTC (rev 5606) @@ -1055,21 +1055,6 @@ } } -static inline void tcg_gen_brcondi_i64(int cond, TCGv arg1, int64_t arg2, - int label_index) -{ - TCGv t0 = tcg_const_i64(arg2); - tcg_gen_brcond_i64(cond, arg1, t0, label_index); - tcg_temp_free(t0); -} - -static inline void tcg_gen_muli_i64(TCGv ret, TCGv arg1, int64_t arg2) -{ - TCGv t0 = tcg_const_i64(arg2); - tcg_gen_mul_i64(ret, arg1, t0); - tcg_temp_free(t0); -} - static inline void tcg_gen_subfi_i64(TCGv ret, int64_t arg1, TCGv arg2) { TCGv t0 = tcg_const_i64(arg1); @@ -1088,7 +1073,22 @@ tcg_temp_free(t0); } } +static inline void tcg_gen_brcondi_i64(int cond, TCGv arg1, int64_t arg2, + int label_index) +{ + TCGv t0 = tcg_const_i64(arg2); + tcg_gen_brcond_i64(cond, arg1, t0, label_index); + tcg_temp_free(t0); +} +static inline void tcg_gen_muli_i64(TCGv ret, TCGv arg1, int64_t arg2) +{ + TCGv t0 = tcg_const_i64(arg2); + tcg_gen_mul_i64(ret, arg1, t0); + tcg_temp_free(t0); +} + + /***************************************/ /* optional operations */