public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-7791] testsuite/arm: Add arm_v8_2a_fp16_neon and arm_v8_2a_bf16_neon options
@ 2021-03-23 15:12 Christophe Lyon
  0 siblings, 0 replies; only message in thread
From: Christophe Lyon @ 2021-03-23 15:12 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:3c0351f287e1fdf9a085c499f4657a6501c6cf29

commit r11-7791-g3c0351f287e1fdf9a085c499f4657a6501c6cf29
Author: Christophe Lyon <christophe.lyon@linaro.org>
Date:   Thu Mar 18 14:02:53 2021 +0000

    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.
    
    2021-03-19  Christophe Lyon  <christophe.lyon@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.

Diff:
---
 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 672641e6630..8c80c55bc9f 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 ba39cb6bcd3..f3c350b4cfc 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 16669dcf009..de0ade52c10 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)
 {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-23 15:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-23 15:12 [gcc r11-7791] testsuite/arm: Add arm_v8_2a_fp16_neon and arm_v8_2a_bf16_neon options Christophe Lyon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).