testsuite: Revert to the original version of pr100056.c
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-8.c
blob20d358512569aebe459cb1fad95fdeef668993f9
1 /* { dg-require-effective-target vect_float } */
2 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
4 #include <stdarg.h>
5 #include "tree-vect.h"
7 #define N 16
9 float b[N] = {0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30};
10 float a[N];
12 __attribute__ ((noinline))
13 int main1 (int n)
15 int i;
17 /* Vectorized: unknown loop bound). */
18 for (i = 0; i < n; i++){
19 a[i] = b[i];
22 /* check results: */
23 #pragma GCC novector
24 for (i = 0; i < n; i++)
26 if (a[i] != b[i])
27 abort ();
30 return 0;
33 int main (void)
35 check_vect ();
37 return main1 (N);
40 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
41 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */