This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch, libiberty, gdb] IEEE 754 half floating-point format
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: ken at linux dot vnet dot ibm dot com (Ken Werner), dj at redhat dot com
- Cc: gdb-patches at sourceware dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 6 Jul 2010 15:04:28 +0200 (CEST)
- Subject: Re: [patch, libiberty, gdb] IEEE 754 half floating-point format
Ken Werner wrote:
> include/ChangeLog:
>
> 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
>
> * gfloatformat.h (floatformat_ieee_half_big): Add declaration.
> (floatformat_ieee_half_little): Likewise.
>
> libiberty/ChangeLog:
>
> 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
>
> * floatformat.c (floatformat_ieee_half_big): New variable.
> (floatformat_ieee_half_little): Likewise.
>
> ChangeLog:
>
> 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
>
> * gdbtypes.h (floatformats_ieee_half): Add declaration.
> * gdbtypes.c (floatformats_ieee_half): New variable.
> * doublest.c (floatformat_from_length): Set format to
> gdbarch_half_format if length matches.
> * gdbarch.sh (half_bit): New architecture method.
> (half_format): Likewise.
> * gdbarch.h: Regenerate.
> * gdbarch.c: Likewise.
DJ Delorie wrote:
> The libiberty parts are OK. At least, they shouldn't break anything,
> I have no idea if the *values* are correct.
The GDB parts are OK as well. As far as the values go, they seem correct
to me according to the IEEE spec and compared to GCC's real.c ...
I've checked the patch in to the src and gcc repositories now.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com