testsuite: Remove unwanted 'dg-do run' from gcc.dg/vect tests

Tests under gcc.dg/vect use check_vect_support_and_set_flags to set
compilation flags as appropriate for the target, but they also set
dg-do-what-default to 'run' or 'compile', depending on the actual
target hardware (or simulator) capabilities.

For instance on arm, we use options to enable Neon, but set
dg-do-what-default to 'run' only if we cam actually execute Neon
instructions.

Therefore, we would always try to link and execute tests containing
'dg-do run', although dg-do-what-default says otherwise, leading to
uninteresting failures.

Therefore, this patch removes all such unconditionnal 'dg-do run',
thus avoid link errors for instance if GCC has been configured with
multilibs disabled and some --with-{float|cpu|hard} option
incompatible with what check_vect_support_and_set_flags selects.

For exmaple, GCC configured with:
--disable-multilib --with-mode=thumb --with-cpu=cortex-m7 --with-float=hard
and check_vect_support_and_set_flags uses
-mfpu=neon -mfloat-abi=softfp -march=armv7-a
(thus incompatible float-abi options)

Tested on native aarch64-linux-gnu (no change) and several arm-eabi
cases where the FAIL/UNRESOLVED disappear (and we keep only the
'compilation' tests).

2023-09-04  Christophe Lyon  <christophe.lyon@linaro.org>

	gcc/testsuite/
	* gcc.dg/vect/bb-slp-44.c: Remove 'dg-do run'.
	* gcc.dg/vect/bb-slp-71.c: Likewise.
	* gcc.dg/vect/bb-slp-72.c: Likewise.
	* gcc.dg/vect/bb-slp-73.c: Likewise.
	* gcc.dg/vect/bb-slp-74.c: Likewise.
	* gcc.dg/vect/bb-slp-pr101207.c: Likewise.
	* gcc.dg/vect/bb-slp-pr101615-1.c: Likewise.
	* gcc.dg/vect/bb-slp-pr101615-2.c: Likewise.
	* gcc.dg/vect/bb-slp-pr101668.c: Likewise.
	* gcc.dg/vect/bb-slp-pr54400.c: Likewise.
	* gcc.dg/vect/bb-slp-pr98516-1.c: Likewise.
	* gcc.dg/vect/bb-slp-pr98516-2.c: Likewise.
	* gcc.dg/vect/bb-slp-pr98544.c: Likewise.
	* gcc.dg/vect/pr101445.c: Likewise.
	* gcc.dg/vect/pr105219.c: Likewise.
	* gcc.dg/vect/pr107160.c: Likewise.
	* gcc.dg/vect/pr107212-1.c: Likewise.
	* gcc.dg/vect/pr107212-2.c: Likewise.
	* gcc.dg/vect/pr109502.c: Likewise.
	* gcc.dg/vect/pr110381.c: Likewise.
	* gcc.dg/vect/pr110838.c: Likewise.
	* gcc.dg/vect/pr88497-1.c: Likewise.
	* gcc.dg/vect/pr88497-7.c: Likewise.
	* gcc.dg/vect/pr96783-1.c: Likewise.
	* gcc.dg/vect/pr96783-2.c: Likewise.
	* gcc.dg/vect/pr97558-2.c: Likewise.
	* gcc.dg/vect/pr99253.c: Likewise.
	* gcc.dg/vect/slp-mask-store-1.c: Likewise.
	* gcc.dg/vect/vect-bic-bitmask-10.c: Likewise.
	* gcc.dg/vect/vect-bic-bitmask-11.c: Likewise.
	* gcc.dg/vect/vect-bic-bitmask-2.c: Likewise.
	* gcc.dg/vect/vect-bic-bitmask-3.c: Likewise.
	* gcc.dg/vect/vect-bic-bitmask-4.c: Likewise.
	* gcc.dg/vect/vect-bic-bitmask-5.c: Likewise.
	* gcc.dg/vect/vect-bic-bitmask-6.c: Likewise.
	* gcc.dg/vect/vect-bic-bitmask-8.c: Likewise.
	* gcc.dg/vect/vect-bic-bitmask-9.c: Likewise.
	* gcc.dg/vect/vect-cond-13.c: Likewise.
	* gcc.dg/vect/vect-recurr-1.c: Likewise.
	* gcc.dg/vect/vect-recurr-2.c: Likewise.
	* gcc.dg/vect/vect-recurr-3.c: Likewise.
	* gcc.dg/vect/vect-recurr-4.c: Likewise.
	* gcc.dg/vect/vect-recurr-5.c: Likewise.
	* gcc.dg/vect/vect-recurr-6.c: Likewise.
This commit is contained in:
Christophe Lyon 2023-09-04 12:11:44 +00:00
parent 084a7cf9fb
commit 99ec76eb8b
44 changed files with 0 additions and 60 deletions

View file

@ -1,5 +1,3 @@
/* { dg-do run } */
typedef struct {
unsigned long a;
unsigned long b;

View file

@ -1,5 +1,3 @@
/* { dg-do run } */
#include "tree-vect.h"
int a[4], b[4];

View file

@ -1,5 +1,3 @@
/* { dg-do run } */
#include "tree-vect.h"
double x[2], y[2], z[2], w[2];

View file

@ -1,5 +1,3 @@
/* { dg-do run } */
#include "tree-vect.h"
double x[2], y[2], z[2], w[2];

View file

@ -1,4 +1,3 @@
/* { dg-do run } */
/* { dg-require-effective-target vect_double } */
#include "tree-vect.h"

View file

@ -1,4 +1,3 @@
/* { dg-do run } */
/* { dg-additional-options "-ffast-math" } */
#include "tree-vect.h"

View file

@ -1,4 +1,3 @@
/* { dg-do run } */
/* { dg-additional-options "-w -Wno-psabi" } */
#include "tree-vect.h"

View file

@ -1,4 +1,3 @@
/* { dg-do run } */
/* { dg-additional-options "-O3 -w -Wno-psabi" } */
#include "tree-vect.h"

View file

@ -1,4 +1,3 @@
/* { dg-do run } */
/* { dg-additional-options "-w -Wno-psabi" } */
#include "tree-vect.h"

View file

@ -1,4 +1,3 @@
/* { dg-do run } */
/* { dg-require-effective-target vect_float} */
/* { dg-additional-options "-w -Wno-psabi -ffast-math" } */

View file

@ -1,5 +1,3 @@
/* { dg-do run } */
double a[4], b[2];
void __attribute__((noipa))

View file

@ -1,5 +1,3 @@
/* { dg-do run } */
float a[8], b[4];
void __attribute__((noipa))

View file

@ -1,5 +1,3 @@
/* { dg-do run } */
double a[2], b[2], c[2], d[2];
void __attribute__((noipa))

View file

@ -1,5 +1,3 @@
/* { dg-do run } */
#include "tree-vect.h"
int a[35] = { 1, 1, 3 };

View file

@ -1,4 +1,3 @@
/* { dg-do run } */
/* { dg-additional-options "-O3" } */
/* { dg-additional-options "-mtune=intel" { target x86_64-*-* i?86-*-* } } */
/* { dg-additional-options "-mtune=thunderx" { target aarch64*-*-* } } */

View file

@ -1,5 +1,3 @@
/* { dg-do run } */
#include <math.h>
#define N 128

View file

@ -1,5 +1,3 @@
/* { dg-do run } */
#include "tree-vect.h"
int main()

View file

@ -1,5 +1,3 @@
/* { dg-do run } */
#include "tree-vect.h"
int sum_1 = 0;

View file

@ -1,4 +1,3 @@
/* { dg-do run } */
/* { dg-additional-options "-O" } */
unsigned g;

View file

@ -1,4 +1,3 @@
/* { dg-do run } */
/* { dg-require-effective-target vect_float_strict } */
#include "tree-vect.h"

View file

@ -1,5 +1,3 @@
/* { dg-do run } */
#include "tree-vect.h"
short a[32], b[32];

View file

@ -1,4 +1,3 @@
/* { dg-do run } */
/* { dg-require-effective-target vect_double } */
/* { dg-require-effective-target vsx_hw { target { powerpc*-*-* } } } */
/* { dg-require-effective-target sse2_runtime { target { i?86-*-* x86_64-*-* } } } */

View file

@ -1,4 +1,3 @@
/* { dg-do run } */
/* { dg-require-effective-target avx512f_runtime } */
/* { dg-options "-O2 -mavx512f -ffast-math -fdump-tree-reassoc1" } */

View file

@ -1,5 +1,3 @@
/* { dg-do run } */
#include "tree-vect.h"
void __attribute__((noipa))

View file

@ -1,5 +1,3 @@
/* { dg-do run } */
#include "tree-vect.h"
long a[1024];

View file

@ -1,4 +1,3 @@
/* { dg-do run } */
/* { dg-additional-options "-O3 -fno-tree-forwprop -fno-tree-scev-cprop" } */
#include "tree-vect.h"

View file

@ -1,5 +1,3 @@
/* { dg-do run } */
#include "tree-vect.h"
int a = 0;

View file

@ -1,4 +1,3 @@
/* { dg-do run } */
/* { dg-additional-options "-mavx2" { target avx2 } } */
#include "tree-vect.h"

View file

@ -1,5 +1,4 @@
/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */
/* { dg-do run } */
/* { dg-additional-options "-O3 -fdump-tree-dce -w" } */
#include <stdint.h>

View file

@ -1,5 +1,4 @@
/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */
/* { dg-do run } */
/* { dg-additional-options "-O3 -fdump-tree-dce -w" } */
#include <stdint.h>

View file

@ -1,5 +1,4 @@
/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */
/* { dg-do run } */
/* { dg-additional-options "-O3 -fdump-tree-dce -w" } */
#include <stdint.h>

View file

@ -1,5 +1,4 @@
/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */
/* { dg-do run } */
/* { dg-additional-options "-O3 -fdump-tree-dce -w" } */
#include <stdint.h>

View file

@ -1,5 +1,4 @@
/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */
/* { dg-do run } */
/* { dg-additional-options "-O3 -fdump-tree-dce -w" } */
#include <stdint.h>

View file

@ -1,5 +1,4 @@
/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */
/* { dg-do run } */
/* { dg-additional-options "-O3 -fdump-tree-dce -w" } */
#include <stdint.h>

View file

@ -1,5 +1,4 @@
/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */
/* { dg-do run } */
/* { dg-additional-options "-O3 -fdump-tree-dce -w" } */
#include <stdint.h>

View file

@ -1,5 +1,4 @@
/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */
/* { dg-do run } */
/* { dg-additional-options "-O3 -fdump-tree-dce -w" } */
#include <stdint.h>

View file

@ -1,5 +1,4 @@
/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */
/* { dg-do run } */
/* { dg-additional-options "-O3 -fdump-tree-dce -w" } */
#include <stdint.h>

View file

@ -1,5 +1,3 @@
/* { dg-do run } */
#include "tree-vect.h"
int a[1024];

View file

@ -1,4 +1,3 @@
/* { dg-do run } */
/* { dg-require-effective-target vect_int } */
/* { dg-require-effective-target vect_perm } */

View file

@ -1,4 +1,3 @@
/* { dg-do run } */
/* { dg-require-effective-target vect_int } */
/* { dg-require-effective-target vect_perm } */

View file

@ -1,4 +1,3 @@
/* { dg-do run } */
/* { dg-require-effective-target vect_int } */
/* { dg-require-effective-target vect_perm } */

View file

@ -1,4 +1,3 @@
/* { dg-do run } */
/* { dg-require-effective-target vect_int } */
/* { dg-require-effective-target vect_perm } */

View file

@ -1,4 +1,3 @@
/* { dg-do run } */
/* { dg-require-effective-target vect_int } */
/* { dg-require-effective-target vect_perm } */

View file

@ -1,4 +1,3 @@
/* { dg-do run } */
/* { dg-require-effective-target vect_int } */
/* { dg-require-effective-target vect_perm } */