summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr69956.c
blob: 37d24d4a94bd1d3195bf5b0e6226a611ea0fbf00 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-vectorize" } */
/* { dg-additional-options "-march=skylake-avx512" { target { i?86-*-* x86_64-*-* } } } */

void
fn1 (char *b, char *d, int *c, int i)
{
  for (; i; i++, d++)
    if (b[i])
      *d = c[i];
}