Add compile command to each testcase
[gcc-vect-testsuite.git] / O3-vect-pr34223.c
blob5dd776c3e268ffb9a792021dcd89533906805984
1 /* { dg-require-effective-target vect_int } */
3 #include "tree-vect.h"
5 #define M 10
6 #define N 3
8 void __attribute__((noinline))
9 foo (int n, int *ub, int *uc)
11 int i, j, tmp1;
13 for (i = 0; i < n; i++)
15 tmp1 = 0;
16 for (j = 0; j < M; j++)
18 tmp1 += uc[i] * ((int)(j << N) / M);
20 ub[i] = tmp1;
24 int main()
26 int uc[16], ub[16];
27 check_vect ();
28 foo (16, uc, ub);
29 return 0;
32 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_int_mult } } } */
33 /* { dg-final { cleanup-tree-dump "vect" } } */