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
This commit is contained in:
parent
a16b45e748
commit
572c8952ae
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user