From 04619cb86e06ee543dd4ab2b3b8e7fad772883bd Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Fri, 24 Jun 2016 17:46:21 +0200 Subject: [PATCH] vect-nb-iter-ub-1.c: Remove default vector testsuite compile flags. 2016-06-24 Uros Bizjak * gcc.dg/vect/vect-nb-iter-ub-1.c: Remove default vector testsuite compile flags. * gcc.dg/vect/vect-nb-iter-ub-2.c: Ditto. * gcc.dg/vect/vect-nb-iter-ub-3.c: Ditto. 2016-06-24 Uros Bizjak * g++dg/vect/pr36684.cc: Add dg-do compile. * gcc.dg/vect/O3-pr70130.c: Remove dg-do run. * gcc.dg/vect/pr70021.c: Ditto. * gcc.dg/vect/pr70138-1.c: Ditto. * gcc.dg/vect/pr70138-2.c: Ditto. * gcc.dg/vect/pr70354-1.c: Ditto. * gcc.dg/vect/pr70354-2.c: Ditto. * gcc.dg/vect/pr71259.c: Ditto. * gcc.dg/vect/pr71416-1.c: Ditto. * gcc.dg/vect/slp-43.c: Ditto. * gcc.dg/vect/slp-45.c: Ditto. * gcc.dg/vect/vect-nb-iter-ub-1.c: Ditto. * gcc.dg/vect/vect-nb-iter-ub-2.c: Ditto. * gcc.dg/vect/vect-nb-iter-ub-3.c: Ditto. * gfortran.dg/vect/pr69980.f90: Ditto. 2016-06-24 Uros Bizjak * gcc.dg/vect/O3-pr70130.c: Include tree-vect.h and call check_vect. * gcc.dg/vect/bb-slp-30.c: Ditto. * gcc.dg/vect/costmodel/i386/costmodel-vect-33.c: Ditto. * gcc.dg/vect/fast-math-bb-slp-call-3.c: Ditto. * gcc.dg/vect/pr45902.c: Ditto. * gcc.dg/vect/pr48172.c: Ditto. * gcc.dg/vect/pr48377.c: Ditto. * gcc.dg/vect/pr49038.c: Ditto. * gcc.dg/vect/pr49771.c: Ditto. * gcc.dg/vect/pr52091.c: Ditto. * gcc.dg/vect/pr53185-2.c: Ditto. * gcc.dg/vect/pr56826.c: Ditto. * gcc.dg/vect/pr60276.c: Ditto. * gcc.dg/vect/pr62021.c: Ditto. * gcc.dg/vect/pr63530.c: Ditto. * gcc.dg/vect/pr65518.c: Ditto. * gcc.dg/vect/pr65947-1.c: Ditto. * gcc.dg/vect/pr65947-10.c: Ditto. * gcc.dg/vect/pr65947-11.c: Ditto. * gcc.dg/vect/pr65947-12.c: Ditto. * gcc.dg/vect/pr65947-13.c: Ditto. * gcc.dg/vect/pr65947-2.c: Ditto. * gcc.dg/vect/pr65947-3.c: Ditto. * gcc.dg/vect/pr65947-4.c: Ditto. * gcc.dg/vect/pr65947-5.c: Ditto. * gcc.dg/vect/pr65947-6.c: Ditto. * gcc.dg/vect/pr65947-7.c: Ditto. * gcc.dg/vect/pr65947-8.c: Ditto. * gcc.dg/vect/pr65947-9.c: Ditto. * gcc.dg/vect/pr71416-1.c: Ditto. * gcc.dg/vect/pr71439.c: Ditto. * gcc.dg/vect/slp-widen-mult-half.c: Ditto. * gcc.dg/vect/vect-bswap16.c: Ditto. * gcc.dg/vect/vect-bswap32.c: Ditto. * gcc.dg/vect/vect-bswap64.c: Ditto. * gcc.dg/vect/vect-live-1.c: Ditto. * gcc.dg/vect/vect-live-2.c: Ditto. * gcc.dg/vect/vect-live-3.c: Ditto. * gcc.dg/vect/vect-live-4.c: Ditto. * gcc.dg/vect/vect-live-5.c: Ditto. * gcc.dg/vect/vect-live-slp-1.c: Ditto. * gcc.dg/vect/vect-live-slp-2.c: Ditto. * gcc.dg/vect/vect-live-slp-3.c: Ditto. * gcc.dg/vect/vect-nb-iter-ub-1.c: Ditto. * gcc.dg/vect/vect-nb-iter-ub-2.c: Ditto. * gcc.dg/vect/vect-nb-iter-ub-3.c: Ditto. * gcc.dg/vect/vect-neg-store-1.c: Ditto. * gcc.dg/vect/vect-neg-store-2.c: Ditto. * gcc.dg/vect/vect-outer-pr69720.c: Ditto. * gcc.dg/vect/vect-reduc-mul_1.c: Ditto. * gcc.dg/vect/vect-reduc-mul_2.c: Ditto. * gcc.dg/vect/vect-reduc-or_1.c: Ditto. * gcc.dg/vect/vect-reduc-or_2.c: Ditto. * gcc.dg/vect/vect-widen-mult-const-s16.c: Ditto. * gcc.dg/vect/vect-widen-mult-const-u16.c: Ditto. * gcc.dg/vect/vect-widen-mult-half-u8.c: Ditto. * gcc.dg/vect/vect-widen-mult-half.c: Ditto. From-SVN: r237761 --- gcc/testsuite/ChangeLog | 85 +++++++++++++++++++ gcc/testsuite/g++.dg/vect/pr36648.cc | 3 +- gcc/testsuite/gcc.dg/vect/O3-pr70130.c | 5 +- gcc/testsuite/gcc.dg/vect/bb-slp-30.c | 9 +- .../vect/costmodel/i386/costmodel-vect-33.c | 2 + .../gcc.dg/vect/fast-math-bb-slp-call-3.c | 3 + gcc/testsuite/gcc.dg/vect/pr45902.c | 2 + gcc/testsuite/gcc.dg/vect/pr48172.c | 4 + gcc/testsuite/gcc.dg/vect/pr48377.c | 3 + gcc/testsuite/gcc.dg/vect/pr49038.c | 3 + gcc/testsuite/gcc.dg/vect/pr49771.c | 5 +- gcc/testsuite/gcc.dg/vect/pr52091.c | 3 + gcc/testsuite/gcc.dg/vect/pr53185-2.c | 3 + gcc/testsuite/gcc.dg/vect/pr56826.c | 3 + gcc/testsuite/gcc.dg/vect/pr60276.c | 3 + gcc/testsuite/gcc.dg/vect/pr62021.c | 3 + gcc/testsuite/gcc.dg/vect/pr65518.c | 3 + gcc/testsuite/gcc.dg/vect/pr65947-1.c | 4 + gcc/testsuite/gcc.dg/vect/pr65947-10.c | 4 + gcc/testsuite/gcc.dg/vect/pr65947-11.c | 4 + gcc/testsuite/gcc.dg/vect/pr65947-12.c | 4 + gcc/testsuite/gcc.dg/vect/pr65947-13.c | 4 + gcc/testsuite/gcc.dg/vect/pr65947-2.c | 4 + gcc/testsuite/gcc.dg/vect/pr65947-3.c | 4 + gcc/testsuite/gcc.dg/vect/pr65947-4.c | 4 + gcc/testsuite/gcc.dg/vect/pr65947-5.c | 4 + gcc/testsuite/gcc.dg/vect/pr65947-6.c | 4 + gcc/testsuite/gcc.dg/vect/pr65947-7.c | 4 + gcc/testsuite/gcc.dg/vect/pr65947-8.c | 4 + gcc/testsuite/gcc.dg/vect/pr65947-9.c | 4 + gcc/testsuite/gcc.dg/vect/pr70021.c | 1 - gcc/testsuite/gcc.dg/vect/pr70138-1.c | 2 - gcc/testsuite/gcc.dg/vect/pr70138-2.c | 2 - gcc/testsuite/gcc.dg/vect/pr70354-1.c | 1 - gcc/testsuite/gcc.dg/vect/pr70354-2.c | 1 - gcc/testsuite/gcc.dg/vect/pr71259.c | 1 - gcc/testsuite/gcc.dg/vect/pr71416-1.c | 3 +- gcc/testsuite/gcc.dg/vect/pr71439.c | 1 + gcc/testsuite/gcc.dg/vect/slp-43.c | 1 - gcc/testsuite/gcc.dg/vect/slp-45.c | 1 - .../gcc.dg/vect/slp-widen-mult-half.c | 2 + gcc/testsuite/gcc.dg/vect/vect-bswap16.c | 2 + gcc/testsuite/gcc.dg/vect/vect-bswap32.c | 2 + gcc/testsuite/gcc.dg/vect/vect-bswap64.c | 2 + gcc/testsuite/gcc.dg/vect/vect-live-1.c | 2 + gcc/testsuite/gcc.dg/vect/vect-live-2.c | 2 + gcc/testsuite/gcc.dg/vect/vect-live-3.c | 2 + gcc/testsuite/gcc.dg/vect/vect-live-4.c | 2 + gcc/testsuite/gcc.dg/vect/vect-live-5.c | 2 + gcc/testsuite/gcc.dg/vect/vect-live-slp-1.c | 2 + gcc/testsuite/gcc.dg/vect/vect-live-slp-2.c | 2 + gcc/testsuite/gcc.dg/vect/vect-live-slp-3.c | 2 + gcc/testsuite/gcc.dg/vect/vect-nb-iter-ub-1.c | 7 +- gcc/testsuite/gcc.dg/vect/vect-nb-iter-ub-2.c | 7 +- gcc/testsuite/gcc.dg/vect/vect-nb-iter-ub-3.c | 7 +- gcc/testsuite/gcc.dg/vect/vect-neg-store-1.c | 5 ++ gcc/testsuite/gcc.dg/vect/vect-neg-store-2.c | 5 ++ .../gcc.dg/vect/vect-outer-pr69720.c | 3 + gcc/testsuite/gcc.dg/vect/vect-reduc-mul_1.c | 4 + gcc/testsuite/gcc.dg/vect/vect-reduc-mul_2.c | 4 + gcc/testsuite/gcc.dg/vect/vect-reduc-or_1.c | 4 + gcc/testsuite/gcc.dg/vect/vect-reduc-or_2.c | 4 + .../gcc.dg/vect/vect-widen-mult-const-s16.c | 2 + .../gcc.dg/vect/vect-widen-mult-const-u16.c | 2 + .../gcc.dg/vect/vect-widen-mult-half-u8.c | 2 + .../gcc.dg/vect/vect-widen-mult-half.c | 2 + gcc/testsuite/gfortran.dg/vect/pr69980.f90 | 1 - 67 files changed, 266 insertions(+), 25 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3f9fb6355a0..489388bfdb4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,88 @@ +2016-06-24 Uros Bizjak + + * gcc.dg/vect/vect-nb-iter-ub-1.c: Remove default vector + testsuite compile flags. + * gcc.dg/vect/vect-nb-iter-ub-2.c: Ditto. + * gcc.dg/vect/vect-nb-iter-ub-3.c: Ditto. + +2016-06-24 Uros Bizjak + + * g++dg/vect/pr36684.cc: Add dg-do compile. + * gcc.dg/vect/O3-pr70130.c: Remove dg-do run. + * gcc.dg/vect/pr70021.c: Ditto. + * gcc.dg/vect/pr70138-1.c: Ditto. + * gcc.dg/vect/pr70138-2.c: Ditto. + * gcc.dg/vect/pr70354-1.c: Ditto. + * gcc.dg/vect/pr70354-2.c: Ditto. + * gcc.dg/vect/pr71259.c: Ditto. + * gcc.dg/vect/pr71416-1.c: Ditto. + * gcc.dg/vect/slp-43.c: Ditto. + * gcc.dg/vect/slp-45.c: Ditto. + * gcc.dg/vect/vect-nb-iter-ub-1.c: Ditto. + * gcc.dg/vect/vect-nb-iter-ub-2.c: Ditto. + * gcc.dg/vect/vect-nb-iter-ub-3.c: Ditto. + * gfortran.dg/vect/pr69980.f90: Ditto. + +2016-06-24 Uros Bizjak + + * gcc.dg/vect/O3-pr70130.c: Include tree-vect.h and call check_vect. + * gcc.dg/vect/bb-slp-30.c: Ditto. + * gcc.dg/vect/costmodel/i386/costmodel-vect-33.c: Ditto. + * gcc.dg/vect/fast-math-bb-slp-call-3.c: Ditto. + * gcc.dg/vect/pr45902.c: Ditto. + * gcc.dg/vect/pr48172.c: Ditto. + * gcc.dg/vect/pr48377.c: Ditto. + * gcc.dg/vect/pr49038.c: Ditto. + * gcc.dg/vect/pr49771.c: Ditto. + * gcc.dg/vect/pr52091.c: Ditto. + * gcc.dg/vect/pr53185-2.c: Ditto. + * gcc.dg/vect/pr56826.c: Ditto. + * gcc.dg/vect/pr60276.c: Ditto. + * gcc.dg/vect/pr62021.c: Ditto. + * gcc.dg/vect/pr63530.c: Ditto. + * gcc.dg/vect/pr65518.c: Ditto. + * gcc.dg/vect/pr65947-1.c: Ditto. + * gcc.dg/vect/pr65947-10.c: Ditto. + * gcc.dg/vect/pr65947-11.c: Ditto. + * gcc.dg/vect/pr65947-12.c: Ditto. + * gcc.dg/vect/pr65947-13.c: Ditto. + * gcc.dg/vect/pr65947-2.c: Ditto. + * gcc.dg/vect/pr65947-3.c: Ditto. + * gcc.dg/vect/pr65947-4.c: Ditto. + * gcc.dg/vect/pr65947-5.c: Ditto. + * gcc.dg/vect/pr65947-6.c: Ditto. + * gcc.dg/vect/pr65947-7.c: Ditto. + * gcc.dg/vect/pr65947-8.c: Ditto. + * gcc.dg/vect/pr65947-9.c: Ditto. + * gcc.dg/vect/pr71416-1.c: Ditto. + * gcc.dg/vect/pr71439.c: Ditto. + * gcc.dg/vect/slp-widen-mult-half.c: Ditto. + * gcc.dg/vect/vect-bswap16.c: Ditto. + * gcc.dg/vect/vect-bswap32.c: Ditto. + * gcc.dg/vect/vect-bswap64.c: Ditto. + * gcc.dg/vect/vect-live-1.c: Ditto. + * gcc.dg/vect/vect-live-2.c: Ditto. + * gcc.dg/vect/vect-live-3.c: Ditto. + * gcc.dg/vect/vect-live-4.c: Ditto. + * gcc.dg/vect/vect-live-5.c: Ditto. + * gcc.dg/vect/vect-live-slp-1.c: Ditto. + * gcc.dg/vect/vect-live-slp-2.c: Ditto. + * gcc.dg/vect/vect-live-slp-3.c: Ditto. + * gcc.dg/vect/vect-nb-iter-ub-1.c: Ditto. + * gcc.dg/vect/vect-nb-iter-ub-2.c: Ditto. + * gcc.dg/vect/vect-nb-iter-ub-3.c: Ditto. + * gcc.dg/vect/vect-neg-store-1.c: Ditto. + * gcc.dg/vect/vect-neg-store-2.c: Ditto. + * gcc.dg/vect/vect-outer-pr69720.c: Ditto. + * gcc.dg/vect/vect-reduc-mul_1.c: Ditto. + * gcc.dg/vect/vect-reduc-mul_2.c: Ditto. + * gcc.dg/vect/vect-reduc-or_1.c: Ditto. + * gcc.dg/vect/vect-reduc-or_2.c: Ditto. + * gcc.dg/vect/vect-widen-mult-const-s16.c: Ditto. + * gcc.dg/vect/vect-widen-mult-const-u16.c: Ditto. + * gcc.dg/vect/vect-widen-mult-half-u8.c: Ditto. + * gcc.dg/vect/vect-widen-mult-half.c: Ditto. + 2016-06-24 Uros Bizjak * gcc.dg/torture/float128-cmp-invalid.c (main): Use __builtin_nanq. diff --git a/gcc/testsuite/g++.dg/vect/pr36648.cc b/gcc/testsuite/g++.dg/vect/pr36648.cc index 450ac75b607..198de0e5763 100644 --- a/gcc/testsuite/g++.dg/vect/pr36648.cc +++ b/gcc/testsuite/g++.dg/vect/pr36648.cc @@ -1,5 +1,6 @@ +/* { dg-do compile } */ /* { dg-require-effective-target vect_float } */ -// { dg-additional-options "-fdisable-tree-cunrolli" } +/* { dg-additional-options "-fdisable-tree-cunrolli" } */ struct vector { diff --git a/gcc/testsuite/gcc.dg/vect/O3-pr70130.c b/gcc/testsuite/gcc.dg/vect/O3-pr70130.c index e9938c21f41..18a295c83f0 100644 --- a/gcc/testsuite/gcc.dg/vect/O3-pr70130.c +++ b/gcc/testsuite/gcc.dg/vect/O3-pr70130.c @@ -1,7 +1,8 @@ -/* { dg-do run } */ /* { dg-require-effective-target vsx_hw { target powerpc*-*-* } } */ /* { dg-additional-options "-mcpu=power7" { target powerpc*-*-* } } */ +#include "tree-vect.h" + struct foo { short a[3][16][16]; @@ -84,6 +85,8 @@ main (void) { int i; + check_vect (); + for (i = 0; i < 8; i++) Loop_err (images + i, s, -1); diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-30.c b/gcc/testsuite/gcc.dg/vect/bb-slp-30.c index d80b1199998..224f9dec647 100644 --- a/gcc/testsuite/gcc.dg/vect/bb-slp-30.c +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-30.c @@ -1,5 +1,7 @@ /* { dg-require-effective-target vect_int } */ +#include "tree-vect.h" + int a[32]; void __attribute__((noinline)) @@ -41,6 +43,11 @@ test1(void) a[21] = 0; } -int main() { test1(); return a[21]; } +int main() +{ + check_vect (); + test1(); + return a[21]; +} /* { dg-final { scan-tree-dump-times "basic block vectorized" 1 "slp2" } } */ diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/i386/costmodel-vect-33.c b/gcc/testsuite/gcc.dg/vect/costmodel/i386/costmodel-vect-33.c index 33bf7f1a5a6..242427dc486 100644 --- a/gcc/testsuite/gcc.dg/vect/costmodel/i386/costmodel-vect-33.c +++ b/gcc/testsuite/gcc.dg/vect/costmodel/i386/costmodel-vect-33.c @@ -33,6 +33,8 @@ int main1 () int main (void) { + check_vect (); + return main1 (); } diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-3.c b/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-3.c index 2471bc8e742..fd2c8be695a 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-3.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-3.c @@ -1,3 +1,5 @@ +#include "tree-vect.h" + extern double sqrt (double); extern double fabs (double); extern double ceil (double); @@ -63,6 +65,7 @@ int main() { ufraw_data uf_data; ufraw_data *uf = &uf_data; + check_vect (); uf->initialWidth = 4; uf->initialHeight = 5; ufraw_test(uf); diff --git a/gcc/testsuite/gcc.dg/vect/pr45902.c b/gcc/testsuite/gcc.dg/vect/pr45902.c index 20c4351e9a3..ac8e1ca6d38 100644 --- a/gcc/testsuite/gcc.dg/vect/pr45902.c +++ b/gcc/testsuite/gcc.dg/vect/pr45902.c @@ -27,6 +27,8 @@ main () { int i; + check_vect (); + for (i = 0; i < N; i++) a[i] = i; diff --git a/gcc/testsuite/gcc.dg/vect/pr48172.c b/gcc/testsuite/gcc.dg/vect/pr48172.c index cce05328b69..a7fc05cae91 100644 --- a/gcc/testsuite/gcc.dg/vect/pr48172.c +++ b/gcc/testsuite/gcc.dg/vect/pr48172.c @@ -1,3 +1,5 @@ +#include "tree-vect.h" + extern void *memset(void *s, int c, __SIZE_TYPE__ n); extern void abort (void); @@ -8,6 +10,8 @@ int main() { unsigned int array[ASIZE]; int i; + check_vect (); + memset(array, 0, sizeof(array)); /* initialize first half of the array */ diff --git a/gcc/testsuite/gcc.dg/vect/pr48377.c b/gcc/testsuite/gcc.dg/vect/pr48377.c index 33c73e36b5d..a526de97690 100644 --- a/gcc/testsuite/gcc.dg/vect/pr48377.c +++ b/gcc/testsuite/gcc.dg/vect/pr48377.c @@ -1,6 +1,8 @@ /* PR tree-optimization/48377 */ /* { dg-require-effective-target non_strict_align } */ +#include "tree-vect.h" + typedef unsigned int U __attribute__((__aligned__ (1), __may_alias__)); __attribute__((noinline, noclone)) unsigned int @@ -19,6 +21,7 @@ char buf[64] __attribute__((aligned (32))); int main (void) { + check_vect (); return foo (buf + 1, 26) != 26; } diff --git a/gcc/testsuite/gcc.dg/vect/pr49038.c b/gcc/testsuite/gcc.dg/vect/pr49038.c index 8a254ec1262..b9e812600b9 100644 --- a/gcc/testsuite/gcc.dg/vect/pr49038.c +++ b/gcc/testsuite/gcc.dg/vect/pr49038.c @@ -2,6 +2,7 @@ #include #include +#include "tree-vect.h" #define COUNT 320 #define MMAP_SIZE 0x10000 @@ -27,6 +28,8 @@ main (void) void *x; size_t b_offset; + check_vect (); + x = mmap ((void *) ADDRESS, MMAP_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); if (x == MAP_FAILED) diff --git a/gcc/testsuite/gcc.dg/vect/pr49771.c b/gcc/testsuite/gcc.dg/vect/pr49771.c index 2dfe2ff3568..1d8b9b34dd7 100644 --- a/gcc/testsuite/gcc.dg/vect/pr49771.c +++ b/gcc/testsuite/gcc.dg/vect/pr49771.c @@ -1,6 +1,7 @@ extern void abort (void); #include +#include "tree-vect.h" static int a[1000]; @@ -18,7 +19,9 @@ foo (void) int main (void) { - int res = foo (); + int res; + check_vect (); + res = foo (); if (res != 1999) abort (); return 0; diff --git a/gcc/testsuite/gcc.dg/vect/pr52091.c b/gcc/testsuite/gcc.dg/vect/pr52091.c index c43840870b1..33bc7aa8dd2 100644 --- a/gcc/testsuite/gcc.dg/vect/pr52091.c +++ b/gcc/testsuite/gcc.dg/vect/pr52091.c @@ -2,6 +2,8 @@ /* PR tree-optimization/52091 */ +#include "tree-vect.h" + int b, c, d, f; unsigned h; extern void abort (void); @@ -9,6 +11,7 @@ extern void abort (void); int main () { + check_vect (); d = -1; h = 65; asm volatile ("" : : : "memory"); diff --git a/gcc/testsuite/gcc.dg/vect/pr53185-2.c b/gcc/testsuite/gcc.dg/vect/pr53185-2.c index 88438d8c6e5..6057c69a24a 100644 --- a/gcc/testsuite/gcc.dg/vect/pr53185-2.c +++ b/gcc/testsuite/gcc.dg/vect/pr53185-2.c @@ -1,3 +1,5 @@ +#include "tree-vect.h" + void __attribute__((noinline,noclone)) fn1 (int * __restrict f, int * __restrict d, unsigned short a, int c) { @@ -12,6 +14,7 @@ int main () { int a[32], b[3 * 32]; int i, off; + check_vect (); for (i = 0; i < 3 * 32; ++i) b[i] = i; for (off = 0; off < 8; ++off) diff --git a/gcc/testsuite/gcc.dg/vect/pr56826.c b/gcc/testsuite/gcc.dg/vect/pr56826.c index 42174d9a5a8..e8223808184 100644 --- a/gcc/testsuite/gcc.dg/vect/pr56826.c +++ b/gcc/testsuite/gcc.dg/vect/pr56826.c @@ -1,3 +1,5 @@ +#include "tree-vect.h" + extern void abort (void); typedef struct { @@ -23,6 +25,7 @@ bar (int *A, t1 *B, int n) int main() { int i; + check_vect (); for (i=0; i<100; i++) { B[i].num = i; diff --git a/gcc/testsuite/gcc.dg/vect/pr60276.c b/gcc/testsuite/gcc.dg/vect/pr60276.c index 123f890ec35..9fc18ac7428 100644 --- a/gcc/testsuite/gcc.dg/vect/pr60276.c +++ b/gcc/testsuite/gcc.dg/vect/pr60276.c @@ -1,3 +1,4 @@ +#include "tree-vect.h" extern void abort (void); @@ -38,6 +39,8 @@ int main(void) int out2[49] = {0}; int s; + check_vect (); + foo (out + 2, lp + 1, 48); foo_novec (out2 + 2, lp + 1, 48); diff --git a/gcc/testsuite/gcc.dg/vect/pr62021.c b/gcc/testsuite/gcc.dg/vect/pr62021.c index 1ccf2ba72db..40c64429d63 100644 --- a/gcc/testsuite/gcc.dg/vect/pr62021.c +++ b/gcc/testsuite/gcc.dg/vect/pr62021.c @@ -2,6 +2,8 @@ /* { dg-additional-options "-fopenmp-simd" } */ /* { dg-additional-options "-mavx" { target avx_runtime } } */ +#include "tree-vect.h" + #pragma omp declare simd linear(y) __attribute__((noinline)) int * foo (int *x, int y) @@ -16,6 +18,7 @@ int main () { int i; + check_vect (); for (i = 0; i < 1024; i++) b[i] = &a[1023 - i]; #pragma omp simd diff --git a/gcc/testsuite/gcc.dg/vect/pr65518.c b/gcc/testsuite/gcc.dg/vect/pr65518.c index 3c0e6ba6d56..b194c9899ce 100644 --- a/gcc/testsuite/gcc.dg/vect/pr65518.c +++ b/gcc/testsuite/gcc.dg/vect/pr65518.c @@ -1,3 +1,5 @@ +#include "tree-vect.h" + extern void abort (void); typedef struct giga @@ -20,6 +22,7 @@ int main () struct giga g[8]; unsigned int n = 1; int i, j; + check_vect (); for (i = 0; i < 8; ++i) for (j = 0; j < 16; ++j) { diff --git a/gcc/testsuite/gcc.dg/vect/pr65947-1.c b/gcc/testsuite/gcc.dg/vect/pr65947-1.c index 1e7a05dc8cc..93ca4dbcc21 100644 --- a/gcc/testsuite/gcc.dg/vect/pr65947-1.c +++ b/gcc/testsuite/gcc.dg/vect/pr65947-1.c @@ -1,5 +1,7 @@ /* { dg-require-effective-target vect_condition } */ +#include "tree-vect.h" + extern void abort (void) __attribute__ ((noreturn)); #define N 32 @@ -28,6 +30,8 @@ main (void) 31, 32 }; + check_vect (); + int ret = condition_reduction (a, 1); if (ret != 17) diff --git a/gcc/testsuite/gcc.dg/vect/pr65947-10.c b/gcc/testsuite/gcc.dg/vect/pr65947-10.c index b4c6659b77c..9bdfd6db518 100644 --- a/gcc/testsuite/gcc.dg/vect/pr65947-10.c +++ b/gcc/testsuite/gcc.dg/vect/pr65947-10.c @@ -1,5 +1,7 @@ /* { dg-require-effective-target vect_condition } */ +#include "tree-vect.h" + extern void abort (void) __attribute__ ((noreturn)); #define N 32 @@ -28,6 +30,8 @@ main (void) 31.111, 32.322 }; + check_vect (); + float ret = condition_reduction (a, 16.7); if (ret != (float)10.6) diff --git a/gcc/testsuite/gcc.dg/vect/pr65947-11.c b/gcc/testsuite/gcc.dg/vect/pr65947-11.c index 6deff001bd0..1c54979ede0 100644 --- a/gcc/testsuite/gcc.dg/vect/pr65947-11.c +++ b/gcc/testsuite/gcc.dg/vect/pr65947-11.c @@ -1,5 +1,7 @@ /* { dg-require-effective-target vect_condition } */ +#include "tree-vect.h" + extern void abort (void) __attribute__ ((noreturn)); #define N 37 @@ -37,6 +39,8 @@ main (void) 31, 32, 33, 34, 35, 36, 37 }; + check_vect (); + unsigned int ret = condition_reduction (a, 16, b); if (ret != 29) diff --git a/gcc/testsuite/gcc.dg/vect/pr65947-12.c b/gcc/testsuite/gcc.dg/vect/pr65947-12.c index fb5ffd48c7b..2f37aaf01ec 100644 --- a/gcc/testsuite/gcc.dg/vect/pr65947-12.c +++ b/gcc/testsuite/gcc.dg/vect/pr65947-12.c @@ -1,5 +1,7 @@ /* { dg-require-effective-target vect_condition } */ +#include "tree-vect.h" + extern void abort (void) __attribute__ ((noreturn)); #define N 32 @@ -29,6 +31,8 @@ main (void) 31, 32 }; + check_vect (); + signed int ret = condition_reduction (a, 16); if (ret != -19) diff --git a/gcc/testsuite/gcc.dg/vect/pr65947-13.c b/gcc/testsuite/gcc.dg/vect/pr65947-13.c index 8c6faddd189..e1b626e45a3 100644 --- a/gcc/testsuite/gcc.dg/vect/pr65947-13.c +++ b/gcc/testsuite/gcc.dg/vect/pr65947-13.c @@ -1,5 +1,7 @@ /* { dg-require-effective-target vect_condition } */ +#include "tree-vect.h" + extern void abort (void) __attribute__ ((noreturn)); #define N 32 @@ -29,6 +31,8 @@ main (void) 31, 32 }; + check_vect (); + int ret = condition_reduction (a, 16); if (ret != 2) diff --git a/gcc/testsuite/gcc.dg/vect/pr65947-2.c b/gcc/testsuite/gcc.dg/vect/pr65947-2.c index 9e9ff538286..6a36db131e4 100644 --- a/gcc/testsuite/gcc.dg/vect/pr65947-2.c +++ b/gcc/testsuite/gcc.dg/vect/pr65947-2.c @@ -1,5 +1,7 @@ /* { dg-require-effective-target vect_condition } */ +#include "tree-vect.h" + extern void abort (void) __attribute__ ((noreturn)); #define N 254 @@ -29,6 +31,8 @@ main (void) }; __builtin_memset (a+32, 43, N-32); + check_vect (); + unsigned char ret = condition_reduction (a, 16); if (ret != 10) diff --git a/gcc/testsuite/gcc.dg/vect/pr65947-3.c b/gcc/testsuite/gcc.dg/vect/pr65947-3.c index 4b6aa9216b0..1323ed07c80 100644 --- a/gcc/testsuite/gcc.dg/vect/pr65947-3.c +++ b/gcc/testsuite/gcc.dg/vect/pr65947-3.c @@ -1,5 +1,7 @@ /* { dg-require-effective-target vect_condition } */ +#include "tree-vect.h" + extern void abort (void) __attribute__ ((noreturn)); #define N 37 @@ -39,6 +41,8 @@ main (void) 31, 32, 33, 34, 35, 36, 37 }; + check_vect (); + unsigned int ret = condition_reduction (a, 16, b); if (ret != 13) diff --git a/gcc/testsuite/gcc.dg/vect/pr65947-4.c b/gcc/testsuite/gcc.dg/vect/pr65947-4.c index f4e7fdc97c8..d754b8d3ccb 100644 --- a/gcc/testsuite/gcc.dg/vect/pr65947-4.c +++ b/gcc/testsuite/gcc.dg/vect/pr65947-4.c @@ -1,5 +1,7 @@ /* { dg-require-effective-target vect_condition } */ +#include "tree-vect.h" + extern void abort (void) __attribute__ ((noreturn)); #define N 27 @@ -27,6 +29,8 @@ main (void) 21, 22, 23, 24, 25, 26, 27 }; + check_vect (); + int ret = condition_reduction (a, 46); /* loop should never have found a value. */ diff --git a/gcc/testsuite/gcc.dg/vect/pr65947-5.c b/gcc/testsuite/gcc.dg/vect/pr65947-5.c index 21be8d0b749..b2af501f40d 100644 --- a/gcc/testsuite/gcc.dg/vect/pr65947-5.c +++ b/gcc/testsuite/gcc.dg/vect/pr65947-5.c @@ -1,5 +1,7 @@ /* { dg-require-effective-target vect_condition } */ +#include "tree-vect.h" + extern void abort (void) __attribute__ ((noreturn)); #define N 32 @@ -29,6 +31,8 @@ main (void) 31, 32 }; + check_vect (); + unsigned char ret = condition_reduction (a, 16, N); if (ret != 10) diff --git a/gcc/testsuite/gcc.dg/vect/pr65947-6.c b/gcc/testsuite/gcc.dg/vect/pr65947-6.c index e1432403b2d..12dc852a32f 100644 --- a/gcc/testsuite/gcc.dg/vect/pr65947-6.c +++ b/gcc/testsuite/gcc.dg/vect/pr65947-6.c @@ -1,5 +1,7 @@ /* { dg-require-effective-target vect_condition } */ +#include "tree-vect.h" + extern void abort (void) __attribute__ ((noreturn)); #define N 30 @@ -28,6 +30,8 @@ main (void) 43, 22, -3, 22, 16, 34, 55, 31, 87, 324 }; + check_vect (); + int ret = condition_reduction (a, 16); if (ret != -3) diff --git a/gcc/testsuite/gcc.dg/vect/pr65947-7.c b/gcc/testsuite/gcc.dg/vect/pr65947-7.c index 10441191454..287f57ed1d3 100644 --- a/gcc/testsuite/gcc.dg/vect/pr65947-7.c +++ b/gcc/testsuite/gcc.dg/vect/pr65947-7.c @@ -1,5 +1,7 @@ /* { dg-require-effective-target vect_condition } */ +#include "tree-vect.h" + extern void abort (void) __attribute__ ((noreturn)); #define N 43 @@ -40,6 +42,8 @@ main (void) 73, 2, 87 }; + check_vect (); + int ret = condition_reduction (a, 16, b); if (ret != 27) diff --git a/gcc/testsuite/gcc.dg/vect/pr65947-8.c b/gcc/testsuite/gcc.dg/vect/pr65947-8.c index 5cdbbe0529c..293118582aa 100644 --- a/gcc/testsuite/gcc.dg/vect/pr65947-8.c +++ b/gcc/testsuite/gcc.dg/vect/pr65947-8.c @@ -1,5 +1,7 @@ /* { dg-require-effective-target vect_condition } */ +#include "tree-vect.h" + extern void abort (void) __attribute__ ((noreturn)); #define N 27 @@ -29,6 +31,8 @@ main (void) 67, 55, 112, 22, 45, 23, 111 }; + check_vect (); + int ret = condition_reduction (a, 16); if (ret != 12) diff --git a/gcc/testsuite/gcc.dg/vect/pr65947-9.c b/gcc/testsuite/gcc.dg/vect/pr65947-9.c index d0da13f26b8..d5a76e9fc0d 100644 --- a/gcc/testsuite/gcc.dg/vect/pr65947-9.c +++ b/gcc/testsuite/gcc.dg/vect/pr65947-9.c @@ -1,5 +1,7 @@ /* { dg-require-effective-target vect_condition } */ +#include "tree-vect.h" + extern void abort (void) __attribute__ ((noreturn)); #define N 255 @@ -30,6 +32,8 @@ main (void) }; __builtin_memset (a+32, 43, N-32); + check_vect (); + char ret = condition_reduction (a, 16); if (ret != 10) diff --git a/gcc/testsuite/gcc.dg/vect/pr70021.c b/gcc/testsuite/gcc.dg/vect/pr70021.c index b147fa1598f..988fc53216d 100644 --- a/gcc/testsuite/gcc.dg/vect/pr70021.c +++ b/gcc/testsuite/gcc.dg/vect/pr70021.c @@ -1,5 +1,4 @@ /* PR target/70021 */ -/* { dg-do run } */ #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/pr70138-1.c b/gcc/testsuite/gcc.dg/vect/pr70138-1.c index bd4d006abf6..e391e7651ba 100644 --- a/gcc/testsuite/gcc.dg/vect/pr70138-1.c +++ b/gcc/testsuite/gcc.dg/vect/pr70138-1.c @@ -1,5 +1,3 @@ -/* { dg-do run } */ - #include "tree-vect.h" double u[33 * 33]; diff --git a/gcc/testsuite/gcc.dg/vect/pr70138-2.c b/gcc/testsuite/gcc.dg/vect/pr70138-2.c index b1f973781aa..01c5dd85014 100644 --- a/gcc/testsuite/gcc.dg/vect/pr70138-2.c +++ b/gcc/testsuite/gcc.dg/vect/pr70138-2.c @@ -1,5 +1,3 @@ -/* { dg-do run } */ - #include "tree-vect.h" double u[33]; diff --git a/gcc/testsuite/gcc.dg/vect/pr70354-1.c b/gcc/testsuite/gcc.dg/vect/pr70354-1.c index 70de8119a29..9d601dc9d4a 100644 --- a/gcc/testsuite/gcc.dg/vect/pr70354-1.c +++ b/gcc/testsuite/gcc.dg/vect/pr70354-1.c @@ -1,5 +1,4 @@ /* PR tree-optimization/70354 */ -/* { dg-do run } */ #ifndef main #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/pr70354-2.c b/gcc/testsuite/gcc.dg/vect/pr70354-2.c index 356a1152d0c..160e1e083e0 100644 --- a/gcc/testsuite/gcc.dg/vect/pr70354-2.c +++ b/gcc/testsuite/gcc.dg/vect/pr70354-2.c @@ -1,5 +1,4 @@ /* PR tree-optimization/70354 */ -/* { dg-do run } */ #ifndef main #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/pr71259.c b/gcc/testsuite/gcc.dg/vect/pr71259.c index 89aacd946c5..587a8e3c8f3 100644 --- a/gcc/testsuite/gcc.dg/vect/pr71259.c +++ b/gcc/testsuite/gcc.dg/vect/pr71259.c @@ -1,5 +1,4 @@ /* PR tree-optimization/71259 */ -/* { dg-do run } */ /* { dg-additional-options "-O3" } */ /* { dg-additional-options "-mavx" { target avx_runtime } } */ diff --git a/gcc/testsuite/gcc.dg/vect/pr71416-1.c b/gcc/testsuite/gcc.dg/vect/pr71416-1.c index 8a2854889f9..b2845787c4a 100644 --- a/gcc/testsuite/gcc.dg/vect/pr71416-1.c +++ b/gcc/testsuite/gcc.dg/vect/pr71416-1.c @@ -1,4 +1,4 @@ -/* { dg-do run } */ +#include "tree-vect.h" short a; char b, e; @@ -6,6 +6,7 @@ static short c; int d, f; int main() { short g; + check_vect (); for (; e; ++e) { d = a; f = 0; diff --git a/gcc/testsuite/gcc.dg/vect/pr71439.c b/gcc/testsuite/gcc.dg/vect/pr71439.c index 95e4763bad6..1f596a8e4de 100644 --- a/gcc/testsuite/gcc.dg/vect/pr71439.c +++ b/gcc/testsuite/gcc.dg/vect/pr71439.c @@ -4,6 +4,7 @@ int a, b, c; short fn1(int p1, int p2) { return p1 + p2; } int main() { + check_vect (); a = 0; for (; a < 30; a = fn1(a, 4)) { c = b; diff --git a/gcc/testsuite/gcc.dg/vect/slp-43.c b/gcc/testsuite/gcc.dg/vect/slp-43.c index 4e8df46c863..3f510a5597a 100644 --- a/gcc/testsuite/gcc.dg/vect/slp-43.c +++ b/gcc/testsuite/gcc.dg/vect/slp-43.c @@ -1,4 +1,3 @@ -/* { dg-do run } */ /* { dg-require-effective-target vect_int } */ /* { dg-additional-options "-O3" } */ diff --git a/gcc/testsuite/gcc.dg/vect/slp-45.c b/gcc/testsuite/gcc.dg/vect/slp-45.c index be721cb7102..0f9903cc6bf 100644 --- a/gcc/testsuite/gcc.dg/vect/slp-45.c +++ b/gcc/testsuite/gcc.dg/vect/slp-45.c @@ -1,4 +1,3 @@ -/* { dg-do run } */ /* { dg-require-effective-target vect_int } */ /* { dg-additional-options "-O3" } */ diff --git a/gcc/testsuite/gcc.dg/vect/slp-widen-mult-half.c b/gcc/testsuite/gcc.dg/vect/slp-widen-mult-half.c index 6e0ed0fcfa8..f5fb63e19f1 100644 --- a/gcc/testsuite/gcc.dg/vect/slp-widen-mult-half.c +++ b/gcc/testsuite/gcc.dg/vect/slp-widen-mult-half.c @@ -28,6 +28,8 @@ int main (void) { int i; + check_vect (); + for (i = 0; i < N; i++) { in[i] = i; diff --git a/gcc/testsuite/gcc.dg/vect/vect-bswap16.c b/gcc/testsuite/gcc.dg/vect/vect-bswap16.c index a158bf4d455..ce7c6b6d862 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bswap16.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bswap16.c @@ -21,6 +21,8 @@ main (void) unsigned short expect[N]; int i; + check_vect (); + for (i = 0; i < N; ++i) { arr[i] = i; diff --git a/gcc/testsuite/gcc.dg/vect/vect-bswap32.c b/gcc/testsuite/gcc.dg/vect/vect-bswap32.c index 3ca779bfb23..17132baf57b 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bswap32.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bswap32.c @@ -21,6 +21,8 @@ main (void) unsigned int expect[N]; int i; + check_vect (); + for (i = 0; i < N; ++i) { arr[i] = i; diff --git a/gcc/testsuite/gcc.dg/vect/vect-bswap64.c b/gcc/testsuite/gcc.dg/vect/vect-bswap64.c index 10b9e0617df..745a7e73265 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bswap64.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bswap64.c @@ -21,6 +21,8 @@ main (void) unsigned long long expect[N]; int i; + check_vect (); + for (i = 0; i < N; ++i) { arr[i] = i; diff --git a/gcc/testsuite/gcc.dg/vect/vect-live-1.c b/gcc/testsuite/gcc.dg/vect/vect-live-1.c index 46bce5f625f..e170875d7ab 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-live-1.c +++ b/gcc/testsuite/gcc.dg/vect/vect-live-1.c @@ -29,6 +29,8 @@ main (void) int a[MAX]; int i; + check_vect (); + int ret = liveloop (START, MAX, a); if (ret != MAX + START) diff --git a/gcc/testsuite/gcc.dg/vect/vect-live-2.c b/gcc/testsuite/gcc.dg/vect/vect-live-2.c index 9460624a515..a6daa61829e 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-live-2.c +++ b/gcc/testsuite/gcc.dg/vect/vect-live-2.c @@ -33,6 +33,8 @@ main (void) int b[MAX]; int i; + check_vect (); + for (i=0; i