gcc/testsuite/gcc.dg/vect/pr97835.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target vect_int } */ |
| 3 | |
| 4 | struct co { |
| 5 | int gx; |
| 6 | int ty; |
| 7 | }; |
| 8 | |
| 9 | void |
| 10 | x0 (struct co *yy, long int kc, int wi, int md) |
| 11 | { |
| 12 | while (wi < 1) |
| 13 | { |
| 14 | yy[wi].gx = md; |
| 15 | yy[wi].ty = wi; |
| 16 | md += kc; |
| 17 | ++wi; |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | /* We don't yet support SLP inductions for variable length vectors. */ |
| 22 | /* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { xfail vect_variable_length } } } */ |