blob: 9531966c2945c1365a71dd36b1fb34cb1c0c021d [file] [log] [blame]
/* { dg-options "-O2 -ftree-vectorize" } */
#pragma GCC target "+nosve"
#include <stdint.h>
void
f (int64_t *x, int64_t *y, uint32_t *z, int n)
{
for (int i = 0; i < n; ++i)
{
x[i] = z[i];
y[i] += y[i - 2];
}
}
/* { dg-final { scan-assembler-times {\tuxtl\tv[0-9]+\.2d, v[0-9]+\.2s\n} 1 } } */
/* { dg-final { scan-assembler-times {\tadd\tv[0-9]+\.2d,} 1 } } */