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 
foo(int * restrict a,int * restrict b,unsigned int n)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-times "Vectorizing an unaligned access" 2 "vect" } } */
13