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