PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-ivdep-1.c
blob76c9204b57018f8f615e4ea2913b6089c4935f5a
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 /* { dg-additional-options "-O3 -fopt-info-vec-optimized" } */
5 /* PR other/33426 */
6 /* Testing whether #pragma ivdep is working. */
8 void foo(int n, int *a, int *b, int *c, int *d, int *e) {
9 int i, j;
10 #pragma GCC ivdep
11 for (i = 0; i < n; ++i) {
12 a[i] = b[i] + c[i];
16 /* { dg-message "loop vectorized" "" { target *-*-* } 0 } */
17 /* { dg-bogus " version\[^\n\r]* alias" "" { target *-*-* } 0 } */