summaryrefslogtreecommitdiffstats
path: root/target-ppc/helper.h
diff options
context:
space:
mode:
authorTom Musta2014-01-15 15:10:37 +0100
committerAlexander Graf2014-03-05 03:06:35 +0100
commitcea4e57473efc2fad1d241e87984eba4e5d9690c (patch)
tree4c71a18b09ed18cfc57d7104e3158f893bac24a8 /target-ppc/helper.h
parenttarget-ppc: VSX Stage 4: Add xsresp (diff)
downloadqemu-cea4e57473efc2fad1d241e87984eba4e5d9690c.tar.gz
qemu-cea4e57473efc2fad1d241e87984eba4e5d9690c.tar.xz
qemu-cea4e57473efc2fad1d241e87984eba4e5d9690c.zip
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>
Diffstat (limited to 'target-ppc/helper.h')
-rw-r--r--target-ppc/helper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-ppc/helper.h b/target-ppc/helper.h
index b1cf3c00e0..0192043c30 100644
--- a/target-ppc/helper.h
+++ b/target-ppc/helper.h
@@ -291,6 +291,7 @@ DEF_HELPER_2(xssubsp, void, env, i32)
DEF_HELPER_2(xsmulsp, void, env, i32)
DEF_HELPER_2(xsdivsp, void, env, i32)
DEF_HELPER_2(xsresp, void, env, i32)
+DEF_HELPER_2(xssqrtsp, void, env, i32)
DEF_HELPER_2(xvadddp, void, env, i32)
DEF_HELPER_2(xvsubdp, void, env, i32)