target-ppc: VSX Stage 4: Add xsaddsp and xssubsp
authorTom Musta <tommusta@gmail.com>
Wed, 15 Jan 2014 14:10:33 +0000 (08:10 -0600)
committerAlexander Graf <agraf@suse.de>
Wed, 5 Mar 2014 02:06:34 +0000 (03:06 +0100)
commit3fd0aadfc19ba146ed6ced27b4e6ff6afc08473a
treea94707d2019eb699948c641601bc0fac5adc76c4
parente16a626b8280cfcf3de385c59ddd1fde2840c2c3
target-ppc: VSX Stage 4: Add xsaddsp and xssubsp

This patch adds the VSX Scalar Add Single-Precision (xsaddsp) and
VSX Scalar Subtract Single-Precision (xssubsp) instructions.

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