On 11/11/16 15:42, James Greenhalgh wrote:
Hi,

Conversions from double precision floats to the ARM __fp16 are required
to round only once.

This patch adds a functions named __gnu_d2h_ieee and
__gnu_d2h_alternative for double to __fp16 conversions in IEEE and ARM
alternative format. The make use of the existing __gnu_float2h_internal
conversion function which rounds once only.

Bootstrapped on an ARMv8-A machine with no issues, and cross-tested with
a range of multilibs.

OK?

Ok.
Thanks,
Kyrill

Thanks,
James
---

libgcc/

2016-11-09  James Greenhalgh  <james.greenha...@arm.com>
            Matthew Wahab  <matthew.wa...@arm.com>

        * config/arm/fp16.c (binary64): New.
        (__gnu_d2h_internal): New.
        (__gnu_d2h_ieee): New.
        (__gnu_d2h_alternative): New.


Reply via email to