1 /* PR tree-optimization/112774 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target vect_int } */
4 /* { dg-additional-options "-O2 -ftree-vectorize" } */
8 int foo (unsigned offset
, unsigned N
)
12 for (unsigned i
= 0; i
< N
; i
++)
18 /* Loop can be vectorized by referring "i + offset" is nonwrapping from array. */
19 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" { target { ! { avr-*-* msp430-*-* pru-*-* } } } } } */