/* { dg-require-effective-target vect_float } */ #include #include "tree-vect.h" #define N 3001 typedef float afloat __attribute__ ((__aligned__(16))); int 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; afloat a[N]; afloat b[N]; check_vect (); /* from bzip2: */ for (i=0; i