annotate gcc/testsuite/gcc.dg/vect/vect-profile-1.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 /* { dg-additional-options "-fdump-tree-vect-details-blocks" } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 /* At least one of these should correspond to a full vector. */
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 void
kono
parents:
diff changeset
8 f1 (int *x)
kono
parents:
diff changeset
9 {
kono
parents:
diff changeset
10 for (int j = 0; j < 2; ++j)
kono
parents:
diff changeset
11 x[j] += 1;
kono
parents:
diff changeset
12 }
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 void
kono
parents:
diff changeset
15 f2 (int *x)
kono
parents:
diff changeset
16 {
kono
parents:
diff changeset
17 for (int j = 0; j < 4; ++j)
kono
parents:
diff changeset
18 x[j] += 1;
kono
parents:
diff changeset
19 }
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 void
kono
parents:
diff changeset
22 f3 (int *x)
kono
parents:
diff changeset
23 {
kono
parents:
diff changeset
24 for (int j = 0; j < 8; ++j)
kono
parents:
diff changeset
25 x[j] += 1;
kono
parents:
diff changeset
26 }
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28 void
kono
parents:
diff changeset
29 f4 (int *x)
kono
parents:
diff changeset
30 {
kono
parents:
diff changeset
31 for (int j = 0; j < 16; ++j)
kono
parents:
diff changeset
32 x[j] += 1;
kono
parents:
diff changeset
33 }
kono
parents:
diff changeset
34
kono
parents:
diff changeset
35 /* { dg-final { scan-tree-dump {goto <bb [0-9]+>; \[0+.0*%\]} vect } } */