target-ppc: fix SPE comparison functions
commit019702c8156ee442378a520b733d823c0c62072b
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 13 Apr 2011 22:49:30 +0000 (14 00:49 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 17 Apr 2011 18:32:15 +0000 (17 20:32 +0200)
treeb19c4a7332d01901284d4d2bd9c55acd3d9148b6
parentf5a64251f2db2271970a1f4b7f8176d4de4dec91
target-ppc: fix SPE comparison functions

efstst*() functions are fast SPE funtions which do not take into account
special values (infinites, NaN, etc.), while efscmp*() functions are
IEEE754 compliant.

Given that float32_*() functions are IEEE754 compliant, the efscmp*()
functions are correctly implemented, while efstst*() are not. This
patch reverse the implementation of this two groups of functions and
fix the comments. It also use float32_eq() instead of float32_eq_quiet()
as qNaNs should not be ignored.

Cc: Alexander Graf <agraf@suse.de>
Cc: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-ppc/op_helper.c