Re: [GCC][PATCH][Aarch64] Add Bfloat16_t scalar type, vector types and machine modes to Aarch64 back-end [1/2]

2020-01-10 Thread Stam Markianos-Wright
On 1/9/20 3:42 PM, Richard Sandiford wrote: > Thanks for the update, looks great. > > Stam Markianos-Wright writes: >> diff --git a/gcc/config/aarch64/arm_bf16.h b/gcc/config/aarch64/arm_bf16.h >> new file mode 100644 >> index >>

Re: [GCC][PATCH][Aarch64] Add Bfloat16_t scalar type, vector types and machine modes to Aarch64 back-end [1/2]

2020-01-09 Thread Richard Sandiford
Thanks for the update, looks great. Stam Markianos-Wright writes: > diff --git a/gcc/config/aarch64/arm_bf16.h b/gcc/config/aarch64/arm_bf16.h > new file mode 100644 > index > ..884b6f3bc7a28c516e54c26a71b1b769f55867a7 > --- /dev/null > +++

Re: [GCC][PATCH][Aarch64] Add Bfloat16_t scalar type, vector types and machine modes to Aarch64 back-end [1/2]

2020-01-09 Thread Stam Markianos-Wright
On 1/7/20 5:14 PM, Richard Sandiford wrote: > Thanks for the update. The new patch looks really good, just some > minor comments. > > Stam Markianos-Wright writes: >> [...] >> Also I've update the filenames of all our tests to make them a bit clearer: >> >> C tests: >> >> __

Re: [GCC][PATCH][Aarch64] Add Bfloat16_t scalar type, vector types and machine modes to Aarch64 back-end [1/2]

2020-01-07 Thread Richard Sandiford
Thanks for the update. The new patch looks really good, just some minor comments. Stam Markianos-Wright writes: > [...] > Also I've update the filenames of all our tests to make them a bit clearer: > > C tests: > > __ bfloat16_scalar_compile_1.c to bfloat16_scalar_compile_3.c: Compilation of >

Re: [GCC][PATCH][Aarch64] Add Bfloat16_t scalar type, vector types and machine modes to Aarch64 back-end [1/2]

2020-01-07 Thread Stam Markianos-Wright
On 23/12/2019 16:57, Richard Sandiford wrote: > Stam Markianos-Wright writes: >> On 12/19/19 10:01 AM, Richard Sandiford wrote: + +#pragma GCC push_options +#pragma GCC target ("arch=armv8.2-a+bf16") +#ifdef __ARM_FEATURE_BF16_SCALAR_ARITHMETIC + +typedef __bf16

Re: [GCC][PATCH][Aarch64] Add Bfloat16_t scalar type, vector types and machine modes to Aarch64 back-end [1/2]

2019-12-23 Thread Richard Sandiford
Stam Markianos-Wright writes: > On 12/19/19 10:01 AM, Richard Sandiford wrote: >>> + >>> +#pragma GCC push_options >>> +#pragma GCC target ("arch=armv8.2-a+bf16") >>> +#ifdef __ARM_FEATURE_BF16_SCALAR_ARITHMETIC >>> + >>> +typedef __bf16 bfloat16_t; >>> + >>> + >>> +#endif >>> +#pragma GCC

Re: [GCC][PATCH][Aarch64] Add Bfloat16_t scalar type, vector types and machine modes to Aarch64 back-end [1/2]

2019-12-23 Thread Stam Markianos-Wright
On 12/19/19 10:01 AM, Richard Sandiford wrote: > Stam Markianos-Wright writes: >> [...] >> @@ -659,6 +666,8 @@ aarch64_simd_builtin_std_type (machine_mode mode, >> return float_type_node; >> case E_DFmode: >> return double_type_node; >> +case E_BFmode: >> + return

Re: [GCC][PATCH][Aarch64] Add Bfloat16_t scalar type, vector types and machine modes to Aarch64 back-end [1/2]

2019-12-19 Thread Richard Sandiford
Stam Markianos-Wright writes: > [...] > @@ -659,6 +666,8 @@ aarch64_simd_builtin_std_type (machine_mode mode, >return float_type_node; > case E_DFmode: >return double_type_node; > +case E_BFmode: > + return aarch64_bf16_type_node; > default: >

[GCC][PATCH][Aarch64] Add Bfloat16_t scalar type, vector types and machine modes to Aarch64 back-end [1/2]

2019-12-18 Thread Stam Markianos-Wright
Hi all, This patch adds Bfloat type support to the ARM back-end. It also adds a new machine_mode (BFmode) for this type and accompanying Vector modes V4BFmode and V8BFmode. The second patch in this series uses existing target hooks to restrict type use. Regression testing on aarch64-none-elf