[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr82460-2.c
blob4a45beed715e2cb4efa63386bc525545b71c1e37
1 /* PR target/82460 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -ftree-vectorize -mavx512vbmi -mprefer-vector-width=none" } */
4 /* We want to reuse the permutation mask in the loop, so use vpermt2b rather
5 than vpermi2b. */
6 /* { dg-final { scan-assembler-not {\mvpermi2b\M} } } */
7 /* { dg-final { scan-assembler {\mvpermt2b\M} } } */
9 void
10 foo (unsigned char *__restrict__ x, const unsigned short *__restrict__ y,
11 unsigned long z)
13 unsigned char *w = x + z;
15 *x++ = *y++ >> 8;
16 while (x < w);