Add compile command to each testcase
[gcc-vect-testsuite.git] / no-scevccp-noreassoc-outer-2.c
blob9a4fa3f25382b47bead13f9a2125c850a6eb55fb
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 40
7 int a[200*N+N];
9 __attribute__ ((noinline)) void
10 foo (){
11 int i,j;
12 int sum,s=0;
14 for (i = 0; i < 200*N; i++) {
15 sum = 0;
16 for (j = 0; j < N; j++) {
17 sum += (i + j);
18 i++;
20 a[i] = sum;
24 int main (void)
26 int i,j,k=0;
27 int sum,s=0;
29 check_vect ();
31 foo ();
33 /* check results: */
34 for (i=0; i<200*N; i++)
36 sum = 0;
37 for (j = 0; j < N; j++){
38 sum += (j + i);
39 i++;
41 if (a[i] != sum)
42 abort ();
45 return 0;
48 /* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED." 1 "vect" { xfail *-*-* } } } */
49 /* { dg-final { cleanup-tree-dump "vect" } } */