1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-vectorize" } */
6 #define PACK(TYPED, TYPES) \
7 void __attribute__ ((noinline, noclone)) \
8 pack_##TYPED##_##TYPES (TYPED *d, TYPES *s, int size) \
10 for (int i = 0; i < size; i++) \
15 T (int32_t, int64_t) \
16 T (int16_t, int32_t) \
18 T (uint32_t, uint64_t) \
19 T (uint16_t, uint32_t) \
24 /* { dg-final { scan-assembler-times {\tuzp1\tz[0-9]+\.s, z[0-9]+\.s, z[0-9]+\.s\n} 2 } } */
25 /* { dg-final { scan-assembler-times {\tuzp1\tz[0-9]+\.h, z[0-9]+\.h, z[0-9]+\.h\n} 2 } } */
26 /* { dg-final { scan-assembler-times {\tuzp1\tz[0-9]+\.b, z[0-9]+\.b, z[0-9]+\.b\n} 2 } } */