qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4714] Fix test for signed div fast path
@ 2008-06-09 19:57 malc
  0 siblings, 0 replies; only message in thread
From: malc @ 2008-06-09 19:57 UTC (permalink / raw)
  To: qemu-devel

Revision: 4714
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4714
Author:   malc
Date:     2008-06-09 19:57:27 +0000 (Mon, 09 Jun 2008)

Log Message:
-----------
Fix test for signed div fast path

Modified Paths:
--------------
    trunk/tcg/ppc/tcg-target.c

Modified: trunk/tcg/ppc/tcg-target.c
===================================================================
--- trunk/tcg/ppc/tcg-target.c	2008-06-09 14:31:18 UTC (rev 4713)
+++ trunk/tcg/ppc/tcg-target.c	2008-06-09 19:57:27 UTC (rev 4714)
@@ -1057,7 +1057,13 @@
 {
     void *label1_ptr, *label2_ptr;
 
-    tcg_out32 (s, CMPLI | BF (7) | RA (3));
+    if (uns)
+        tcg_out32 (s, CMPLI | BF (7) | RA (3));
+    else {
+        tcg_out32 (s, SRAWI | RS (4) | RA (0) | 31);
+        tcg_out32 (s, CMPL | BF (7) | RA (3) | RB (4));
+    }
+
     label1_ptr = s->code_ptr;
     tcg_out32 (s, BC | BI (7, CR_EQ) | BO_COND_TRUE);
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-09 19:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-09 19:57 [Qemu-devel] [4714] Fix test for signed div fast path malc

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).