Debian Codegraph @

gcc/testsuite/gcc.dg/vect/slp-53.c

raw
1 /* { dg-do compile } */
2
3 void foo (int * __restrict x, int *y)
4 {
5 x = __builtin_assume_aligned (x, __BIGGEST_ALIGNMENT__);
6 y = __builtin_assume_aligned (y, __BIGGEST_ALIGNMENT__);
7 for (int i = 0; i < 1024; ++i)
8 {
9 x[3*i+0] = y[2*i+0] * 7 + 5;
10 x[3*i+1] = y[2*i+1] * 2;
11 x[3*i+2] = y[2*i+0] + 3;
12 }
13 }
14
15 /* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { target { vect_int && vect_int_mult } } } } */
16 /* { dg-final { scan-tree-dump "LOAD_LANES" "vect" { target { vect_load_lanes } } } } */