target-ppc: VSX Stage 4: Add xssqrtsp
authorTom Musta <tommusta@gmail.com>
Wed, 15 Jan 2014 14:10:37 +0000 (08:10 -0600)
committerAlexander Graf <agraf@suse.de>
Wed, 5 Mar 2014 02:06:35 +0000 (03:06 +0100)
commitcea4e57473efc2fad1d241e87984eba4e5d9690c
tree4c71a18b09ed18cfc57d7104e3158f893bac24a8
parent2c0c52ae620cf121a8b9084c7c1168d867564ee8
target-ppc: VSX Stage 4: Add xssqrtsp

This patch adds the VSX Scalar Square Root Single Precision (xssqrtsp)
instruction.

The existing VSX_SQRT() macro is modified to support rounding of the
intermediate double-precision 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