OSDN Git Service

target/ppc: Add helpers for fadds, fsubs, fdivs
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 17 Dec 2021 16:57:16 +0000 (17:57 +0100)
committerCédric Le Goater <clg@kaod.org>
Fri, 17 Dec 2021 16:57:16 +0000 (17:57 +0100)
commitd9e792a1c17020ea87f281b83d4d79a1fda3856f
treea4e3f9c660e20bf95914a0646c772fc87b968098
parent41ae890d08b2254da02c2b422a85cbb9d38843df
target/ppc: Add helpers for fadds, fsubs, fdivs

Use float64r32_{add,sub,div}.  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-31-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