2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-83.c
blobc031db9df6381aea268e144a71669fd846868a7a
1 /* { dg-skip-if "powerpc and integer vectorization only" { ! { powerpc*-*-* && vect_int } } { "*" } { "" } } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 16
8 __attribute__ ((noinline))
9 int main1 ()
11 long long unsigned int ca[N];
12 int i;
14 for (i = 0; i < N; i++)
16 ca[i] = 2;
19 /* check results: */
20 for (i = 0; i < N; i++)
22 if (ca[i] != 2)
23 abort ();
26 return 0;
29 int main (void)
31 check_vect ();
33 return main1 ();
36 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
37 /* { dg-final { cleanup-tree-dump "vect" } } */