aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr93094.c
blob: 79c3e891db100ef985bad0224834672517ddb7e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-additional-options "-O3 -fno-tree-pre" } */
/* { dg-additional-options "-mavx512bw" { target x86_64-*-* i?86-*-* } } */

void
ll (char *un, char *rr, int te, int fp, int nb)
{
  const int xe = nb & 1;

  while (fp-- != 0)
    {
      if ((rr[0] & xe) == 0)
        un[0] = 0;

      un += te;
      rr += te;
    }
}