[6519] target-ppc: add vrlogefp instruction
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
Modified Paths:
--------------
trunk/target-ppc/helper.h
trunk/target-ppc/op_helper.c
trunk/target-ppc/translate.c
Modified: trunk/target-ppc/helper.h
===================================================================
target-ppc/helper.h +1 -0
@@ -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
===================================================================
target-ppc/op_helper.c +10 -0
@@ -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
===================================================================
target-ppc/translate.c +1 -0
@@ -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 );
Quoted 3 lines · Aurelien Jarno
Log Message:
-----------
target-ppc: add vrlogefp instruction
This is great, thank you. The name of the instruction is vlogefp, though. :)
-Nathan
Quoted 8 lines · Nathan Froyd
Quoted 3 lines · Aurelien Jarno
Log Message:
-----------
target-ppc: add vrlogefp instructionThis is great, thank you. The name of the instruction is vlogefp, though. :)
Thanks for noticing me, that's fixed.
Signature · 2 lines
Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net