diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-29 09:47:11 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-29 09:47:11 +0000 |
commit | 572c8952ae6c69458550036d7406df1b418e7220 (patch) | |
tree | 2621e3c9ba776985edd82915f9b46465eb84ca0f | |
parent | a16b45e7484f90ef8b4b2ea0a476e0708bb300c6 (diff) |
target-ppc: improve correctness of the fsel instruction
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6139 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | target-ppc/op_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-ppc/op_helper.c b/target-ppc/op_helper.c index 922060bcca..876b5170fb 100644 --- a/target-ppc/op_helper.c +++ b/target-ppc/op_helper.c @@ -1561,7 +1561,7 @@ uint64_t helper_fsel (uint64_t arg1, uint64_t arg2, uint64_t arg3) farg1.ll = arg1; - if (!float64_is_neg(farg1.d) || float64_is_zero(farg1.d)) + if ((!float64_is_neg(farg1.d) || float64_is_zero(farg1.d)) && !float64_is_nan(farg1.d)) return arg2; else return arg3; |