target-ppc: VSX Stage 4: add xsrsqrtesp
authorTom Musta <tommusta@gmail.com>
Wed, 15 Jan 2014 14:10:38 +0000 (08:10 -0600)
committerAlexander Graf <agraf@suse.de>
Wed, 5 Mar 2014 02:06:36 +0000 (03:06 +0100)
commit968e76bcab9a3c40f37c9a52822b6daa90ae7cd8
treedbab69d0042e1e7b416a1105649dc3b2e32e4074
parentcea4e57473efc2fad1d241e87984eba4e5d9690c
target-ppc: VSX Stage 4: add xsrsqrtesp

This patch adds the VSX Scalar Reciprocal Square Root Estimate
Single Precision (xsrsqrtesp) instruction.

The existing VSX_RSQRTE() 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