blob: 2c9586a36f650d0fa7a83927b3e4b8eb004ef4b3 [file] [log] [blame]
/* { dg-options "-O3 -msve-vector-bits=256" } */
#include <stdint.h>
void
f (uint32_t *restrict dst, uint16_t *restrict src1, uint16_t *restrict src2)
{
for (int i = 0; i < 7; ++i)
dst[i] = (uint16_t) (src1[i] & ~src2[i]);
}
/* { dg-final { scan-assembler-times {\tld1h\tz[0-9]+\.s,} 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 {\tuxth\tz[0-9]+\.s,} 1 } } */
/* { dg-final { scan-assembler-times {\tst1w\tz[0-9]+\.s,} 1 } } */