annotate gcc/testsuite/gcc.dg/vect/vect-119.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
1 /* Disabling epilogues until we find a better way to deal with scans. */
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
2 /* { dg-additional-options "--param vect-epilogues-nomask=0" } */
111
kono
parents:
diff changeset
3 /* { dg-do compile } */
kono
parents:
diff changeset
4 /* { dg-require-effective-target vect_int } */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 #define OUTER 32
kono
parents:
diff changeset
7 #define INNER 40
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 static unsigned int
kono
parents:
diff changeset
10 bar (const unsigned int x[INNER][2], unsigned int sum)
kono
parents:
diff changeset
11 {
kono
parents:
diff changeset
12 int i;
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 for (i = 0; i < INNER; i++)
kono
parents:
diff changeset
15 sum += x[i][0] * x[i][0] + x[i][1] * x[i][1];
kono
parents:
diff changeset
16 return sum;
kono
parents:
diff changeset
17 }
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 unsigned int foo (const unsigned int x[OUTER][INNER][2])
kono
parents:
diff changeset
20 {
kono
parents:
diff changeset
21 int i;
kono
parents:
diff changeset
22 unsigned int sum;
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 sum = 0.0f;
kono
parents:
diff changeset
25 for (i = 0; i < OUTER; i++)
kono
parents:
diff changeset
26 sum = bar (x[i], sum);
kono
parents:
diff changeset
27 return sum;
kono
parents:
diff changeset
28 }
kono
parents:
diff changeset
29
kono
parents:
diff changeset
30 /* { dg-final { scan-tree-dump-times "Detected interleaving load of size 2" 1 "vect" } } */