target/ppc: Add helper for fsqrts
commit41ae890d08b2254da02c2b422a85cbb9d38843df
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 17 Dec 2021 16:57:16 +0000 (17 17:57 +0100)
committerCédric Le Goater <clg@kaod.org>
Fri, 17 Dec 2021 16:57:16 +0000 (17 17:57 +0100)
tree09c6e41a7540e892663a84cdbf4c00f542cc95ef
parentd04ca895dc7fec3a5d6e5a017093f807d47ce141
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>
target/ppc/fpu_helper.c
target/ppc/helper.h
target/ppc/translate/fp-impl.c.inc