[Patch 15/17 libgcc ARM] Add double to half conversions.

Kyrill Tkachov kyrylo.tkachov@foss.arm.com
Wed Nov 16 14:46:00 GMT 2016


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.greenhalgh@arm.com>
> 	    Matthew Wahab  <matthew.wahab@arm.com>
>
> 	* config/arm/fp16.c (binary64): New.
> 	(__gnu_d2h_internal): New.
> 	(__gnu_d2h_ieee): New.
> 	(__gnu_d2h_alternative): New.
>



More information about the Gcc-patches mailing list