libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-ivdep-1.c
blobf32bc7a347f305c106282f9df510026f41db6f1d
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 } */
18 /* { dg-prune-output " version\[^\n\r]* alignment" } */