Hello! - Remove harmful "dg-do run" directives (run vs. compile is handled automatically by the vect.exp infrastructure) - Add check_vect for runtime tests - Remove default vector testsuite compile flags
2016-06-24 Uros Bizjak <ubiz...@gmail.com> * 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 <ubiz...@gmail.com> * 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 <ubiz...@gmail.com> * 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. Tested on x86_64-linux-gnu {,-m32} and committed to mainline. Uros.
Index: g++.dg/vect/pr36648.cc =================================================================== --- g++.dg/vect/pr36648.cc (revision 237757) +++ g++.dg/vect/pr36648.cc (working copy) @@ -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 { Index: gcc.dg/vect/O3-pr70130.c =================================================================== --- gcc.dg/vect/O3-pr70130.c (revision 237757) +++ gcc.dg/vect/O3-pr70130.c (working copy) @@ -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); Index: gcc.dg/vect/bb-slp-30.c =================================================================== --- gcc.dg/vect/bb-slp-30.c (revision 237757) +++ gcc.dg/vect/bb-slp-30.c (working copy) @@ -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" } } */ Index: gcc.dg/vect/costmodel/i386/costmodel-vect-33.c =================================================================== --- gcc.dg/vect/costmodel/i386/costmodel-vect-33.c (revision 237757) +++ gcc.dg/vect/costmodel/i386/costmodel-vect-33.c (working copy) @@ -33,6 +33,8 @@ int main1 () int main (void) { + check_vect (); + return main1 (); } Index: gcc.dg/vect/fast-math-bb-slp-call-3.c =================================================================== --- gcc.dg/vect/fast-math-bb-slp-call-3.c (revision 237757) +++ gcc.dg/vect/fast-math-bb-slp-call-3.c (working copy) @@ -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); Index: gcc.dg/vect/pr45902.c =================================================================== --- gcc.dg/vect/pr45902.c (revision 237757) +++ gcc.dg/vect/pr45902.c (working copy) @@ -27,6 +27,8 @@ main () { int i; + check_vect (); + for (i = 0; i < N; i++) a[i] = i; Index: gcc.dg/vect/pr48172.c =================================================================== --- gcc.dg/vect/pr48172.c (revision 237757) +++ gcc.dg/vect/pr48172.c (working copy) @@ -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 */ Index: gcc.dg/vect/pr48377.c =================================================================== --- gcc.dg/vect/pr48377.c (revision 237757) +++ gcc.dg/vect/pr48377.c (working copy) @@ -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; } Index: gcc.dg/vect/pr49038.c =================================================================== --- gcc.dg/vect/pr49038.c (revision 237757) +++ gcc.dg/vect/pr49038.c (working copy) @@ -2,6 +2,7 @@ #include <sys/mman.h> #include <stdio.h> +#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) Index: gcc.dg/vect/pr49771.c =================================================================== --- gcc.dg/vect/pr49771.c (revision 237757) +++ gcc.dg/vect/pr49771.c (working copy) @@ -1,6 +1,7 @@ extern void abort (void); #include <stdarg.h> +#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; Index: gcc.dg/vect/pr52091.c =================================================================== --- gcc.dg/vect/pr52091.c (revision 237757) +++ gcc.dg/vect/pr52091.c (working copy) @@ -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"); Index: gcc.dg/vect/pr53185-2.c =================================================================== --- gcc.dg/vect/pr53185-2.c (revision 237757) +++ gcc.dg/vect/pr53185-2.c (working copy) @@ -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) Index: gcc.dg/vect/pr56826.c =================================================================== --- gcc.dg/vect/pr56826.c (revision 237757) +++ gcc.dg/vect/pr56826.c (working copy) @@ -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; Index: gcc.dg/vect/pr60276.c =================================================================== --- gcc.dg/vect/pr60276.c (revision 237757) +++ gcc.dg/vect/pr60276.c (working copy) @@ -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); Index: gcc.dg/vect/pr62021.c =================================================================== --- gcc.dg/vect/pr62021.c (revision 237757) +++ gcc.dg/vect/pr62021.c (working copy) @@ -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 Index: gcc.dg/vect/pr65518.c =================================================================== --- gcc.dg/vect/pr65518.c (revision 237757) +++ gcc.dg/vect/pr65518.c (working copy) @@ -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) { Index: gcc.dg/vect/pr65947-1.c =================================================================== --- gcc.dg/vect/pr65947-1.c (revision 237757) +++ gcc.dg/vect/pr65947-1.c (working copy) @@ -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) Index: gcc.dg/vect/pr65947-10.c =================================================================== --- gcc.dg/vect/pr65947-10.c (revision 237757) +++ gcc.dg/vect/pr65947-10.c (working copy) @@ -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) Index: gcc.dg/vect/pr65947-11.c =================================================================== --- gcc.dg/vect/pr65947-11.c (revision 237757) +++ gcc.dg/vect/pr65947-11.c (working copy) @@ -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) Index: gcc.dg/vect/pr65947-12.c =================================================================== --- gcc.dg/vect/pr65947-12.c (revision 237757) +++ gcc.dg/vect/pr65947-12.c (working copy) @@ -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) Index: gcc.dg/vect/pr65947-13.c =================================================================== --- gcc.dg/vect/pr65947-13.c (revision 237757) +++ gcc.dg/vect/pr65947-13.c (working copy) @@ -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) Index: gcc.dg/vect/pr65947-2.c =================================================================== --- gcc.dg/vect/pr65947-2.c (revision 237757) +++ gcc.dg/vect/pr65947-2.c (working copy) @@ -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) Index: gcc.dg/vect/pr65947-3.c =================================================================== --- gcc.dg/vect/pr65947-3.c (revision 237757) +++ gcc.dg/vect/pr65947-3.c (working copy) @@ -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) Index: gcc.dg/vect/pr65947-4.c =================================================================== --- gcc.dg/vect/pr65947-4.c (revision 237757) +++ gcc.dg/vect/pr65947-4.c (working copy) @@ -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. */ Index: gcc.dg/vect/pr65947-5.c =================================================================== --- gcc.dg/vect/pr65947-5.c (revision 237757) +++ gcc.dg/vect/pr65947-5.c (working copy) @@ -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) Index: gcc.dg/vect/pr65947-6.c =================================================================== --- gcc.dg/vect/pr65947-6.c (revision 237757) +++ gcc.dg/vect/pr65947-6.c (working copy) @@ -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) Index: gcc.dg/vect/pr65947-7.c =================================================================== --- gcc.dg/vect/pr65947-7.c (revision 237757) +++ gcc.dg/vect/pr65947-7.c (working copy) @@ -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) Index: gcc.dg/vect/pr65947-8.c =================================================================== --- gcc.dg/vect/pr65947-8.c (revision 237757) +++ gcc.dg/vect/pr65947-8.c (working copy) @@ -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) Index: gcc.dg/vect/pr65947-9.c =================================================================== --- gcc.dg/vect/pr65947-9.c (revision 237757) +++ gcc.dg/vect/pr65947-9.c (working copy) @@ -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) Index: gcc.dg/vect/pr70021.c =================================================================== --- gcc.dg/vect/pr70021.c (revision 237757) +++ gcc.dg/vect/pr70021.c (working copy) @@ -1,5 +1,4 @@ /* PR target/70021 */ -/* { dg-do run } */ #include "tree-vect.h" Index: gcc.dg/vect/pr70138-1.c =================================================================== --- gcc.dg/vect/pr70138-1.c (revision 237757) +++ gcc.dg/vect/pr70138-1.c (working copy) @@ -1,5 +1,3 @@ -/* { dg-do run } */ - #include "tree-vect.h" double u[33 * 33]; Index: gcc.dg/vect/pr70138-2.c =================================================================== --- gcc.dg/vect/pr70138-2.c (revision 237757) +++ gcc.dg/vect/pr70138-2.c (working copy) @@ -1,5 +1,3 @@ -/* { dg-do run } */ - #include "tree-vect.h" double u[33]; Index: gcc.dg/vect/pr70354-1.c =================================================================== --- gcc.dg/vect/pr70354-1.c (revision 237757) +++ gcc.dg/vect/pr70354-1.c (working copy) @@ -1,5 +1,4 @@ /* PR tree-optimization/70354 */ -/* { dg-do run } */ #ifndef main #include "tree-vect.h" Index: gcc.dg/vect/pr70354-2.c =================================================================== --- gcc.dg/vect/pr70354-2.c (revision 237757) +++ gcc.dg/vect/pr70354-2.c (working copy) @@ -1,5 +1,4 @@ /* PR tree-optimization/70354 */ -/* { dg-do run } */ #ifndef main #include "tree-vect.h" Index: gcc.dg/vect/pr71259.c =================================================================== --- gcc.dg/vect/pr71259.c (revision 237757) +++ gcc.dg/vect/pr71259.c (working copy) @@ -1,5 +1,4 @@ /* PR tree-optimization/71259 */ -/* { dg-do run } */ /* { dg-additional-options "-O3" } */ /* { dg-additional-options "-mavx" { target avx_runtime } } */ Index: gcc.dg/vect/pr71416-1.c =================================================================== --- gcc.dg/vect/pr71416-1.c (revision 237757) +++ gcc.dg/vect/pr71416-1.c (working copy) @@ -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; Index: gcc.dg/vect/pr71439.c =================================================================== --- gcc.dg/vect/pr71439.c (revision 237757) +++ gcc.dg/vect/pr71439.c (working copy) @@ -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; Index: gcc.dg/vect/slp-43.c =================================================================== --- gcc.dg/vect/slp-43.c (revision 237757) +++ gcc.dg/vect/slp-43.c (working copy) @@ -1,4 +1,3 @@ -/* { dg-do run } */ /* { dg-require-effective-target vect_int } */ /* { dg-additional-options "-O3" } */ Index: gcc.dg/vect/slp-45.c =================================================================== --- gcc.dg/vect/slp-45.c (revision 237757) +++ gcc.dg/vect/slp-45.c (working copy) @@ -1,4 +1,3 @@ -/* { dg-do run } */ /* { dg-require-effective-target vect_int } */ /* { dg-additional-options "-O3" } */ Index: gcc.dg/vect/slp-widen-mult-half.c =================================================================== --- gcc.dg/vect/slp-widen-mult-half.c (revision 237757) +++ gcc.dg/vect/slp-widen-mult-half.c (working copy) @@ -28,6 +28,8 @@ int main (void) { int i; + check_vect (); + for (i = 0; i < N; i++) { in[i] = i; Index: gcc.dg/vect/vect-bswap16.c =================================================================== --- gcc.dg/vect/vect-bswap16.c (revision 237757) +++ gcc.dg/vect/vect-bswap16.c (working copy) @@ -21,6 +21,8 @@ main (void) unsigned short expect[N]; int i; + check_vect (); + for (i = 0; i < N; ++i) { arr[i] = i; Index: gcc.dg/vect/vect-bswap32.c =================================================================== --- gcc.dg/vect/vect-bswap32.c (revision 237757) +++ gcc.dg/vect/vect-bswap32.c (working copy) @@ -21,6 +21,8 @@ main (void) unsigned int expect[N]; int i; + check_vect (); + for (i = 0; i < N; ++i) { arr[i] = i; Index: gcc.dg/vect/vect-bswap64.c =================================================================== --- gcc.dg/vect/vect-bswap64.c (revision 237757) +++ gcc.dg/vect/vect-bswap64.c (working copy) @@ -21,6 +21,8 @@ main (void) unsigned long long expect[N]; int i; + check_vect (); + for (i = 0; i < N; ++i) { arr[i] = i; Index: gcc.dg/vect/vect-live-1.c =================================================================== --- gcc.dg/vect/vect-live-1.c (revision 237757) +++ gcc.dg/vect/vect-live-1.c (working copy) @@ -29,6 +29,8 @@ main (void) int a[MAX]; int i; + check_vect (); + int ret = liveloop (START, MAX, a); if (ret != MAX + START) Index: gcc.dg/vect/vect-live-2.c =================================================================== --- gcc.dg/vect/vect-live-2.c (revision 237757) +++ gcc.dg/vect/vect-live-2.c (working copy) @@ -33,6 +33,8 @@ main (void) int b[MAX]; int i; + check_vect (); + for (i=0; i<MAX; i++) { __asm__ volatile (""); Index: gcc.dg/vect/vect-live-3.c =================================================================== --- gcc.dg/vect/vect-live-3.c (revision 237757) +++ gcc.dg/vect/vect-live-3.c (working copy) @@ -29,6 +29,8 @@ main (void) int b[MAX]; int i; + check_vect (); + for (i=0; i<MAX; i++) { __asm__ volatile (""); Index: gcc.dg/vect/vect-live-4.c =================================================================== --- gcc.dg/vect/vect-live-4.c (revision 237757) +++ gcc.dg/vect/vect-live-4.c (working copy) @@ -27,6 +27,8 @@ main (void) int b[MAX]; int i; + check_vect (); + for (i=0; i<MAX; i++) { __asm__ volatile (""); Index: gcc.dg/vect/vect-live-5.c =================================================================== --- gcc.dg/vect/vect-live-5.c (revision 237757) +++ gcc.dg/vect/vect-live-5.c (working copy) @@ -32,6 +32,8 @@ main (void) int b = 99; int i; + check_vect (); + int ret = liveloop (START, MAX, a, &b); if (ret != 99) Index: gcc.dg/vect/vect-live-slp-1.c =================================================================== --- gcc.dg/vect/vect-live-slp-1.c (revision 237757) +++ gcc.dg/vect/vect-live-slp-1.c (working copy) @@ -41,6 +41,8 @@ main (void) int b[MAX*4]; int i; + check_vect (); + for (i=0; i<MAX*4; i++) { __asm__ volatile (""); Index: gcc.dg/vect/vect-live-slp-2.c =================================================================== --- gcc.dg/vect/vect-live-slp-2.c (revision 237757) +++ gcc.dg/vect/vect-live-slp-2.c (working copy) @@ -35,6 +35,8 @@ main (void) int b[MAX*4]; int i; + check_vect (); + for (i=0; i<MAX*2; i++) { __asm__ volatile (""); Index: gcc.dg/vect/vect-live-slp-3.c =================================================================== --- gcc.dg/vect/vect-live-slp-3.c (revision 237757) +++ gcc.dg/vect/vect-live-slp-3.c (working copy) @@ -42,6 +42,8 @@ main (void) long b[MAX*4]; int i; + check_vect (); + for (i=0; i<MAX*4; i++) { __asm__ volatile (""); Index: gcc.dg/vect/vect-nb-iter-ub-1.c =================================================================== --- gcc.dg/vect/vect-nb-iter-ub-1.c (revision 237757) +++ gcc.dg/vect/vect-nb-iter-ub-1.c (working copy) @@ -1,7 +1,7 @@ -/* { dg-do run } */ -/* { dg-require-effective-target sse2 { target { i?86-*-* x86_64-*-* } } } */ -/* { dg-additional-options "-msse2 -fdump-tree-cunroll-details" { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-additional-options "-fdump-tree-cunroll-details" } */ +#include "tree-vect.h" + int ii[31]; char cc[31] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, @@ -18,6 +18,7 @@ foo (int s) int main (int argc, const char **argv) { int i; + check_vect (); foo (31); for (i = 0; i < 31; i++) if (ii[i] != i) Index: gcc.dg/vect/vect-nb-iter-ub-2.c =================================================================== --- gcc.dg/vect/vect-nb-iter-ub-2.c (revision 237757) +++ gcc.dg/vect/vect-nb-iter-ub-2.c (working copy) @@ -1,7 +1,7 @@ -/* { dg-do run } */ -/* { dg-require-effective-target sse2 { target { i?86-*-* x86_64-*-* } } } */ -/* { dg-additional-options "-msse2 -fdump-tree-cunroll-details" { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-additional-options "-fdump-tree-cunroll-details" } */ +#include "tree-vect.h" + int ii[32]; char cc[66] = { 0, 0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0, @@ -20,6 +20,7 @@ foo (int s) int main (int argc, const char **argv) { int i; + check_vect (); foo (32); for (i = 0; i < 32; i++) if (ii[i] != i) Index: gcc.dg/vect/vect-nb-iter-ub-3.c =================================================================== --- gcc.dg/vect/vect-nb-iter-ub-3.c (revision 237757) +++ gcc.dg/vect/vect-nb-iter-ub-3.c (working copy) @@ -1,7 +1,7 @@ -/* { dg-do run } */ -/* { dg-require-effective-target sse2 { target { i?86-*-* x86_64-*-* } } } */ -/* { dg-additional-options "-msse2 -fdump-tree-cunroll-details" { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-additional-options "-fdump-tree-cunroll-details" } */ +#include "tree-vect.h" + int ii[33]; char cc[66] = { 0, 0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0, @@ -20,6 +20,7 @@ foo (int s) int main (int argc, const char **argv) { int i; + check_vect (); foo (33); for (i = 0; i < 33; i++) if (ii[i] != i) Index: gcc.dg/vect/vect-neg-store-1.c =================================================================== --- gcc.dg/vect/vect-neg-store-1.c (revision 237757) +++ gcc.dg/vect/vect-neg-store-1.c (working copy) @@ -1,4 +1,7 @@ /* { dg-require-effective-target vect_int } */ + +#include "tree-vect.h" + extern void abort (void); __attribute__((noinline, noclone)) @@ -15,6 +18,8 @@ int main (void) short x[128 + 32]; int i; + check_vect (); + for (i = 0; i < 16; i ++) { asm (""); Index: gcc.dg/vect/vect-neg-store-2.c =================================================================== --- gcc.dg/vect/vect-neg-store-2.c (revision 237757) +++ gcc.dg/vect/vect-neg-store-2.c (working copy) @@ -1,4 +1,7 @@ /* { dg-require-effective-target vect_int } */ + +#include "tree-vect.h" + extern void abort (void); __attribute__((noinline, noclone)) @@ -15,6 +18,8 @@ int main (void) short x[128 + 32]; int i; + check_vect (); + for (i = 0; i < 16; i ++) { asm (""); Index: gcc.dg/vect/vect-outer-pr69720.c =================================================================== --- gcc.dg/vect/vect-outer-pr69720.c (revision 237757) +++ gcc.dg/vect/vect-outer-pr69720.c (working copy) @@ -1,3 +1,5 @@ +#include "tree-vect.h" + extern void abort (void); int a[128]; @@ -18,6 +20,7 @@ void __attribute__((noinline)) foo() int main() { + check_vect (); foo (); if (b[0] != 33. || b[1] != 34. || b[2] != 35. || b[3] != 36.) Index: gcc.dg/vect/vect-reduc-mul_1.c =================================================================== --- gcc.dg/vect/vect-reduc-mul_1.c (revision 237757) +++ gcc.dg/vect/vect-reduc-mul_1.c (working copy) @@ -3,6 +3,8 @@ /* Write a reduction loop to be reduced using vector shifts. */ +#include "tree-vect.h" + extern void abort(void); unsigned char in[16]; @@ -13,6 +15,8 @@ main (unsigned char argc, char **argv) unsigned char i = 0; unsigned char sum = 1; + check_vect (); + for (i = 0; i < 16; i++) in[i] = i + i + 1; Index: gcc.dg/vect/vect-reduc-mul_2.c =================================================================== --- gcc.dg/vect/vect-reduc-mul_2.c (revision 237757) +++ gcc.dg/vect/vect-reduc-mul_2.c (working copy) @@ -3,6 +3,8 @@ /* Write a reduction loop to be reduced using vector shifts and folded. */ +#include "tree-vect.h" + extern void abort(void); int @@ -12,6 +14,8 @@ main (unsigned char argc, char **argv) unsigned char i = 0; unsigned char sum = 1; + check_vect (); + for (i = 0; i < 16; i++) in[i] = i + i + 1; Index: gcc.dg/vect/vect-reduc-or_1.c =================================================================== --- gcc.dg/vect/vect-reduc-or_1.c (revision 237757) +++ gcc.dg/vect/vect-reduc-or_1.c (working copy) @@ -2,6 +2,8 @@ /* Write a reduction loop to be reduced using vector shifts. */ +#include "tree-vect.h" + extern void abort(void); unsigned char in[16] __attribute__((__aligned__(16))); @@ -12,6 +14,8 @@ main (unsigned char argc, char **argv) unsigned char i = 0; unsigned char sum = 1; + check_vect (); + for (i = 0; i < 16; i++) in[i] = (i + i + 1) & 0xfd; Index: gcc.dg/vect/vect-reduc-or_2.c =================================================================== --- gcc.dg/vect/vect-reduc-or_2.c (revision 237757) +++ gcc.dg/vect/vect-reduc-or_2.c (working copy) @@ -2,6 +2,8 @@ /* Write a reduction loop to be reduced using vector shifts and folded. */ +#include "tree-vect.h" + extern void abort(void); int @@ -11,6 +13,8 @@ main (unsigned char argc, char **argv) unsigned char i = 0; unsigned char sum = 1; + check_vect (); + for (i = 0; i < 16; i++) in[i] = (i + i + 1) & 0xfd; Index: gcc.dg/vect/vect-widen-mult-const-s16.c =================================================================== --- gcc.dg/vect/vect-widen-mult-const-s16.c (revision 237757) +++ gcc.dg/vect/vect-widen-mult-const-s16.c (working copy) @@ -41,6 +41,8 @@ int main (void) int a[N]; short b[N]; + check_vect (); + for (i = 0; i < N; i++) { a[i] = 0; Index: gcc.dg/vect/vect-widen-mult-const-u16.c =================================================================== --- gcc.dg/vect/vect-widen-mult-const-u16.c (revision 237757) +++ gcc.dg/vect/vect-widen-mult-const-u16.c (working copy) @@ -57,6 +57,8 @@ int main (void) unsigned int a[N]; unsigned short b[N]; + check_vect (); + for (i = 0; i < N; i++) { a[i] = 0; Index: gcc.dg/vect/vect-widen-mult-half-u8.c =================================================================== --- gcc.dg/vect/vect-widen-mult-half-u8.c (revision 237757) +++ gcc.dg/vect/vect-widen-mult-half-u8.c (working copy) @@ -31,6 +31,8 @@ int main (void) { int i; + check_vect (); + for (i = 0; i < N; i++) { in[i] = i; Index: gcc.dg/vect/vect-widen-mult-half.c =================================================================== --- gcc.dg/vect/vect-widen-mult-half.c (revision 237757) +++ gcc.dg/vect/vect-widen-mult-half.c (working copy) @@ -26,6 +26,8 @@ int main (void) { int i; + check_vect (); + for (i = 0; i < N; i++) { in[i] = i; Index: gfortran.dg/vect/pr69980.f90 =================================================================== --- gfortran.dg/vect/pr69980.f90 (revision 237757) +++ gfortran.dg/vect/pr69980.f90 (working copy) @@ -1,4 +1,3 @@ -! { dg-do run } ! { dg-additional-options "-Ofast -fno-inline" } subroutine check (a, b)