IVOPT performance tuning patch. The main problem is a variant of maximal weight
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / no-scevccp-slp-30.c
blob30cb947bed0d92c199fbc8dd0ba7ad016e2386b3
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include <stdio.h>
5 #include "tree-vect.h"
7 #define N 128
9 int
10 main1 ()
12 int i, j;
13 unsigned short out[N*8], a[N];
15 for (j = 0; j < N; j++)
17 for (i = 0; i < N; i++)
19 out[i*4] = 8;
20 out[i*4 + 1] = 18;
21 out[i*4 + 2] = 28;
22 out[i*4 + 3] = 38;
24 a[j] = 8;
27 /* check results: */
28 for (j = 0; j < N; j++)
30 for (i = 0; i < N; i++)
32 if (out[i*4] != 8
33 || out[i*4 + 1] != 18
34 || out[i*4 + 2] != 28
35 || out[i*4 + 3] != 38)
36 abort();
39 if (a[j] != 8)
40 abort ();
43 return 0;
46 int main (void)
48 check_vect ();
50 main1 ();
52 return 0;
55 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
56 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" } } */
57 /* { dg-final { cleanup-tree-dump "vect" } } */