OSDN Git Service

target/ppc: Tidy helper_fadd, helper_fsub
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 3 Jul 2018 15:17:29 +0000 (08:17 -0700)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 21 Aug 2018 04:28:45 +0000 (14:28 +1000)
commitac43cec37e9b1661935e946774ec34f0d50c641e
tree8cc17dca65592b0b3a02d664fbea492f5201d908
parent79f916331da907b44e5da2c97f57823bcf8db3fb
target/ppc: Tidy helper_fadd, helper_fsub

Tidy the invalid exception checking so that we rely on softfloat for
initial argument validation, and select the kind of invalid operand
exception only when we know we must.  Pass and return float64 values
directly rather than bounce through the CPU_DoubleU union.

Note that because we know float_flag_invalid was set, we do not have
to re-check the signs of the infinities.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/fpu_helper.c
target/ppc/helper.h