[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Tue, 17 Apr 2018 16:34:56 +0000 (16:34 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Tue, 17 Apr 2018 16:34:56 +0000 (16:34 +0000)
PR testsuite/85326
* gcc.target/arm/pr54300.C: Move to...
* g++.dg/other/pr54300.C: ... Here.  Add target directives.
* gcc.target/arm/pr55073.C: Move to...
* g++.dg/other/pr55073.C: ... Here.  Add target directives.
* gcc.target/arm/pr56184.C: Move to...
* g++.dg/other/pr56184.C: ... Here.  Add target directives.
* gcc.target/arm/pr59985.C: Move to...
* g++.dg/other/pr59985.C: ... Here.  Add target directives.
* gcc.target/aarch64/pr60675.C: Move to...
* g++.dg/other/pr60675.C: ... Here.  Add target directives.
* gcc.target/aarch64/pr81422.C: Move to...
* g++.dg/other/pr81422.C: ... Here.  Add target directives.
* gcc.target/aarch64/sve/const_pred_1.C: Move to...
* g++.dg/other/sve_const_pred_1.C: ... Here.  Add target directives.
* gcc.target/aarch64/sve/const_pred_2.C: Move to...
* g++.dg/other/sve_const_pred_2.C: ... Here.  Add target directives.
* gcc.target/aarch64/sve/const_pred_3.C: Move to...
* g++.dg/other/sve_const_pred_3.C: ... Here.  Add target directives.
* gcc.target/aarch64/sve/const_pred_4.C: Move to...
* g++.dg/other/sve_const_pred_4.C: ... Here.  Add target directives.
* gcc.target/aarch64/sve/tls_2.C: Move to...
* g++.dg/other/sve_tls_2.C: ... Here.  Add target directives.
* gcc.target/aarch64/pr81414.C: Rename to...
* gcc.target/aarch64/pr81414.c: ... This.
* gcc.target/aarch64/simd/pr67896.C: Rename to...
* gcc.target/aarch64/simd/pr67896.c: ... This.  Update error expected
messages.
* gcc.target/aarch64/sve/vcond_1.C: Rename to...
* gcc.target/aarch64/sve/vcond_1.c: ... This.  Avoid use of stdint.h.
* gcc.target/aarch64/sve/vcond_1_run.C: Rename to...
* gcc.target/aarch64/sve/vcond_1_run.c: ... This.  Update include
file name.

From-SVN: r259435

17 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr54300.C [moved from gcc/testsuite/gcc.target/arm/pr54300.C with 97% similarity]
gcc/testsuite/g++.dg/other/pr55073.C [moved from gcc/testsuite/gcc.target/arm/pr55073.C with 98% similarity]
gcc/testsuite/g++.dg/other/pr56184.C [moved from gcc/testsuite/gcc.target/arm/pr56184.C with 99% similarity]
gcc/testsuite/g++.dg/other/pr59985.C [moved from gcc/testsuite/gcc.target/arm/pr59985.C with 97% similarity]
gcc/testsuite/g++.dg/other/pr60675.C [moved from gcc/testsuite/gcc.target/aarch64/pr60675.C with 99% similarity]
gcc/testsuite/g++.dg/other/pr81422.C [moved from gcc/testsuite/gcc.target/aarch64/pr81422.C with 100% similarity]
gcc/testsuite/g++.dg/other/sve_const_pred_1.C [moved from gcc/testsuite/gcc.target/aarch64/sve/const_pred_1.C with 78% similarity]
gcc/testsuite/g++.dg/other/sve_const_pred_2.C [moved from gcc/testsuite/gcc.target/aarch64/sve/const_pred_2.C with 75% similarity]
gcc/testsuite/g++.dg/other/sve_const_pred_3.C [moved from gcc/testsuite/gcc.target/aarch64/sve/const_pred_3.C with 73% similarity]
gcc/testsuite/g++.dg/other/sve_const_pred_4.C [moved from gcc/testsuite/gcc.target/aarch64/sve/const_pred_4.C with 72% similarity]
gcc/testsuite/g++.dg/other/sve_tls_2.C [moved from gcc/testsuite/gcc.target/aarch64/sve/tls_2.C with 84% similarity]
gcc/testsuite/gcc.target/aarch64/pr81414.c [moved from gcc/testsuite/gcc.target/aarch64/pr81414.C with 100% similarity]
gcc/testsuite/gcc.target/aarch64/simd/pr67896.C [deleted file]
gcc/testsuite/gcc.target/aarch64/simd/pr67896.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/sve/vcond_1.C
gcc/testsuite/gcc.target/aarch64/sve/vcond_1_run.C

index 95bdc03..af61628 100644 (file)
@@ -1,3 +1,39 @@
+2018-04-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       PR testsuite/85326
+       * gcc.target/arm/pr54300.C: Move to...
+       * g++.dg/other/pr54300.C: ... Here.  Add target directives.
+       * gcc.target/arm/pr55073.C: Move to...
+       * g++.dg/other/pr55073.C: ... Here.  Add target directives.
+       * gcc.target/arm/pr56184.C: Move to...
+       * g++.dg/other/pr56184.C: ... Here.  Add target directives.
+       * gcc.target/arm/pr59985.C: Move to...
+       * g++.dg/other/pr59985.C: ... Here.  Add target directives.
+       * gcc.target/aarch64/pr60675.C: Move to...
+       * g++.dg/other/pr60675.C: ... Here.  Add target directives.
+       * gcc.target/aarch64/pr81422.C: Move to...
+       * g++.dg/other/pr81422.C: ... Here.  Add target directives.
+       * gcc.target/aarch64/sve/const_pred_1.C: Move to...
+       * g++.dg/other/sve_const_pred_1.C: ... Here.  Add target directives.
+       * gcc.target/aarch64/sve/const_pred_2.C: Move to...
+       * g++.dg/other/sve_const_pred_2.C: ... Here.  Add target directives.
+       * gcc.target/aarch64/sve/const_pred_3.C: Move to...
+       * g++.dg/other/sve_const_pred_3.C: ... Here.  Add target directives.
+       * gcc.target/aarch64/sve/const_pred_4.C: Move to...
+       * g++.dg/other/sve_const_pred_4.C: ... Here.  Add target directives.
+       * gcc.target/aarch64/sve/tls_2.C: Move to...
+       * g++.dg/other/sve_tls_2.C: ... Here.  Add target directives.
+       * gcc.target/aarch64/pr81414.C: Rename to...
+       * gcc.target/aarch64/pr81414.c: ... This.
+       * gcc.target/aarch64/simd/pr67896.C: Rename to...
+       * gcc.target/aarch64/simd/pr67896.c: ... This.  Update error expected
+       messages.
+       * gcc.target/aarch64/sve/vcond_1.C: Rename to...
+       * gcc.target/aarch64/sve/vcond_1.c: ... This.  Avoid use of stdint.h.
+       * gcc.target/aarch64/sve/vcond_1_run.C: Rename to...
+       * gcc.target/aarch64/sve/vcond_1_run.c: ... This.  Update include
+       file name.
+
 2018-04-17  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/85414
similarity index 97%
rename from gcc/testsuite/gcc.target/arm/pr54300.C
rename to gcc/testsuite/g++.dg/other/pr54300.C
index 9105e27..e16646a 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run } */
+/* { dg-do run { target arm*-*-* } } */
 /* { dg-require-effective-target arm_neon } */
 /* { dg-options "-O2" } */
 /* { dg-add-options arm_neon } */
similarity index 98%
rename from gcc/testsuite/gcc.target/arm/pr55073.C
rename to gcc/testsuite/g++.dg/other/pr55073.C
index 5575cf7..859c5d4 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run } */
+/* { dg-do run { target arm*-*-* } } */
 /* { dg-require-effective-target arm_neon } */
 /* { dg-options "-O2" } */
 /* { dg-add-options arm_neon } */
similarity index 99%
rename from gcc/testsuite/gcc.target/arm/pr56184.C
rename to gcc/testsuite/g++.dg/other/pr56184.C
index 8244222..dc94928 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target arm*-*-* } } */
 /* { dg-skip-if "incompatible options" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */
 /* { dg-options "-fno-short-enums -O2 -mthumb -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mtune=cortex-a9 -fno-section-anchors -Wno-return-type" } */
 
similarity index 97%
rename from gcc/testsuite/gcc.target/arm/pr59985.C
rename to gcc/testsuite/g++.dg/other/pr59985.C
index ecf72b1..7c9bfab 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target arm*-*-* } } */
 /* { dg-skip-if "incompatible options" { arm_thumb1 } } */
 /* { dg-options "-g -fcompare-debug -O2 -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=hard" } */
 /* { dg-skip-if "need hardfp abi" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
similarity index 99%
rename from gcc/testsuite/gcc.target/aarch64/pr60675.C
rename to gcc/testsuite/g++.dg/other/pr60675.C
index aa88cdb..1100155 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target fpic } } */
 /* { dg-options "-std=c++11 -w -O2 -fPIC" } */
 namespace CLHEP {
       static const double meter = 1000.*10;
@@ -1,5 +1,5 @@
-/* { dg-do compile } */
-/* { dg-options "-O2 -msve-vector-bits=256" } */
+/* { dg-do compile { target aarch64*-*-* } } */
+/* { dg-options "-O2 -march=armv8.2-a+sve -msve-vector-bits=256" } */
 
 #include <stdint.h>
 
@@ -1,5 +1,5 @@
-/* { dg-do compile } */
-/* { dg-options "-O2 -msve-vector-bits=256" } */
+/* { dg-do compile { target aarch64*-*-* } } */
+/* { dg-options "-O2 -march=armv8.2-a+sve -msve-vector-bits=256" } */
 
 #include <stdint.h>
 
@@ -1,5 +1,5 @@
-/* { dg-do compile } */
-/* { dg-options "-O2 -msve-vector-bits=256" } */
+/* { dg-do compile { target aarch64*-*-* } } */
+/* { dg-options "-O2 -march=armv8.2-a+sve -msve-vector-bits=256" } */
 
 #include <stdint.h>
 
@@ -1,5 +1,5 @@
-/* { dg-do compile } */
-/* { dg-options "-O2 -msve-vector-bits=256" } */
+/* { dg-do compile { target aarch64*-*-* } } */
+/* { dg-options "-O2 -march=armv8.2-a+sve -msve-vector-bits=256" } */
 
 #include <stdint.h>
 
similarity index 84%
rename from gcc/testsuite/gcc.target/aarch64/sve/tls_2.C
rename to gcc/testsuite/g++.dg/other/sve_tls_2.C
index c18a737..d159255 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-do compile } */
-/* { dg-options "-O2 -fPIC -msve-vector-bits=256" } */
+/* { dg-do compile { target aarch64*-*-* } } */
+/* { dg-options "-O2 -march=armv8.2-a+sve -fPIC -msve-vector-bits=256" } */
 
 #include <stdint.h>
 
diff --git a/gcc/testsuite/gcc.target/aarch64/simd/pr67896.C b/gcc/testsuite/gcc.target/aarch64/simd/pr67896.C
deleted file mode 100644 (file)
index 1f916e0..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-typedef __Poly8_t A;
-typedef __Poly16_t A; /* { dg-error "conflicting declaration" } */
-typedef __Poly64_t A; /* { dg-error "conflicting declaration" } */
-typedef __Poly128_t A; /* { dg-error "conflicting declaration" } */
-
-typedef __Poly8x8_t B;
-typedef __Poly16x8_t B; /* { dg-error "conflicting declaration" } */ 
diff --git a/gcc/testsuite/gcc.target/aarch64/simd/pr67896.c b/gcc/testsuite/gcc.target/aarch64/simd/pr67896.c
new file mode 100644 (file)
index 0000000..3e27bea
--- /dev/null
@@ -0,0 +1,7 @@
+typedef __Poly8_t A;
+typedef __Poly16_t A; /* { dg-error "conflicting types" } */
+typedef __Poly64_t A; /* { dg-error "conflicting types" } */
+typedef __Poly128_t A; /* { dg-error "conflicting types" } */
+
+typedef __Poly8x8_t B;
+typedef __Poly16x8_t B; /* { dg-error "conflicting types" } */
index 6fd6b42..6620842 100644 (file)
@@ -1,17 +1,15 @@
 /* { dg-do assemble { target aarch64_asm_sve_ok } } */
 /* { dg-options "-O -msve-vector-bits=256 --save-temps" } */
 
-#include <stdint.h>
-
-typedef int8_t vnx16qi __attribute__((vector_size(32)));
-typedef int16_t vnx8hi __attribute__((vector_size(32)));
-typedef int32_t vnx4si __attribute__((vector_size(32)));
-typedef int64_t vnx2di __attribute__((vector_size(32)));
-
-typedef uint8_t v32qu __attribute__((vector_size(32)));
-typedef uint16_t v16hu __attribute__((vector_size(32)));
-typedef uint32_t v8su __attribute__((vector_size(32)));
-typedef uint64_t v4du __attribute__((vector_size(32)));
+typedef __INT8_TYPE__ vnx16qi __attribute__((vector_size(32)));
+typedef __INT16_TYPE__ vnx8hi __attribute__((vector_size(32)));
+typedef __INT32_TYPE__ vnx4si __attribute__((vector_size(32)));
+typedef __INT64_TYPE__ vnx2di __attribute__((vector_size(32)));
+
+typedef __UINT8_TYPE__ v32qu __attribute__((vector_size(32)));
+typedef __UINT16_TYPE__ v16hu __attribute__((vector_size(32)));
+typedef __UINT32_TYPE__ v8su __attribute__((vector_size(32)));
+typedef __UINT64_TYPE__ v4du __attribute__((vector_size(32)));
 
 #define DEF_VCOND_VAR(TYPE, COND, SUFFIX)                      \
 TYPE vcond_##TYPE##_##SUFFIX (TYPE x, TYPE y, TYPE a, TYPE b)  \
index 2df3371..72dab39 100644 (file)
@@ -2,7 +2,7 @@
 /* { dg-options "-O" } */
 /* { dg-options "-O -msve-vector-bits=256" { target aarch64_sve256_hw } } */
 
-#include "vcond_1.C"
+#include "vcond_1.c"
 
 #define NUM_ELEMS(X) (sizeof (X) / sizeof (X[0]))