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