This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 4/17][ARM] Define feature macros for FP16.
- From: Ramana Radhakrishnan <ramana dot gcc at googlemail dot com>
- To: Matthew Wahab <matthew dot wahab at foss dot arm dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 27 Jul 2016 14:35:19 +0100
- Subject: Re: [PATCH 4/17][ARM] Define feature macros for FP16.
- Authentication-results: sourceware.org; auth=none
- References: <573B28A3.9030603@foss.arm.com> <573B2A70.7030805@foss.arm.com>
On Tue, May 17, 2016 at 3:28 PM, Matthew Wahab
<matthew.wahab@foss.arm.com> wrote:
> The FP16 extension introduced with the ARMv8.2-A architecture adds
> instructions operating on FP16 values to the VFP and NEON instruction
> sets.
>
> The patch adds the feature macro __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
> which is defined to be 1 if the VFP FP16 instructions are available; it
> is otherwise undefined.
>
> The patch also adds the feature macro __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
> which is defined to be 1 if the NEON FP16 instructions are available; it
> is otherwise undefined.
>
> These two macros will appear in a future version of the ACLE.
>
> Tested the series for arm-none-linux-gnueabihf with native bootstrap and
> make check and for arm-none-eabi and armeb-none-eabi with make check on
> an ARMv8.2-A emulator.
>
> Ok for trunk?
> Matthew
>
> 2016-05-17 Matthew Wahab <matthew.wahab@arm.com>
>
> * config/arm/arm-c.c (arm_cpu_builtins): Define
> "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
> "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
>
> testsuite/
> 2016-05-17 Matthew Wahab <matthew.wahab@arm.com>
>
> * gcc.target/arm/attr-fp16-arith-1.c: New.
>
OK.
Ramana