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

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
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 typedef struct {
kono
parents:
diff changeset
5 int iatom[3];
kono
parents:
diff changeset
6 int blocknr;
kono
parents:
diff changeset
7 } t_sortblock;
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 #define DIM 3
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 void foo (int ncons, t_sortblock *sb, int *iatom)
kono
parents:
diff changeset
12 {
kono
parents:
diff changeset
13 int i, m;
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 for(i=0; (i<ncons); i++,iatom+=3)
kono
parents:
diff changeset
16 for(m=0; (m<DIM); m++)
kono
parents:
diff changeset
17 iatom[m]=sb[i].iatom[m];
kono
parents:
diff changeset
18 }
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 /* The testcase was originally added for correctness reasons but now we
kono
parents:
diff changeset
21 can vectorize it correctly if the target supports the permutations
kono
parents:
diff changeset
22 required. */
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 0 "vect" { target { ! vect_perm } } } } */