OSDN Git Service

Increase array sizes in vect-tests to enable 256-bit vectorization
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / vect / vect-97.c
index 6ea2614..f8bf4c3 100644 (file)
@@ -3,10 +3,12 @@
 #include <stdarg.h>
 #include "tree-vect.h"
 
-#define N 16
+#define N 128
  
 char x[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
-char cb[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__))) = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
+char cb[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
+
+volatile int y = 0;
 
 __attribute__ ((noinline))
 int main1 ()
@@ -16,6 +18,12 @@ int main1 ()
     char *q;
   } s;
   int i;
+  for (i = 0; i < N; i++)
+    {
+      cb[i] = i*3;
+      if (y)
+       abort ();
+    }
 
   /* Check that datarefs analysis can determine that the access via pointer
      s.p is based off array x, which enables us to antialias this access from