| 1 |
/* { dg-options "-O3 -msve-vector-bits=256" } */ |
| 2 |
|
| 3 |
#include <stdint.h> |
| 4 |
#include <stdlib.h> |
| 5 |
|
| 6 |
void |
| 7 |
f (uint32_t *restrict dst, int8_t *restrict src) |
| 8 |
{ |
| 9 |
for (int i = 0; i < 7; ++i) |
| 10 |
dst[i] = (int8_t) ~src[i]; |
| 11 |
} |
| 12 |
|
| 13 |
/* { dg-final { scan-assembler-times {\tld1b\tz[0-9]+\.s,} 1 } } */ |
| 14 |
/* { dg-final { scan-assembler-times {\tnot\tz[0-9]+\.b, p[0-9]+/m, z[0-9]+\.b\n} 1 } } */ |
| 15 |
/* { dg-final { scan-assembler-times {\tsxtb\tz[0-9]+\.s,} 1 } } */ |
| 16 |
/* { dg-final { scan-assembler-times {\tst1w\tz[0-9]+\.s,} 1 } } */ |