* [Qemu-devel] [4744] Avoid temporary variable use across basic blocks for udivx
@ 2008-06-15 18:06 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-06-15 18:06 UTC (permalink / raw)
To: qemu-devel
Revision: 4744
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4744
Author: blueswir1
Date: 2008-06-15 18:06:39 +0000 (Sun, 15 Jun 2008)
Log Message:
-----------
Avoid temporary variable use across basic blocks for udivx
Modified Paths:
--------------
trunk/target-sparc/translate.c
Modified: trunk/target-sparc/translate.c
===================================================================
--- trunk/target-sparc/translate.c 2008-06-15 18:02:48 UTC (rev 4743)
+++ trunk/target-sparc/translate.c 2008-06-15 18:06:39 UTC (rev 4744)
@@ -3068,8 +3068,10 @@
break;
#ifdef TARGET_SPARC64
case 0xd: /* V9 udivx */
- gen_trap_ifdivzero_tl(cpu_src2);
- tcg_gen_divu_i64(cpu_dst, cpu_src1, cpu_src2);
+ tcg_gen_mov_tl(cpu_cc_src, cpu_src1);
+ tcg_gen_mov_tl(cpu_cc_src2, cpu_src2);
+ gen_trap_ifdivzero_tl(cpu_cc_src2);
+ tcg_gen_divu_i64(cpu_dst, cpu_cc_src, cpu_cc_src2);
break;
#endif
case 0xe:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-15 18:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-15 18:06 [Qemu-devel] [4744] Avoid temporary variable use across basic blocks for udivx Blue Swirl
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).