aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/vect-cost-model-5.c
blob: b9d0ca47af253bb02e466109c134d33fb7a30297 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-additional-options "-O2 -ftree-vectorize -fvect-cost-model=cheap" } */

void
f (int *restrict x, int *restrict y)
{
  for (unsigned int i = 0; i < 1023; ++i)
    x[i] += y[i];
}

/* { dg-final { scan-tree-dump {LOOP VECTORIZED} vect { target { vect_int && vect_hw_misalign } } } } */