testsuite: [arm/mve] Use dg-add-options arm_v8_1m_mve in MVE tests
authorChristophe Lyon <christophe.lyon@linaro.org>
Wed, 22 Apr 2020 13:48:59 +0000 (13:48 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Wed, 22 Apr 2020 13:56:51 +0000 (13:56 +0000)
Several ARM/MVE tests can be compiled even if the toolchain does not
support -mfloat-abi=hard (softfp is OK).

Use dg-add-options arm_v8_1m_mve or arm_v8_1m_mve_fp instead of using
dg-additional-options.

2020-04-22  Christophe Lyon  <christophe.lyon@linaro.org>

gcc/testsuite/
* gcc.target/arm/mve/intrinsics/mve_vector_float.c: Use
arm_v8_1m_mve_fp.
* gcc.target/arm/mve/intrinsics/mve_vector_float1.c: Likewise.
* gcc.target/arm/mve/intrinsics/mve_vector_float2.c: Likewise.
* gcc.target/arm/mve/intrinsics/mve_vector_int.c: Use
arm_v8_1m_mve.
* gcc.target/arm/mve/intrinsics/mve_vector_int1.c: Likewise.
* gcc.target/arm/mve/intrinsics/mve_vector_int2.c: Likewise.
* gcc.target/arm/mve/intrinsics/mve_vector_uint.c: Likewise.
* gcc.target/arm/mve/intrinsics/mve_vector_uint1.c: Likewise.
* gcc.target/arm/mve/intrinsics/mve_vector_uint2.c: Likewise.

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_vector_float.c
gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_vector_float1.c
gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_vector_float2.c
gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_vector_int.c
gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_vector_int1.c
gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_vector_int2.c
gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_vector_uint.c
gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_vector_uint1.c
gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_vector_uint2.c

index 0fb0021fa724eb968ed343f65d67d369ccfa6e32..512fc951a72f9b7f22cfd099971658cf43c4cdb0 100644 (file)
@@ -1,3 +1,17 @@
+2020-04-22  Christophe Lyon  <christophe.lyon@linaro.org>
+
+        * gcc.target/arm/mve/intrinsics/mve_vector_float.c: Use
+        arm_v8_1m_mve_fp.
+        * gcc.target/arm/mve/intrinsics/mve_vector_float1.c: Likewise.
+        * gcc.target/arm/mve/intrinsics/mve_vector_float2.c: Likewise.
+        * gcc.target/arm/mve/intrinsics/mve_vector_int.c: Use
+        arm_v8_1m_mve.
+        * gcc.target/arm/mve/intrinsics/mve_vector_int1.c: Likewise.
+        * gcc.target/arm/mve/intrinsics/mve_vector_int2.c: Likewise.
+        * gcc.target/arm/mve/intrinsics/mve_vector_uint.c: Likewise.
+        * gcc.target/arm/mve/intrinsics/mve_vector_uint1.c: Likewise.
+        * gcc.target/arm/mve/intrinsics/mve_vector_uint2.c: Likewise.
+
 2020-04-22  Christophe Lyon  <christophe.lyon@linaro.org>
 
         * gcc.target/arm/mve/intrinsics/mve_move_gpr_to_gpr.c: Remove
index 881157fc1be2e3ca33666eaf7544cd0d020d0d4b..6519b81a0d5dc7a9c04ef232f3ee5bb04a97aaa5 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */
+/* { dg-add-options arm_v8_1m_mve_fp } */
 /* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
-/* { dg-additional-options "-march=armv8.1-m.main+mve.fp -mfpu=auto -mfloat-abi=hard -mthumb --save-temps" } */
 
 #include "arm_mve.h"
 
index 9515ed622ace8e51cf87f05aab85d0e501f8dd44..855e3b8845ffe0040d5550c15f30cf0b7695c12c 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */
+/* { dg-add-options arm_v8_1m_mve_fp } */
 /* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
-/* { dg-additional-options "-march=armv8.1-m.main+mve.fp -mfpu=auto -mfloat-abi=hard -mthumb --save-temps" } */
 
 #include "arm_mve.h"
 
index 3ce8ea3b303509df1ecd8096b990ea9b02846c79..e3cf8f8207d603243eae22be9a90bbb1e8a73a58 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */
+/* { dg-add-options arm_v8_1m_mve_fp } */
 /* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
-/* { dg-additional-options "-march=armv8.1-m.main+mve.fp -mfpu=auto -mfloat-abi=hard -mthumb --save-temps" } */
 
 #include "arm_mve.h"
 
index dab07051bda3b823b2643d8d0c6aa266515a84c2..e70cbc12b1a65be9e110c9aa73effb2c3ea22f71 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-require-effective-target arm_v8_1m_mve_ok } */
+/* { dg-add-options arm_v8_1m_mve } */
 /* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
-/* { dg-additional-options "-march=armv8.1-m.main+mve -mfpu=auto -mfloat-abi=hard -mthumb --save-temps" } */
 
 #include "arm_mve.h"
 
index e54516b25309a64355d6584d2d9a5aed6ee9611e..b13d0a81286feaa6e31f97996cc71e6880e7fd97 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-require-effective-target arm_v8_1m_mve_ok } */
+/* { dg-add-options arm_v8_1m_mve } */
 /* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
-/* { dg-additional-options "-march=armv8.1-m.main+mve -mfpu=auto -mfloat-abi=hard -mthumb --save-temps" } */
 
 #include "arm_mve.h"
 
index 2bd9bdfed92e7342b8f87551ed83b6a45cc577eb..04403ee49387f60924817d432914936cac5f5c32 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-require-effective-target arm_v8_1m_mve_ok } */
+/* { dg-add-options arm_v8_1m_mve } */
 /* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
-/* { dg-additional-options "-march=armv8.1-m.main+mve -mfpu=auto -mfloat-abi=hard -mthumb --save-temps" } */
 
 #include "arm_mve.h"
 
index e8df1a61b5b6f88d8de3990a7d7f47585a4930b1..0c4e763626e12bbe3352c7ecb3d4b325abe033e8 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-require-effective-target arm_v8_1m_mve_ok } */
+/* { dg-add-options arm_v8_1m_mve } */
 /* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
-/* { dg-additional-options "-march=armv8.1-m.main+mve -mfpu=auto -mfloat-abi=hard -mthumb --save-temps" } */
 
 #include "arm_mve.h"
 
index 7ae42b9efbf995ef74eb76d91d3f05924a9a37ac..fce69eb276ddb53446e01f88fa7756cb2a38a9f4 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-require-effective-target arm_v8_1m_mve_ok } */
+/* { dg-add-options arm_v8_1m_mve } */
 /* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
-/* { dg-additional-options "-march=armv8.1-m.main+mve -mfpu=auto -mfloat-abi=hard -mthumb --save-temps" } */
 
 #include "arm_mve.h"
 
index fad9daac7cba58c68064af75ce7e684cd9c83653..e0d6dcbe4bcedd65f700c70fd92ff2bb2c56ec4c 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-require-effective-target arm_v8_1m_mve_ok } */
+/* { dg-add-options arm_v8_1m_mve } */
 /* { dg-skip-if "Incompatible float ABI" { *-*-* } { "-mfloat-abi=soft" } {""} } */
-/* { dg-additional-options "-march=armv8.1-m.main+mve -mfpu=auto -mfloat-abi=hard -mthumb --save-temps" } */
 
 #include "arm_mve.h"