Debian Codegraph @

gcc/testsuite/gcc.dg/vect/vect-ivdep-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 /* { dg-additional-options "-O3 -fopt-info-vec-optimized" } */
4
5 /* PR other/33426 */
6 /* Testing whether #pragma ivdep is working. */
7
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];
13 }
14 }
15
16 /* { dg-message "loop vectorized" "" { target *-*-* } 0 } */
17 /* { dg-bogus " version\[^\n\r]* alias" "" { target *-*-* } 0 } */
18 /* { dg-prune-output " version\[^\n\r]* alignment" } */