target-ppc: Bug: VSX Convert to Integer Should Truncate
commit0453099b7d20c9fc2946ed74f1d965ae4d173d19
authorTom Musta <tommusta@gmail.com>
Mon, 31 Mar 2014 21:03:56 +0000 (31 16:03 -0500)
committerAlexander Graf <agraf@suse.de>
Tue, 8 Apr 2014 09:20:01 +0000 (8 11:20 +0200)
tree90d67d46e654aeaca784117a15c0a1d93f0737c7
parenta13d44896854329581ba48607d66c6b2aec157f7
target-ppc: Bug: VSX Convert to Integer Should Truncate

The various VSX Convert to Integer instructions should truncate the
floating point number to an integer value, which is equivalent to
a round-to-zero rounding mode.  The existing VSX floating point to
integer conversion helpers are erroneously using the rounding mode set
int the PowerPC Floating Point Status and Control Register (FPSCR).
This change corrects this defect by using the appropriate
float*_to_*_round_to_zero() routines fro the softfloat library.

Signed-off-by: Tom Musta <tommusta@gmail.com>
Tested-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/fpu_helper.c