target-ppc: VSX Stage 4: Add xscvsxdsp and xscvuxdsp
commit74698350ca1bc95eda751f8c5a93268f20f7214e
authorTom Musta <tommusta@gmail.com>
Wed, 15 Jan 2014 14:10:40 +0000 (15 08:10 -0600)
committerAlexander Graf <agraf@suse.de>
Wed, 5 Mar 2014 02:06:36 +0000 (5 03:06 +0100)
tree926b6e583b26a9f58c898ed7fc8ca93b9ea3f5c5
parentf53f81e08bd0192121c4e0c3f1fdc53832631b4b
target-ppc: VSX Stage 4: Add xscvsxdsp and xscvuxdsp

This patch adds the VSX Scalar Convert Unsigned Integer Doubleword
to Floating Point Format and Round to Single Precision (xscvuxdsp)
and VSX Scalar Convert Signed Integer Douglbeword to Floating Point
Format and Round to Single Precision (xscvsxdsp) instructions.

The existing integer to floating point conversion macro (VSX_CVT_INT_TO_FP)
is modified to support the rounding of the intermediate floating point
result to single precision.

Signed-off-by: Tom Musta <tommusta@gmail.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/fpu_helper.c
target-ppc/helper.h
target-ppc/translate.c