1 /* { dg-require-effective-target vect_int } */
19 __attribute__ ((noinline
)) int
27 for (i
= 0; i
< N
; i
++)
37 __asm__
volatile ("");
40 /* Check peeling for gaps for unknown loop bound. */
41 for (i
= 0; i
< n
; i
++)
43 res
[i
].c
= ptr
->b
+ ptr
->c
;
45 res
[i
].a
= x
+ ptr
->b
;
46 res
[i
].d
= ptr
->b
+ ptr
->c
;
48 res
[i
].f
= ptr
->f
+ ptr
->e
;
49 res
[i
].e
= ptr
->b
+ ptr
->e
;
51 res
[i
].g
= ptr
->b
+ ptr
->c
;
56 for (i
= 0; i
< n
; i
++)
58 if (res
[i
].c
!= arr
[i
].b
+ arr
[i
].c
59 || res
[i
].a
!= arr
[i
].c
+ arr
[i
].f
+ arr
[i
].b
60 || res
[i
].d
!= arr
[i
].b
+ arr
[i
].c
61 || res
[i
].b
!= arr
[i
].c
62 || res
[i
].f
!= arr
[i
].f
+ arr
[i
].e
63 || res
[i
].e
!= arr
[i
].b
+ arr
[i
].e
64 || res
[i
].h
!= arr
[i
].c
65 || res
[i
].g
!= arr
[i
].b
+ arr
[i
].c
)
69 /* Check also that we don't do more iterations than needed. */
70 for (i
= n
; i
< N
; i
++)
72 if (res
[i
].c
== arr
[i
].b
+ arr
[i
].c
73 || res
[i
].a
== arr
[i
].c
+ arr
[i
].f
+ arr
[i
].b
74 || res
[i
].d
== arr
[i
].b
+ arr
[i
].c
75 || res
[i
].b
== arr
[i
].c
76 || res
[i
].f
== arr
[i
].f
+ arr
[i
].e
77 || res
[i
].e
== arr
[i
].b
+ arr
[i
].e
78 || res
[i
].h
== arr
[i
].c
79 || res
[i
].g
== arr
[i
].b
+ arr
[i
].c
)
94 for (i
= 0; i
< N
; i
++)
104 asm volatile ("" ::: "memory");
112 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_strided8 } } } */