annotate gcc/testsuite/gcc.dg/vect/vect-119.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-require-effective-target vect_int } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 #define OUTER 32
kono
parents:
diff changeset
5 #define INNER 40
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 static unsigned int
kono
parents:
diff changeset
8 bar (const unsigned int x[INNER][2], unsigned int sum)
kono
parents:
diff changeset
9 {
kono
parents:
diff changeset
10 int i;
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 for (i = 0; i < INNER; i++)
kono
parents:
diff changeset
13 sum += x[i][0] * x[i][0] + x[i][1] * x[i][1];
kono
parents:
diff changeset
14 return sum;
kono
parents:
diff changeset
15 }
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 unsigned int foo (const unsigned int x[OUTER][INNER][2])
kono
parents:
diff changeset
18 {
kono
parents:
diff changeset
19 int i;
kono
parents:
diff changeset
20 unsigned int sum;
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 sum = 0.0f;
kono
parents:
diff changeset
23 for (i = 0; i < OUTER; i++)
kono
parents:
diff changeset
24 sum = bar (x[i], sum);
kono
parents:
diff changeset
25 return sum;
kono
parents:
diff changeset
26 }
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28 /* { dg-final { scan-tree-dump-times "Detected interleaving load of size 2" 1 "vect" } } */