| /* { dg-options "-O3 -msve-vector-bits=256" } */ |
| |
| #include <stdint.h> |
| |
| void |
| f (uint64_t *restrict dst, uint8_t *restrict src1, uint8_t *restrict src2) |
| { |
| for (int i = 0; i < 3; ++i) |
| dst[i] = (uint8_t) (src1[i] & ~src2[i]); |
| } |
| |
| /* { dg-final { scan-assembler-times {\tld1b\tz[0-9]+\.d,} 2 } } */ |
| /* { dg-final { scan-assembler-times {\tbic\tz[0-9]+\.d, z[0-9]+\.d, z[0-9]+\.d\n} 1 } } */ |
| /* { dg-final { scan-assembler-times {\tuxtb\tz[0-9]+\.d,} 1 } } */ |
| /* { dg-final { scan-assembler-times {\tst1d\tz[0-9]+\.d,} 1 } } */ |