(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
riscv/
rvv/
vsetvl/
vlmax_back_prop-39.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-march=rv32gcv -mabi=ilp32 -fno-tree-vectorize" } */
       3  
       4  #include "riscv_vector.h"
       5  
       6  void foo5_3 (int32_t * restrict in, int32_t * restrict out, size_t n, int cond)
       7  {
       8    vint8mf2_t v;
       9    for (size_t i = 0; i < n; i++)
      10      {
      11        if (i % 2 == 0) {
      12          v = *(vint8mf2_t*)(in + i);
      13        } else {
      14          *(vint8mf2_t*)(out + i) = v;
      15        }
      16      }
      17  }
      18  
      19  /* { dg-final { scan-assembler-times {vsetvli\s+[a-x0-9]+,\s*zero,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+j\s+\.L[0-9]+} 1 { target { no-opts "-O0" no-opts "-O1"  no-opts "-Os" no-opts "-Oz" no-opts "-funroll-loops" no-opts "-g" } } } } */
      20  /* { dg-final { scan-assembler-times {vsetvli} 1 { target { no-opts "-O0"  no-opts "-O1"  no-opts "-Os" no-opts "-Oz" no-opts "-funroll-loops" no-opts "-g" } } } } */