gcc/testsuite/gcc.target/s390/vector/vec-nopeel-2.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target s390_vx } */ |
| 3 | /* { dg-options "-O2 -mzarch -march=z13 -ftree-vectorize -fdump-tree-vect-details -fvect-cost-model=dynamic" } */ |
| 4 | |
| 5 | void foo(int *restrict a, int *restrict b, unsigned int n) |
| 6 | { |
| 7 | for (unsigned int i = 0; i < n; i++) |
| 8 | b[i] = a[i] * 2 + 1; |
| 9 | } |
| 10 | |
| 11 | /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */ |
| 12 | /* { dg-final { scan-tree-dump "Vectorizing an unaligned access" "vect" } } */ |