Remove explicit dg-do runs from gcc.dg/vect (PR 83889)
authorRichard Sandiford <richard.sandiford@linaro.org>
Wed, 24 Jan 2018 16:22:40 +0000 (16:22 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 24 Jan 2018 16:22:40 +0000 (16:22 +0000)
The failures in this PR were from forcing { dg-do run } even when
vect.exp chooses options that are incompatible with the runtime.
The default vect.exp behaviour is to execute when possible, so there's
no need for a dg-do at all.

The patch removes other unconditional { dg-do run }s too.  Many of them
were already failing in the same way.

Also, the dg-do run condition in vect-reduc-or* seems unnecessary:
the test should run correctly whatever happens, and the scan tests
are already guarded properly.

2018-01-24  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/testsuite/
PR testsuite/83889
* gcc.dg/vect/pr79920.c: Remove explicit dg-do run.
* gcc.dg/vect/pr80631-1.c: Likewise.
* gcc.dg/vect/pr80631-2.c: Likewise.
* gcc.dg/vect/pr81410.c: Likewise.
* gcc.dg/vect/pr81633.c: Likewise.
* gcc.dg/vect/pr81815.c: Likewise.
* gcc.dg/vect/pr82108.c: Likewise.
* gcc.dg/vect/pr83857.c: Likewise.
* gcc.dg/vect/vect-alias-check-8.c: Likewise.
* gcc.dg/vect/vect-alias-check-9.c: Likewise.
* gcc.dg/vect/vect-alias-check-10.c: Likewise.
* gcc.dg/vect/vect-alias-check-11.c: Likewise.
* gcc.dg/vect/vect-alias-check-12.c: Likewise.
* gcc.dg/vect/vect-reduc-11.c: Likewise.
* gcc.dg/vect/vect-tail-nomask-1.c: Likewise.
* gcc.dg/vect/vect-reduc-in-order-1.c: Remove dg-do run and use
dg-xfail-run-if instead.
* gcc.dg/vect/vect-reduc-in-order-2.c: Likewise.
* gcc.dg/vect/vect-reduc-in-order-3.c: Likewise.
* gcc.dg/vect/vect-reduc-in-order-4.c: Likewise.
* gcc.dg/vect/vect-reduc-or_1.c: Remove conditional dg-do run.
* gcc.dg/vect/vect-reduc-or_2.c: Likewise.

From-SVN: r257022

22 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr79920.c
gcc/testsuite/gcc.dg/vect/pr80631-1.c
gcc/testsuite/gcc.dg/vect/pr80631-2.c
gcc/testsuite/gcc.dg/vect/pr81410.c
gcc/testsuite/gcc.dg/vect/pr81633.c
gcc/testsuite/gcc.dg/vect/pr81815.c
gcc/testsuite/gcc.dg/vect/pr82108.c
gcc/testsuite/gcc.dg/vect/pr83857.c
gcc/testsuite/gcc.dg/vect/vect-alias-check-10.c
gcc/testsuite/gcc.dg/vect/vect-alias-check-11.c
gcc/testsuite/gcc.dg/vect/vect-alias-check-12.c
gcc/testsuite/gcc.dg/vect/vect-alias-check-8.c
gcc/testsuite/gcc.dg/vect/vect-alias-check-9.c
gcc/testsuite/gcc.dg/vect/vect-reduc-11.c
gcc/testsuite/gcc.dg/vect/vect-reduc-in-order-1.c
gcc/testsuite/gcc.dg/vect/vect-reduc-in-order-2.c
gcc/testsuite/gcc.dg/vect/vect-reduc-in-order-3.c
gcc/testsuite/gcc.dg/vect/vect-reduc-in-order-4.c
gcc/testsuite/gcc.dg/vect/vect-reduc-or_1.c
gcc/testsuite/gcc.dg/vect/vect-reduc-or_2.c
gcc/testsuite/gcc.dg/vect/vect-tail-nomask-1.c

index b5ecce013581f1ba563dc24ec97068fc79db2229..00592b7b3f3221c508ed1f8858374542a183e325 100644 (file)
@@ -1,3 +1,29 @@
+2018-01-24  Richard Sandiford  <richard.sandiford@linaro.org>
+
+       PR testsuite/83889
+       * gcc.dg/vect/pr79920.c: Remove explicit dg-do run.
+       * gcc.dg/vect/pr80631-1.c: Likewise.
+       * gcc.dg/vect/pr80631-2.c: Likewise.
+       * gcc.dg/vect/pr81410.c: Likewise.
+       * gcc.dg/vect/pr81633.c: Likewise.
+       * gcc.dg/vect/pr81815.c: Likewise.
+       * gcc.dg/vect/pr82108.c: Likewise.
+       * gcc.dg/vect/pr83857.c: Likewise.
+       * gcc.dg/vect/vect-alias-check-8.c: Likewise.
+       * gcc.dg/vect/vect-alias-check-9.c: Likewise.
+       * gcc.dg/vect/vect-alias-check-10.c: Likewise.
+       * gcc.dg/vect/vect-alias-check-11.c: Likewise.
+       * gcc.dg/vect/vect-alias-check-12.c: Likewise.
+       * gcc.dg/vect/vect-reduc-11.c: Likewise.
+       * gcc.dg/vect/vect-tail-nomask-1.c: Likewise.
+       * gcc.dg/vect/vect-reduc-in-order-1.c: Remove dg-do run and use
+       dg-xfail-run-if instead.
+       * gcc.dg/vect/vect-reduc-in-order-2.c: Likewise.
+       * gcc.dg/vect/vect-reduc-in-order-3.c: Likewise.
+       * gcc.dg/vect/vect-reduc-in-order-4.c: Likewise.
+       * gcc.dg/vect/vect-reduc-or_1.c: Remove conditional dg-do run.
+       * gcc.dg/vect/vect-reduc-or_2.c: Likewise.
+
 2018-01-24  Richard Sandiford  <richard.sandiford@linaro.org>
 
        PR tree-optimization/83979
index 51992c4208263d0a34c7456da5c6f42529aae94b..276a2806f0c4da3f7870c37010d8f1b0c99fe721 100644 (file)
@@ -1,4 +1,3 @@
-/* { dg-do run } */
 /* { dg-additional-options "-O3 -fno-fast-math" } */
 
 #include "tree-vect.h"
index 92bf35a0a3e9fc6dc7acdd6a669dbf4cf06f12a1..f2405198a10b2deef85e8d21cecc695f735142e3 100644 (file)
@@ -1,5 +1,4 @@
 /* PR tree-optimization/80631 */
-/* { dg-do run } */
 
 #include "tree-vect.h"
 
index 777738ad763cf4e3a5a6dee1ab240e61d96d4ca1..6bf239adac59d0952d07fa68ab560a0ceddb6e05 100644 (file)
@@ -1,5 +1,4 @@
 /* PR tree-optimization/80631 */
-/* { dg-do run } */
 
 #include "tree-vect.h"
 
index 8d1bd6c8efda1032bbf9839ce70fec3f385426f4..9c91c08d33c729d8ff26cae72f4651081850b550 100644 (file)
@@ -1,4 +1,3 @@
-/* { dg-do run } */
 /* { dg-require-effective-target vect_long_long } */
 
 #include "tree-vect.h"
index 1ae15504e8185a75e16d77db600c5db92c15110f..9689ab3959cd9df8234b89ec307b7cd5d6f9d795 100644 (file)
@@ -1,5 +1,3 @@
-/* { dg-do run } */
-
 static double identity[4][4] = {{1, 0, 0, 0},
                                 {0, 1, 0, 0},
                                 {0, 0, 1, 0},
index 1eb7c59b70e1a13cf217899d04c55fd60949872f..79f345a641a18d257843a20410793f421187bc15 100644 (file)
@@ -1,5 +1,3 @@
-/* { dg-do run } */
-
 int __attribute__ ((noinline, noclone))
 f (int *x, int n)
 {
index 5b8faf1aefbd771ae83698bfb50a0f9308352a98..074c416b7d9db026914d6bbbedab505ff7ef7d0e 100644 (file)
@@ -1,4 +1,3 @@
-/* { dg-do run } */
 /* { dg-require-effective-target vect_float } */
 
 #include "tree-vect.h"
index 92e648b857be1144584ade18baa82e4c196171fe..f90f5d43a8d75bd953245990bd1c28f6382e5873 100644 (file)
@@ -1,4 +1,3 @@
-/* { dg-do run } */
 /* { dg-additional-options "-ffast-math" } */
 
 #define N 100
index d4eea873ccb78d740ecbd6510f10c0d7deff7a17..0e6285e4a23fe36f48227b1e838fc85144ee2509 100644 (file)
@@ -1,5 +1,3 @@
-/* { dg-do run } */
-
 #define N 87
 #define M 6
 
index 601e17fd1dcbc1a6f929c727e008e0271ef68865..a0d5abc3aa4c9ecf09b0a31ec3f54d773f7b8f13 100644 (file)
@@ -1,5 +1,3 @@
-/* { dg-do run } */
-
 #define N 87
 #define M 6
 
index a44c9bb52587747a9457a4a1b2c61c089ce60d4f..788cdfc3cdcc871944b775ee02eef0df1ae313d2 100644 (file)
@@ -1,5 +1,3 @@
-/* { dg-do run } */
-
 #define N 87
 #define M 7
 
index 5aeaf2173dc6681a364332354404e321d5e51d9e..0569ca487b56495045132f3ff0eb998059ef3209 100644 (file)
@@ -1,5 +1,3 @@
-/* { dg-do run } */
-
 #define N 200
 #define DIST 32
 
index 9bc38af3692a9e9d7c02c9693fa0718507366fc1..5685bfee576efd7e1665ba6469f155f383cea863 100644 (file)
@@ -1,5 +1,3 @@
-/* { dg-do run } */
-
 #define N 200
 #define M 4
 
index 29408edcfceb3dded22325e19bb6d5cf556114fc..5906f23690d08404279b4e7fb4197b7685a4d592 100644 (file)
@@ -1,4 +1,3 @@
-/* { dg-do run } */
 /* { dg-require-effective-target vect_int } */
 
 #include "tree-vect.h"
index cc73d524d5441ef97033e98f1b0b6718f7198d9c..4c17f2c1978ee305e53697e988a8fe9073be1c82 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run { xfail { { i?86-*-* x86_64-*-* } && ia32 } } } */
+/* { dg-xfail-run-if "" { { i?86-*-* x86_64-*-* } && ia32 } } */
 /* { dg-require-effective-target vect_double } */
 /* { dg-add-options ieee } */
 /* { dg-additional-options "-fno-fast-math" } */
index dea6cdd00480894a7faf655cd8f59ee46c7919bb..3b4c68aa8d13dbb40a30746517a12dc7428e2b38 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run { xfail { { i?86-*-* x86_64-*-* } && ia32 } } } */
+/* { dg-xfail-run-if "" { { i?86-*-* x86_64-*-* } && ia32 } } */
 /* { dg-require-effective-target vect_double } */
 /* { dg-add-options ieee } */
 /* { dg-additional-options "-fno-fast-math" } */
index 037213ee31c689618fba08fa6c508261dacf2f0f..3fd19f90d74c1f6152edcc7bc6b618ddfd1c256f 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run { xfail { { i?86-*-* x86_64-*-* } && ia32 } } } */
+/* { dg-xfail-run-if "" { { i?86-*-* x86_64-*-* } && ia32 } } */
 /* { dg-require-effective-target vect_double } */
 /* { dg-add-options ieee } */
 /* { dg-additional-options "-fno-fast-math" } */
index 46d0f3a04648d3493521e81da83e8e63051d82de..1cc046e4af41635c9f18eb034148377216201bfa 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run { xfail { { i?86-*-* x86_64-*-* } && ia32 } } } */
+/* { dg-xfail-run-if "" { { i?86-*-* x86_64-*-* } && ia32 } } */
 /* { dg-require-effective-target vect_double } */
 /* { dg-add-options ieee } */
 /* { dg-additional-options "-fno-fast-math" } */
index cff3f16107f2355fb4e38b3b66596253545ec796..acb0e30383d46f6453b8b6deb151f3d161699f1e 100644 (file)
@@ -1,5 +1,3 @@
-/* { dg-do run { target { whole_vector_shift || vect_logical_reduc } } } */
-
 /* Write a reduction loop to be reduced using vector shifts.  */
 
 #include "tree-vect.h"
index cd1af6dc9ae84742c565b8454d375aa9bf75f83f..d8751185155049e5f8821aff2a963581bbdcefb1 100644 (file)
@@ -1,5 +1,3 @@
-/* { dg-do run { target { whole_vector_shift || vect_logical_reduc } } } */
-
 /* Write a reduction loop to be reduced using vector shifts and folded.  */
 
 #include "tree-vect.h"
index 2c3a3c95eb0caab8a277be356667eeb0fd1edbc2..b912a3431f7069a84bb50954708bc26aae7928ca 100644 (file)
@@ -1,4 +1,3 @@
-/* { dg-do run } */
 /* { dg-require-weak "" } */
 /* { dg-skip-if "No undefined weak" { hppa*-*-hpux* && { ! lp64 } } } */
 /* { dg-skip-if "No undefined weak" { nvptx-*-* } } */