Re: [ARM] Enable __fp16 as a function parameter and return type.

2016-06-02 Thread Matthew Wahab
On 01/06/16 15:43, Christophe Lyon wrote: On 13 May 2016 at 15:41, Ramana Radhakrishnan wrote: On Thu, Apr 28, 2016 at 10:20 AM, Matthew Wahab wrote: This patch enables data movement for HF-mode values using VFP registers, when they are

Re: [ARM] Enable __fp16 as a function parameter and return type.

2016-06-01 Thread Christophe Lyon
On 13 May 2016 at 15:41, Ramana Radhakrishnan wrote: > On Thu, Apr 28, 2016 at 10:20 AM, Matthew Wahab > wrote: >> Hello, >> >> The ARM target supports the half-precision floating point type __fp16 >> but does not allow its use as a function

Re: [ARM] Enable __fp16 as a function parameter and return type.

2016-05-18 Thread Joseph Myers
On Wed, 18 May 2016, Matthew Wahab wrote: > On 18/05/16 09:41, Ramana Radhakrishnan wrote: > > On Mon, May 16, 2016 at 2:16 PM, Tejas Belagod > > wrote: > > > > > > > > We do have plans to fix pre-ACLE behavior of fp16 to conform to current > > > ACLE > > > spec,

Re: [ARM] Enable __fp16 as a function parameter and return type.

2016-05-18 Thread Ramana Radhakrishnan
On 18/05/16 15:33, Matthew Wahab wrote: > On 18/05/16 09:41, Ramana Radhakrishnan wrote: >> On Mon, May 16, 2016 at 2:16 PM, Tejas Belagod >> wrote: >> >>> >>> We do have plans to fix pre-ACLE behavior of fp16 to conform to current ACLE >>> spec, but can't say when

Re: [ARM] Enable __fp16 as a function parameter and return type.

2016-05-18 Thread Matthew Wahab
On 18/05/16 09:41, Ramana Radhakrishnan wrote: On Mon, May 16, 2016 at 2:16 PM, Tejas Belagod wrote: We do have plans to fix pre-ACLE behavior of fp16 to conform to current ACLE spec, but can't say when exactly. Matthew, could you please take a look at this

Re: [ARM] Enable __fp16 as a function parameter and return type.

2016-05-18 Thread Ramana Radhakrishnan
On Mon, May 16, 2016 at 2:16 PM, Tejas Belagod wrote: > > We do have plans to fix pre-ACLE behavior of fp16 to conform to current ACLE > spec, but can't say when exactly. Matthew, could you please take a look at this while you are in this area ? thanks, Ramana > >

Re: [ARM] Enable __fp16 as a function parameter and return type.

2016-05-16 Thread Tejas Belagod
On 11/05/16 16:46, Joseph Myers wrote: On Wed, 11 May 2016, Tejas Belagod wrote: AFAICS, I don't think it mandates a double-rounding behavior for double to __fp16 conversions and I don't see a change in stand between the two versions of ACLE on the behavior of __fp16. It's not a change

Re: [ARM] Enable __fp16 as a function parameter and return type.

2016-05-13 Thread Ramana Radhakrishnan
On Thu, Apr 28, 2016 at 10:20 AM, Matthew Wahab wrote: > Hello, > > The ARM target supports the half-precision floating point type __fp16 > but does not allow its use as a function return or parameter type. This > patch removes that restriction and defines the ACLE

Re: Re: Re: [ARM] Enable __fp16 as a function parameter and return type.

2016-05-13 Thread Joseph Myers
On Fri, 13 May 2016, Tejas Belagod wrote: > > It's not a change between the two versions of ACLE. It's a change > > relative to the early (pre-ACLE) __fp16 specification (or, at least, a > > clarification thereto in email on 12 Aug 2008) that was used as a basis > > for the original

Re: Re: Re: [ARM] Enable __fp16 as a function parameter and return type.

2016-05-13 Thread Tejas Belagod
On 11/05/16 16:46, Joseph Myers wrote: On Wed, 11 May 2016, Tejas Belagod wrote: AFAICS, I don't think it mandates a double-rounding behavior for double to __fp16 conversions and I don't see a change in stand between the two versions of ACLE on the behavior of __fp16. It's not a change

Re: Re: [ARM] Enable __fp16 as a function parameter and return type.

2016-05-11 Thread Joseph Myers
On Wed, 11 May 2016, Tejas Belagod wrote: > AFAICS, I don't think it mandates a double-rounding behavior for double to > __fp16 conversions and I don't see a change in stand between the two versions > of ACLE on the behavior of __fp16. It's not a change between the two versions of ACLE. It's a

Re: Re: [ARM] Enable __fp16 as a function parameter and return type.

2016-05-11 Thread Tejas Belagod
On 28/04/16 16:49, Joseph Myers wrote: On Thu, 28 Apr 2016, Matthew Wahab wrote: Hello, The ARM target supports the half-precision floating point type __fp16 but does not allow its use as a function return or parameter type. This patch removes that restriction and defines the ACLE macro

Re: [ARM] Enable __fp16 as a function parameter and return type.

2016-05-10 Thread Joseph Myers
On Tue, 3 May 2016, Matthew Wahab wrote: > > This patch addresses one incompatibility of the original __fp16 > > specification with the more recent ACLE specification and the > > specification in ISO/IEC TS 18661-3 for how such types should work. > > Another such incompatibility is the

Re: [ARM] Enable __fp16 as a function parameter and return type.

2016-05-03 Thread Matthew Wahab
Hello, On 28/04/16 16:49, Joseph Myers wrote: On Thu, 28 Apr 2016, Matthew Wahab wrote: The ARM target supports the half-precision floating point type __fp16 but does not allow its use as a function return or parameter type. This patch removes that restriction and defines the ACLE macro

Re: [ARM] Enable __fp16 as a function parameter and return type.

2016-04-28 Thread Joseph Myers
On Thu, 28 Apr 2016, Matthew Wahab wrote: > Hello, > > The ARM target supports the half-precision floating point type __fp16 > but does not allow its use as a function return or parameter type. This > patch removes that restriction and defines the ACLE macro > __ARM_FP16_ARGS to indicate this.

[ARM] Enable __fp16 as a function parameter and return type.

2016-04-28 Thread Matthew Wahab
t/arm/aapcs/vfp21.c: New. * gcc.target/arm/fp16-aapcs-1.c: New. * g++.target/arm/fp16-param-1.c: Update expected output. Add test for __ARM_FP16_ARGS. * g++.target/arm/fp16-return-1.c: Update expected output. [PATCH] [ARM] Enable __fp16 as a function parameter and return type.