PATCH RFA: Fix simulator handling of floating point absolute value
Frank Ch. Eigler
fche@redhat.com
Fri Jul 8 15:38:00 GMT 2005
ian wrote:
> [...]
> This patch changes sim_fpu_abs to always clear the sign bit of the
> argument. It does not otherwise change the behaviour. This, plus
> another patch I am about to sign, fixes the gcc copysign1 test for
> MIPS.
>
> OK for mainline?
> [...]
Looks okay. I can't find libgcc1 (soft-float emulation, the sim-fpu
code's ancestor) in current gcc any more to cross-check. Newlib's
fabs implementation (libm/math/s_fabs.c) appears to clear the sign bit
in the same way as your new code.
- FChE
More information about the Gdb-patches
mailing list