Re: [Patch 2/4] [libgcc] Add double to half conversions.

2016-10-24 Thread Joseph Myers
On Mon, 24 Oct 2016, James Greenhalgh wrote: > Conversions from double precision floats to the ARM __fp16 are required > to round only once. I'd expect that when fixing this you need to update gcc.target/arm/fp16-rounding-ieee-1.c (and fp16-rounding-alt-1.c, I suppose) to expect rounding once.

[Patch 2/4] [libgcc] Add double to half conversions.

2016-10-24 Thread James Greenhalgh
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 conv