IVOPT performance tuning patch. The main problem is a variant of maximal weight
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-82_64.c
blob71de0ce2b40fc3659fe6d79ff57dbc92e9283789
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] = 0;
21 /* check results: */
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 { cleanup-tree-dump "vect" } } */