/* { dg-require-effective-target vect_float } */ #include #include "tree-vect.h" #define N 3001 __attribute__ ((noinline)) main1 (float *pa) { int i; for (i = 0; i < 3001; i++) { pa[i] = 2.0; } /* check results: */ for (i = 0; i < 3001; i++) { if (pa[i] != 2.0) abort (); } for (i = 1; i <= 10; i++) { pa[i] = 3.0; } /* check results: */ for (i = 1; i <= 10; i++) { if (pa[i] != 3.0) abort (); } return 0; } int main (void) { int i; float a[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__))); float b[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__))); check_vect (); /* from bzip2: */ for (i=0; i