From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsFQN-0001O3-HA for qemu-devel@nongnu.org; Tue, 21 Oct 2008 07:29:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsFQM-0001Na-Oi for qemu-devel@nongnu.org; Tue, 21 Oct 2008 07:29:18 -0400 Received: from [199.232.76.173] (port=59341 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsFQM-0001NW-Cl for qemu-devel@nongnu.org; Tue, 21 Oct 2008 07:29:18 -0400 Received: from savannah.gnu.org ([199.232.41.3]:41560 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 1KsFQL-0000HF-D6 for qemu-devel@nongnu.org; Tue, 21 Oct 2008 07:29:18 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KsFQG-0003rx-JO for qemu-devel@nongnu.org; Tue, 21 Oct 2008 11:29:12 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KsFQG-0003rt-9e for qemu-devel@nongnu.org; Tue, 21 Oct 2008 11:29:12 +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: Tue, 21 Oct 2008 11:29:12 +0000 Subject: [Qemu-devel] [5502] target-alpha: use the new TCG logical operations 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: 5502 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5502 Author: aurel32 Date: 2008-10-21 11:29:11 +0000 (Tue, 21 Oct 2008) Log Message: ----------- target-alpha: use the new TCG logical operations Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/target-alpha/translate.c Modified: trunk/target-alpha/translate.c =================================================================== --- trunk/target-alpha/translate.c 2008-10-21 11:28:59 UTC (rev 5501) +++ trunk/target-alpha/translate.c 2008-10-21 11:29:11 UTC (rev 5502) @@ -940,12 +940,8 @@ if (ra != 31) { if (islit) tcg_gen_andi_i64(cpu_ir[rc], cpu_ir[ra], ~lit); - else { - TCGv tmp = tcg_temp_new(TCG_TYPE_I64); - tcg_gen_not_i64(tmp, cpu_ir[rb]); - tcg_gen_and_i64(cpu_ir[rc], cpu_ir[ra], tmp); - tcg_temp_free(tmp); - } + else + tcg_gen_andc_i64(cpu_ir[rc], cpu_ir[ra], cpu_ir[rb]); } else tcg_gen_movi_i64(cpu_ir[rc], 0); } @@ -988,12 +984,8 @@ if (ra != 31) { if (islit) tcg_gen_ori_i64(cpu_ir[rc], cpu_ir[ra], ~lit); - else { - TCGv tmp = tcg_temp_new(TCG_TYPE_I64); - tcg_gen_not_i64(tmp, cpu_ir[rb]); - tcg_gen_or_i64(cpu_ir[rc], cpu_ir[ra], tmp); - tcg_temp_free(tmp); - } + else + tcg_gen_orc_i64(cpu_ir[rc], cpu_ir[ra], cpu_ir[rb]); } else { if (islit) tcg_gen_movi_i64(cpu_ir[rc], ~lit); @@ -1032,12 +1024,8 @@ if (ra != 31) { if (islit) tcg_gen_xori_i64(cpu_ir[rc], cpu_ir[ra], ~lit); - else { - TCGv tmp = tcg_temp_new(TCG_TYPE_I64); - tcg_gen_not_i64(tmp, cpu_ir[rb]); - tcg_gen_xor_i64(cpu_ir[rc], cpu_ir[ra], tmp); - tcg_temp_free(tmp); - } + else + tcg_gen_eqv_i64(cpu_ir[rc], cpu_ir[ra], cpu_ir[rb]); } else { if (islit) tcg_gen_movi_i64(cpu_ir[rc], ~lit);