Commit 556d3a24 by Richard Sandiford Committed by Richard Sandiford

Remove explicit dg-do runs from gcc.dg/vect (PR 83889)

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
parent 885a33e1
2018-01-24 Richard Sandiford <richard.sandiford@linaro.org> 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 PR tree-optimization/83979
* g++.dg/pr83979.c: New test. * g++.dg/pr83979.c: New test.
......
/* { dg-do run } */
/* { dg-additional-options "-O3 -fno-fast-math" } */ /* { dg-additional-options "-O3 -fno-fast-math" } */
#include "tree-vect.h" #include "tree-vect.h"
......
/* PR tree-optimization/80631 */ /* PR tree-optimization/80631 */
/* { dg-do run } */
#include "tree-vect.h" #include "tree-vect.h"
......
/* PR tree-optimization/80631 */ /* PR tree-optimization/80631 */
/* { dg-do run } */
#include "tree-vect.h" #include "tree-vect.h"
......
/* { dg-do run } */
/* { dg-require-effective-target vect_long_long } */ /* { dg-require-effective-target vect_long_long } */
#include "tree-vect.h" #include "tree-vect.h"
......
/* { dg-do run } */
static double identity[4][4] = {{1, 0, 0, 0}, static double identity[4][4] = {{1, 0, 0, 0},
{0, 1, 0, 0}, {0, 1, 0, 0},
{0, 0, 1, 0}, {0, 0, 1, 0},
......
/* { dg-do run } */
int __attribute__ ((noinline, noclone)) int __attribute__ ((noinline, noclone))
f (int *x, int n) f (int *x, int n)
{ {
......
/* { dg-do run } */
/* { dg-require-effective-target vect_float } */ /* { dg-require-effective-target vect_float } */
#include "tree-vect.h" #include "tree-vect.h"
......
/* { dg-do run } */
/* { dg-additional-options "-ffast-math" } */ /* { dg-additional-options "-ffast-math" } */
#define N 100 #define N 100
......
/* { dg-do run } */
#define N 87 #define N 87
#define M 6 #define M 6
......
/* { dg-do run } */
#define N 87 #define N 87
#define M 6 #define M 6
......
/* { dg-do run } */
#define N 87 #define N 87
#define M 7 #define M 7
......
/* { dg-do run } */
#define N 200 #define N 200
#define DIST 32 #define DIST 32
......
/* { dg-do run } */
#define N 200 #define N 200
#define M 4 #define M 4
......
/* { dg-do run } */
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include "tree-vect.h" #include "tree-vect.h"
......
/* { 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-require-effective-target vect_double } */
/* { dg-add-options ieee } */ /* { dg-add-options ieee } */
/* { dg-additional-options "-fno-fast-math" } */ /* { dg-additional-options "-fno-fast-math" } */
......
/* { 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-require-effective-target vect_double } */
/* { dg-add-options ieee } */ /* { dg-add-options ieee } */
/* { dg-additional-options "-fno-fast-math" } */ /* { dg-additional-options "-fno-fast-math" } */
......
/* { 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-require-effective-target vect_double } */
/* { dg-add-options ieee } */ /* { dg-add-options ieee } */
/* { dg-additional-options "-fno-fast-math" } */ /* { dg-additional-options "-fno-fast-math" } */
......
/* { 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-require-effective-target vect_double } */
/* { dg-add-options ieee } */ /* { dg-add-options ieee } */
/* { dg-additional-options "-fno-fast-math" } */ /* { dg-additional-options "-fno-fast-math" } */
......
/* { dg-do run { target { whole_vector_shift || vect_logical_reduc } } } */
/* Write a reduction loop to be reduced using vector shifts. */ /* Write a reduction loop to be reduced using vector shifts. */
#include "tree-vect.h" #include "tree-vect.h"
......
/* { dg-do run { target { whole_vector_shift || vect_logical_reduc } } } */
/* Write a reduction loop to be reduced using vector shifts and folded. */ /* Write a reduction loop to be reduced using vector shifts and folded. */
#include "tree-vect.h" #include "tree-vect.h"
......
/* { dg-do run } */
/* { dg-require-weak "" } */ /* { dg-require-weak "" } */
/* { dg-skip-if "No undefined weak" { hppa*-*-hpux* && { ! lp64 } } } */ /* { dg-skip-if "No undefined weak" { hppa*-*-hpux* && { ! lp64 } } } */
/* { dg-skip-if "No undefined weak" { nvptx-*-* } } */ /* { dg-skip-if "No undefined weak" { nvptx-*-* } } */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment