libstdc++: Add script to update docs for a new release branch
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-82.c
blob5c761e92a3aff49d543cf5e23bdc1d6f11129939
1 /* { dg-skip-if "powerpc/loongarch and integer vectorization only" { ! { { powerpc*-*-* || loongarch*-*-* } && vect_int } } } */
2 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
4 #include <stdarg.h>
5 #include "tree-vect.h"
7 #define N 16
9 __attribute__ ((noinline))
10 int main1 ()
12 long long unsigned int ca[N];
13 int i;
15 for (i = 0; i < N; i++)
17 ca[i] = 0;
20 /* check results: */
21 #pragma GCC novector
22 for (i = 0; i < N; i++)
24 if (ca[i] != 0)
25 abort ();
28 return 0;
31 int main (void)
33 check_vect ();
35 return main1 ();
38 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
39 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */