]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/loop-versioning-7.c
1 /* { dg-options "-O3 -fdump-tree-lversion-details" } */
3 /* Check that versioning can handle arrays of structures. */
10 f1 (struct foo
*x
, int stepx
, int n
)
12 for (int i
= 0; i
< n
; ++i
)
21 f2 (struct foo
*x
, int stepx
, int limit
)
23 for (int i
= 0; i
< limit
; i
+= stepx
)
31 /* { dg-final { scan-tree-dump-times {want to version containing loop} 2 "lversion" } } */
32 /* { dg-final { scan-tree-dump-times {versioned this loop} 2 "lversion" } } */