1 /* { dg-options "-O2 -ftree-vectorize -msve-vector-bits=256" } */
5 #define TEST(NAME, TYPE) \
7 NAME##1 (TYPE *x, int n) \
9 for (int i = 0; i < n; ++i) \
12 TYPE NAME##_array[1024]; \
16 for (int i = 1; i < 200; ++i) \
17 NAME##_array[i] += 1; \
32 /* No scalar memory accesses. */
33 /* { dg-final { scan-assembler-not {[wx][0-9]*, \[} } } */
34 /* 2 for each NAME##1 test, one in the header and one in the main loop
35 and 1 for each NAME##2 test, in the main loop only. */
36 /* { dg-final { scan-assembler-times {\twhilelo\tp[0-7]\.b,} 6 } } */
37 /* { dg-final { scan-assembler-times {\twhilelo\tp[0-7]\.h,} 9 } } */
38 /* { dg-final { scan-assembler-times {\twhilelo\tp[0-7]\.s,} 9 } } */
39 /* { dg-final { scan-assembler-times {\twhilelo\tp[0-7]\.d,} 9 } } */