qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6519] target-ppc: add vrlogefp instruction
@ 2009-02-05 13:42 Aurelien Jarno
  2009-02-05 15:52 ` Nathan Froyd
  0 siblings, 1 reply; 3+ messages in thread
From: Aurelien Jarno @ 2009-02-05 13:42 UTC (permalink / raw)
  To: qemu-devel

Revision: 6519
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6519
Author:   aurel32
Date:     2009-02-05 13:42:57 +0000 (Thu, 05 Feb 2009)

Log Message:
-----------
target-ppc: add vrlogefp instruction

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

Modified Paths:
--------------
    trunk/target-ppc/helper.h
    trunk/target-ppc/op_helper.c
    trunk/target-ppc/translate.c

Modified: trunk/target-ppc/helper.h
===================================================================
--- trunk/target-ppc/helper.h	2009-02-05 13:42:47 UTC (rev 6518)
+++ trunk/target-ppc/helper.h	2009-02-05 13:42:57 UTC (rev 6519)
@@ -232,6 +232,7 @@
 DEF_HELPER_3(vsum4sbs, void, avr, avr, avr)
 DEF_HELPER_3(vsum4shs, void, avr, avr, avr)
 DEF_HELPER_3(vsum4ubs, void, avr, avr, avr)
+DEF_HELPER_2(vrlogefp, void, avr, avr)
 DEF_HELPER_2(vrfim, void, avr, avr)
 DEF_HELPER_2(vrfin, void, avr, avr)
 DEF_HELPER_2(vrfip, void, avr, avr)

Modified: trunk/target-ppc/op_helper.c
===================================================================
--- trunk/target-ppc/op_helper.c	2009-02-05 13:42:47 UTC (rev 6518)
+++ trunk/target-ppc/op_helper.c	2009-02-05 13:42:57 UTC (rev 6519)
@@ -2539,6 +2539,16 @@
     r->u64[1] = (a->u64[1] & ~c->u64[1]) | (b->u64[1] & c->u64[1]);
 }
 
+void helper_vrlogefp (ppc_avr_t *r, ppc_avr_t *b)
+{
+    int i;
+    for (i = 0; i < ARRAY_SIZE(r->f); i++) {
+        HANDLE_NAN1(r->f[i], b->f[i]) {
+            r->f[i] = float32_log2(b->f[i], &env->vec_status);
+        }
+    }
+}
+
 #if defined(WORDS_BIGENDIAN)
 #define LEFT 0
 #define RIGHT 1

Modified: trunk/target-ppc/translate.c
===================================================================
--- trunk/target-ppc/translate.c	2009-02-05 13:42:47 UTC (rev 6518)
+++ trunk/target-ppc/translate.c	2009-02-05 13:42:57 UTC (rev 6519)
@@ -6468,6 +6468,7 @@
 GEN_VXFORM_NOA(vupklsh, 7, 11);
 GEN_VXFORM_NOA(vupkhpx, 7, 13);
 GEN_VXFORM_NOA(vupklpx, 7, 15);
+GEN_VXFORM_NOA(vrlogefp, 5, 7);
 GEN_VXFORM_NOA(vrfim, 5, 8);
 GEN_VXFORM_NOA(vrfin, 5, 9);
 GEN_VXFORM_NOA(vrfip, 5, 10);

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [6519] target-ppc: add vrlogefp instruction
  2009-02-05 13:42 [Qemu-devel] [6519] target-ppc: add vrlogefp instruction Aurelien Jarno
@ 2009-02-05 15:52 ` Nathan Froyd
  2009-02-05 22:36   ` Aurelien Jarno
  0 siblings, 1 reply; 3+ messages in thread
From: Nathan Froyd @ 2009-02-05 15:52 UTC (permalink / raw)
  To: Aurelien Jarno; +Cc: qemu-devel

On Thu, Feb 05, 2009 at 01:42:57PM +0000, Aurelien Jarno wrote:
> Log Message:
> -----------
> target-ppc: add vrlogefp instruction

This is great, thank you.  The name of the instruction is vlogefp,
though. :)

-Nathan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [6519] target-ppc: add vrlogefp instruction
  2009-02-05 15:52 ` Nathan Froyd
@ 2009-02-05 22:36   ` Aurelien Jarno
  0 siblings, 0 replies; 3+ messages in thread
From: Aurelien Jarno @ 2009-02-05 22:36 UTC (permalink / raw)
  To: Nathan Froyd; +Cc: qemu-devel

On Thu, Feb 05, 2009 at 07:52:17AM -0800, Nathan Froyd wrote:
> On Thu, Feb 05, 2009 at 01:42:57PM +0000, Aurelien Jarno wrote:
> > Log Message:
> > -----------
> > target-ppc: add vrlogefp instruction
> 
> This is great, thank you.  The name of the instruction is vlogefp,
> though. :)
> 

Thanks for noticing me, that's fixed.

-- 
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-02-05 22:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-05 13:42 [Qemu-devel] [6519] target-ppc: add vrlogefp instruction Aurelien Jarno
2009-02-05 15:52 ` Nathan Froyd
2009-02-05 22:36   ` 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).