2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-83_64.c
blob8734a527129da3d4d79d9c8e287d03b7fe78e0cc
1 /* { dg-do run { target { { powerpc*-*-* && lp64 } && powerpc_altivec_ok } } } */
2 /* { dg-do compile { target { { powerpc*-*-* && ilp32 } && powerpc_altivec_ok } } } */
3 /* { dg-options "-O2 -ftree-vectorize -mpowerpc64 -fdump-tree-vect-stats -maltivec" } */
5 #include <stdarg.h>
6 #include "tree-vect.h"
8 #define N 16
10 __attribute__ ((noinline))
11 int main1 ()
13 long long unsigned int ca[N];
14 int i;
16 for (i = 0; i < N; i++)
18 ca[i] = 2;
21 /* check results: */
22 for (i = 0; i < N; i++)
24 if (ca[i] != 2)
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 { cleanup-tree-dump "vect" } } */