* [Qemu-devel] [5657] target-ppc: optimize mullw and make the code more readable
@ 2008-11-09 17:27 Aurelien Jarno
0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2008-11-09 17:27 UTC (permalink / raw)
To: qemu-devel
Revision: 5657
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5657
Author: aurel32
Date: 2008-11-09 17:27:11 +0000 (Sun, 09 Nov 2008)
Log Message:
-----------
target-ppc: optimize mullw and make the code more readable
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Modified Paths:
--------------
trunk/target-ppc/translate.c
Modified: trunk/target-ppc/translate.c
===================================================================
--- trunk/target-ppc/translate.c 2008-11-09 17:27:03 UTC (rev 5656)
+++ trunk/target-ppc/translate.c 2008-11-09 17:27:11 UTC (rev 5657)
@@ -1234,20 +1234,9 @@
/* mullw mullw. */
GEN_HANDLER(mullw, 0x1F, 0x0B, 0x07, 0x00000000, PPC_INTEGER)
{
-#if defined(TARGET_PPC64)
- TCGv t0, t1;
- t0 = tcg_temp_new(TCG_TYPE_TL);
- t1 = tcg_temp_new(TCG_TYPE_TL);
- tcg_gen_ext32s_tl(t0, cpu_gpr[rA(ctx->opcode)]);
- tcg_gen_ext32s_tl(t1, cpu_gpr[rB(ctx->opcode)]);
- tcg_gen_mul_tl(t0, t0, t1);
- tcg_temp_free(t0);
- tcg_gen_ext32s_tl(cpu_gpr[rD(ctx->opcode)], t0);
- tcg_temp_free(t1);
-#else
tcg_gen_mul_tl(cpu_gpr[rD(ctx->opcode)], cpu_gpr[rA(ctx->opcode)],
cpu_gpr[rB(ctx->opcode)]);
-#endif
+ tcg_gen_ext32s_tl(cpu_gpr[rD(ctx->opcode)], cpu_gpr[rD(ctx->opcode)]);
if (unlikely(Rc(ctx->opcode) != 0))
gen_set_Rc0(ctx, cpu_gpr[rD(ctx->opcode)]);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-09 17:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-09 17:27 [Qemu-devel] [5657] target-ppc: optimize mullw and make the code more readable Aurelien Jarno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).