1  /* { dg-do assemble { target aarch64_asm_sve_ok } } */
       2  /* { dg-options "-O3 --save-temps" } */
       3  
       4  #include <stdint.h>
       5  
       6  int32_t f (int32_t *restrict array, int len, int min)
       7  {
       8    int32_t iSum = 0;
       9  
      10    for (int i=0; i<len; i++) {
      11      if (array[i] >= min)
      12         iSum += array[i];
      13    }
      14    return iSum;
      15  }
      16  
      17  
      18  /* { dg-final { scan-assembler-not {\tsel\tz[0-9]+\.s, p1, z[0-9]+\.s, z[0-9]+\.s} } } */