gcc/testsuite/gcc.target/aarch64/sve/pr95199.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3 -march=armv8.2-a+sve -fdump-tree-vect" } */ |
| 3 | |
| 4 | void |
| 5 | foo (double *a, double *b, double m, int inc_x, int inc_y) |
| 6 | { |
| 7 | int ix = 0, iy = 0; |
| 8 | for (int i = 0; i < 1000; ++i) |
| 9 | { |
| 10 | a[ix] += m * b[iy]; |
| 11 | ix += inc_x; |
| 12 | iy += inc_y; |
| 13 | } |
| 14 | return ; |
| 15 | } |
| 16 | |
| 17 | /* { dg-final { scan-tree-dump-times "VEC_SERIES_EXPR" 2 "vect" } } */ |