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