[6026] target-ppc: fix fsel instruction
Revision: 6026
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6026 Author: aurel32 Date: 2008-12-14 11:12:10 +0000 (Sun, 14 Dec 2008)
Log Message:
-----------
target-ppc: fix fsel instruction
Fix fsel instruction. Eliminate unneeded temporaries while we're at it, too.
Signed-off-by Nathan Froyd <[email protected]>
Signed-off-by Aurelien Jarno <[email protected]>
Modified Paths:
--------------
trunk/target-ppc/op_helper.c
Modified: trunk/target-ppc/op_helper.c
===================================================================
target-ppc/op_helper.c +3 -5
@@ -1592,16 +1592,14 @@/* fsel - fsel. */ uint64_t helper_fsel (uint64_t arg1,uint64_t arg2,uint64_t arg3) { -CPU_DoubleU farg1, farg2, farg3; +CPU_DoubleU farg1; farg1.ll = arg1; - farg2.ll = arg2; - farg3.ll = arg3;if (!fpisneg (farg1.d) ||iszero (farg1.d)) -return farg2.ll; +return arg2;else -return farg2.ll; +return arg3; }uint32_t helper_fcmpu (uint64_t arg1,uint64_t arg2)