Function stacktest1 in bfloat16_scalar_1_1.c test requires
-mfloat-abi=hard for the associated check-function-bodies to pass.

This patchs the corresponding arm_hard_ok effective-target and
-mfloat-abi=hard dg-add-options.

This avoids a failure with toolchains configured with
-mfloat-abi=soft/softfp by default.

2021-03-17  Christophe Lyon  <christophe.l...@linaro.org>

gcc/testsuite/
* gcc.target/arm/bfloat16_scalar_1_1.c: Require -mfloat-abi=hard
support.

diff --git a/gcc/testsuite/gcc.target/arm/bfloat16_scalar_1_1.c
b/gcc/testsuite/gcc.target/arm/bfloat16_scalar_1_1.c
index efcc561..7a6c177 100644
--- a/gcc/testsuite/gcc.target/arm/bfloat16_scalar_1_1.c
+++ b/gcc/testsuite/gcc.target/arm/bfloat16_scalar_1_1.c
@@ -1,7 +1,8 @@
 /* { dg-do assemble { target { arm*-*-* } } } */
+/* { dg-require-effective-target arm_hard_ok } */
 /* { dg-require-effective-target arm_v8_2a_bf16_neon_ok } */
 /* { dg-add-options arm_v8_2a_bf16_neon }  */
-/* { dg-additional-options "-O3 --save-temps -std=gnu90" } */
+/* { dg-additional-options "-O3 --save-temps -std=gnu90 -mfloat-abi=hard" } */
 /* { dg-final { check-function-bodies "**" "" } } */

 #include <arm_bf16.h>
arm: Fix bfloat16_scalar_1_1.c test

Function stacktest1 in bfloat16_scalar_1_1.c test requires
-mfloat-abi=hard for the associated check-function-bodies to pass.

This patchs the corresponding arm_hard_ok effective-target and
-mfloat-abi=hard dg-add-options.

This avoids a failure with toolchains configured with
-mfloat-abi=soft/softfp by default.

2021-03-17  Christophe Lyon  <christophe.l...@linaro.org>

	gcc/testsuite/
	* gcc.target/arm/bfloat16_scalar_1_1.c: Require -mfloat-abi=hard
	support.

diff --git a/gcc/testsuite/gcc.target/arm/bfloat16_scalar_1_1.c b/gcc/testsuite/gcc.target/arm/bfloat16_scalar_1_1.c
index efcc561..7a6c177 100644
--- a/gcc/testsuite/gcc.target/arm/bfloat16_scalar_1_1.c
+++ b/gcc/testsuite/gcc.target/arm/bfloat16_scalar_1_1.c
@@ -1,7 +1,8 @@
 /* { dg-do assemble { target { arm*-*-* } } } */
+/* { dg-require-effective-target arm_hard_ok } */
 /* { dg-require-effective-target arm_v8_2a_bf16_neon_ok } */
 /* { dg-add-options arm_v8_2a_bf16_neon }  */
-/* { dg-additional-options "-O3 --save-temps -std=gnu90" } */
+/* { dg-additional-options "-O3 --save-temps -std=gnu90 -mfloat-abi=hard" } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
 #include <arm_bf16.h>

Reply via email to