> -----Original Message----- > From: Gcc-patches <gcc-patches-boun...@gcc.gnu.org> On Behalf Of > Christophe Lyon via Gcc-patches > Sent: 23 March 2021 14:33 > To: gcc-patches@gcc.gnu.org > Subject: [PATCH 1/8] testsuite/arm: Add arm_v8_2a_fp16_neon and > arm_v8_2a_bf16_neon options > > A few tests lack the dg-add-options directives associated with the > dg-require-effective-target they are using. Adding them enables to > pass the right float-abi option, and thus make the tests pass instead > of emit an error. > > For instance, we now pass -mfloat-abi=softfp on arm-linux-gnueabi > targets and the tests pass. > Ok. Thanks, Kyrill > 2021-03-19 Christophe Lyon <christophe.l...@linaro.org> > > gcc/testsuite/ > * gcc.target/arm/bfloat16_scalar_typecheck.c: Add > arm_v8_2a_fp16_neon and arm_v8_2a_bf16_neon. > * gcc.target/arm/bfloat16_vector_typecheck_1.c: Likewise. > * gcc.target/arm/bfloat16_vector_typecheck_2.c: Likewise. > --- > gcc/testsuite/gcc.target/arm/bfloat16_scalar_typecheck.c | 2 ++ > gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_1.c | 2 ++ > gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_2.c | 6 ++++-- > 3 files changed, 8 insertions(+), 2 deletions(-) > > diff --git a/gcc/testsuite/gcc.target/arm/bfloat16_scalar_typecheck.c > b/gcc/testsuite/gcc.target/arm/bfloat16_scalar_typecheck.c > index 672641e..8c80c55 100644 > --- a/gcc/testsuite/gcc.target/arm/bfloat16_scalar_typecheck.c > +++ b/gcc/testsuite/gcc.target/arm/bfloat16_scalar_typecheck.c > @@ -2,6 +2,8 @@ > /* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } } */ > /* { dg-require-effective-target arm_v8_2a_fp16_neon_ok } */ > /* { dg-require-effective-target arm_v8_2a_bf16_neon_ok } */ > +/* { dg-add-options arm_v8_2a_fp16_neon } */ > +/* { dg-add-options arm_v8_2a_bf16_neon } */ > /* { dg-additional-options "-march=armv8.6-a+bf16+fp16 -Wno-pedantic - > O3 --save-temps" } */ > > #include <arm_neon.h> > diff --git a/gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_1.c > b/gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_1.c > index ba39cb6..f3c350b 100644 > --- a/gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_1.c > +++ b/gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_1.c > @@ -2,6 +2,8 @@ > /* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } } */ > /* { dg-require-effective-target arm_v8_2a_fp16_neon_ok } */ > /* { dg-require-effective-target arm_v8_2a_bf16_neon_ok } */ > +/* { dg-add-options arm_v8_2a_fp16_neon } */ > +/* { dg-add-options arm_v8_2a_bf16_neon } */ > /* { dg-additional-options "-march=armv8.6-a+bf16+fp16 -Wno-pedantic - > O3 --save-temps" } */ > > #include <arm_neon.h> > diff --git a/gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_2.c > b/gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_2.c > index 16669dc..de0ade5 100644 > --- a/gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_2.c > +++ b/gcc/testsuite/gcc.target/arm/bfloat16_vector_typecheck_2.c > @@ -2,6 +2,8 @@ > /* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } } */ > /* { dg-require-effective-target arm_v8_2a_fp16_neon_ok } */ > /* { dg-require-effective-target arm_v8_2a_bf16_neon_ok } */ > +/* { dg-add-options arm_v8_2a_fp16_neon } */ > +/* { dg-add-options arm_v8_2a_bf16_neon } */ > /* { dg-additional-options "-march=armv8.6-a+bf16+fp16 -Wno-pedantic - > O3 --save-temps" } */ > > #include <arm_neon.h> > @@ -25,8 +27,8 @@ float is_a_float16; > double is_a_double; > > bfloat16x8_t foo3 (void) { return (bfloat16x8_t) > 0x12345678123456781234567812345678; } > - /* { dg-error {integer constant is too large for its type} "" {target > *-*-*} 27 } > */ > - /* { dg-error {cannot convert a value of type 'long long int' to vector type > '__simd128_bfloat16_t' which has different size} "" {target *-*-*} 27 } */ > + /* { dg-error {integer constant is too large for its type} "" {target > *-*-*} .-1 } > */ > + /* { dg-error {cannot convert a value of type 'long long int' to vector type > '__simd128_bfloat16_t' which has different size} "" {target *-*-*} .-2 } */ > > bfloat16x8_t footest (bfloat16x8_t vector0) > { > -- > 2.7.4
RE: [PATCH 1/8] testsuite/arm: Add arm_v8_2a_fp16_neon and arm_v8_2a_bf16_neon options
Kyrylo Tkachov via Gcc-patches Tue, 23 Mar 2021 07:51:20 -0700
- [PATCH 0/8] testsuite/arm: Various cleanup... Christophe Lyon via Gcc-patches
- [PATCH 1/8] testsuite/arm: Add arm_v8... Christophe Lyon via Gcc-patches
- RE: [PATCH 1/8] testsuite/arm: Ad... Kyrylo Tkachov via Gcc-patches
- [PATCH 2/8] testsuite/arm: Add arm_v8... Christophe Lyon via Gcc-patches
- RE: [PATCH 2/8] testsuite/arm: Ad... Kyrylo Tkachov via Gcc-patches
- [PATCH 3/8] testsuite/arm: Remove use... Christophe Lyon via Gcc-patches
- RE: [PATCH 3/8] testsuite/arm: Re... Kyrylo Tkachov via Gcc-patches
- [PATCH 4/8] testsuite/arm: Add arm_so... Christophe Lyon via Gcc-patches
- RE: [PATCH 4/8] testsuite/arm: Ad... Kyrylo Tkachov via Gcc-patches
- [PATCH 5/8] testsuite/arm: Add arm_ha... Christophe Lyon via Gcc-patches
- RE: [PATCH 5/8] testsuite/arm: Ad... Kyrylo Tkachov via Gcc-patches
- [PATCH 6/8] testsuite/arm: Fix -mfloa... Christophe Lyon via Gcc-patches
- RE: [PATCH 6/8] testsuite/arm: Fi... Kyrylo Tkachov via Gcc-patches