PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / no-scevccp-slp-30.c
blobfe9e7e7ab4038acfe02d3e6ea9c4fc37ba207043
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 128
8 int
9 main1 ()
11 int i, j;
12 unsigned short out[N*8], a[N];
14 for (j = 0; j < N; j++)
16 for (i = 0; i < N; i++)
18 out[i*4] = 8;
19 out[i*4 + 1] = 18;
20 out[i*4 + 2] = 28;
21 out[i*4 + 3] = 38;
23 a[j] = 8;
26 /* check results: */
27 for (j = 0; j < N; j++)
29 for (i = 0; i < N; i++)
31 if (out[i*4] != 8
32 || out[i*4 + 1] != 18
33 || out[i*4 + 2] != 28
34 || out[i*4 + 3] != 38)
35 abort();
38 if (a[j] != 8)
39 abort ();
42 return 0;
45 int main (void)
47 check_vect ();
49 main1 ();
51 return 0;
54 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
55 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" } } */