2 /* { dg-additional-options "-ftree-parallelize-loops=2" } */
4 /* Variable bound, vector addition, unsigned loop counter, signed bound. */
15 void __attribute__((noclone
,noinline
))
16 f (int n
, unsigned int *__restrict__ a
, unsigned int *__restrict__ b
,
17 unsigned int *__restrict__ c
)
21 for (i
= 0; i
< n
; ++i
)
25 static void __attribute__((noclone
,noinline
))
30 /* Complexify loop to inhibit parloops. */
31 for (j
= 0; j
< 100; ++j
)
32 for (i
= 0; i
< 10; i
++)
50 for (i
= 0; i
< N
; i
++)
52 unsigned int actual
= c
[i
];
53 unsigned int expected
= i
+ ((i
* 3) % 7);
54 if (actual
!= expected
)
58 /* Test low iteration count case. */
64 for (i
= 0; i
< N
; i
++)
66 unsigned int actual
= c
[i
];
67 unsigned int expected
= (i
< 10
70 if (actual
!= expected
)