1  /* { dg-do compile } */
       2  /* { dg-additional-options "-march=armv8.2-a+sve -msve-vector-bits=256" { target aarch64*-*-* } } */
       3  
       4  const short mask[] = { 0, 0, 0, 0, 0, 0, 0, 0,
       5  		       0, 0, 0, 1, 1, 1, 1, 1 };
       6  
       7  int
       8  foo (short *restrict x, short *restrict y)
       9  {
      10    for (int i = 0; i < 16; ++i)
      11      if (mask[i])
      12        x[i] += y[i];
      13  }