aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2020-04-22 13:45:05 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2020-04-22 13:56:51 +0000
commitddce7c0cb30343a7fb8574907596699ca5332e65 (patch)
tree5600960f6a9304905246e3eb603471ab5e4ab72f
parentd414c91510bec4f640de29661062d5672a5684e8 (diff)
downloadgcc-ddce7c0cb30343a7fb8574907596699ca5332e65.zip
gcc-ddce7c0cb30343a7fb8574907596699ca5332e65.tar.gz
gcc-ddce7c0cb30343a7fb8574907596699ca5332e65.tar.bz2
testsuite: [arm/mve] Use arm_softfp and arm_hard as needed in MVE tests
Some MVE tests explicitly test a -mfloat-abi=hard option, but we need to check that the toolchain actually supports it (which may not be the case for arm-linux-gnueabi* targets). We can thus remove the related dg-skip directives. We also make use of dg-add-options arm_v8_1m_mve_fp and arm_v8_1m_mve instead of duplicating the corresponding options in dg-additional-options where we keep only -mfloat-abi to override the option selected by arm_v8_1m_mve_fp. 2020-04-22 Christophe Lyon <christophe.lyon@linaro.org> gcc/testsuite/ * gcc.target/arm/mve/intrinsics/mve_fp_fpu1.c: Use arm_hard_ok effective target and arm_v8_1m_mve_fp options. * gcc.target/arm/mve/intrinsics/mve_fp_fpu2.c: Use arm_softfp_ok effective target and arm_v8_1m_mve_fp options. * gcc.target/arm/mve/intrinsics/mve_fpu1.c: Use arm_hard_ok effective target and arm_v8_1m_mve options. * gcc.target/arm/mve/intrinsics/mve_fpu2.c: Use arm_softfp_ok effective target and arm_v8_1m_mve options.
-rw-r--r--gcc/testsuite/ChangeLog11
-rw-r--r--gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fp_fpu1.c5
-rw-r--r--gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fp_fpu2.c4
-rw-r--r--gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fpu1.c5
-rw-r--r--gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fpu2.c5
5 files changed, 23 insertions, 7 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9c3a03c..81f3cae 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,16 @@
2020-04-22 Christophe Lyon <christophe.lyon@linaro.org>
+ * gcc.target/arm/mve/intrinsics/mve_fp_fpu1.c: Use arm_hard_ok
+ effective target and arm_v8_1m_mve_fp options.
+ * gcc.target/arm/mve/intrinsics/mve_fp_fpu2.c: Use arm_softfp_ok
+ effective target and arm_v8_1m_mve_fp options.
+ * gcc.target/arm/mve/intrinsics/mve_fpu1.c: Use arm_hard_ok
+ effective target and arm_v8_1m_mve options.
+ * gcc.target/arm/mve/intrinsics/mve_fpu2.c: Use arm_softfp_ok
+ effective target and arm_v8_1m_mve options.
+
+2020-04-22 Christophe Lyon <christophe.lyon@linaro.org>
+
* lib/target-supports.exp (arm_softfp_ok): New effective target.
(arm_hard_ok): Likewise.
diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fp_fpu1.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fp_fpu1.c
index 1462dd4..e375327 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fp_fpu1.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fp_fpu1.c
@@ -1,6 +1,7 @@
/* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */
-/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
-/* { dg-additional-options "-march=armv8.1-m.main+mve.fp -mfloat-abi=hard -mthumb -mfpu=auto --save-temps" } */
+/* { dg-require-effective-target arm_hard_ok } */
+/* { dg-add-options arm_v8_1m_mve_fp } */
+/* { dg-additional-options "-mfloat-abi=hard" } */
#include "arm_mve.h"
diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fp_fpu2.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fp_fpu2.c
index d528133..1fca110 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fp_fpu2.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fp_fpu2.c
@@ -1,5 +1,7 @@
/* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */
-/* { dg-additional-options "-march=armv8.1-m.main+mve.fp -mfloat-abi=softfp -mthumb -mfpu=auto --save-temps" } */
+/* { dg-require-effective-target arm_softfp_ok } */
+/* { dg-add-options arm_v8_1m_mve_fp } */
+/* { dg-additional-options "-mfloat-abi=softfp" } */
#include "arm_mve.h"
diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fpu1.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fpu1.c
index 59ca724..611097e 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fpu1.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fpu1.c
@@ -1,6 +1,7 @@
/* { dg-require-effective-target arm_v8_1m_mve_ok } */
-/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
-/* { dg-additional-options "-march=armv8.1-m.main+mve -mfloat-abi=hard -mthumb -mfpu=auto --save-temps" } */
+/* { dg-require-effective-target arm_hard_ok } */
+/* { dg-add-options arm_v8_1m_mve } */
+/* { dg-additional-options "-mfloat-abi=hard" } */
#include "arm_mve.h"
diff --git a/gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fpu2.c b/gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fpu2.c
index ce297ea..b8e1051 100644
--- a/gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fpu2.c
+++ b/gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_fpu2.c
@@ -1,6 +1,7 @@
/* { dg-require-effective-target arm_v8_1m_mve_ok } */
-/* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
-/* { dg-additional-options "-march=armv8.1-m.main+mve -mfloat-abi=softfp -mthumb -mfpu=auto --save-temps" } */
+/* { dg-require-effective-target arm_softfp_ok } */
+/* { dg-add-options arm_v8_1m_mve } */
+/* { dg-additional-options "-mfloat-abi=softfp" } */
#include "arm_mve.h"