summaryrefslogtreecommitdiffstats
path: root/target/ppc/helper.h
diff options
context:
space:
mode:
authorRichard Henderson2021-12-17 17:57:16 +0100
committerCédric Le Goater2021-12-17 17:57:16 +0100
commit41ae890d08b2254da02c2b422a85cbb9d38843df (patch)
tree09c6e41a7540e892663a84cdbf4c00f542cc95ef /target/ppc/helper.h
parenttarget/ppc: Add helpers for fmadds et al (diff)
downloadqemu-41ae890d08b2254da02c2b422a85cbb9d38843df.tar.gz
qemu-41ae890d08b2254da02c2b422a85cbb9d38843df.tar.xz
qemu-41ae890d08b2254da02c2b422a85cbb9d38843df.zip
target/ppc: Add helper for fsqrts
Use float64r32_sqrt. Fixes a double-rounding issue with performing the compuation in float64 and then rounding afterward. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20211119160502.17432-30-richard.henderson@linaro.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
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 8a9f2ee7ed..9d7c9a919a 100644
--- a/target/ppc/helper.h
+++ b/target/ppc/helper.h
@@ -106,6 +106,7 @@ DEF_HELPER_4(fmsubs, i64, env, i64, i64, i64)
DEF_HELPER_4(fnmadds, i64, env, i64, i64, i64)
DEF_HELPER_4(fnmsubs, i64, env, i64, i64, i64)
DEF_HELPER_2(fsqrt, f64, env, f64)
+DEF_HELPER_2(fsqrts, f64, env, f64)
DEF_HELPER_2(fre, i64, env, i64)
DEF_HELPER_2(fres, i64, env, i64)
DEF_HELPER_2(frsqrte, i64, env, i64)