| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O3 -march=rv64gcv -mabi=lp64d -ftree-vectorize -mrvv-vector-bits=zvl -mrvv-max-lmul=m8" } */ |
| 3 |
|
| 4 |
#include "riscv_vector.h" |
| 5 |
|
| 6 |
vfloat32m1_t test () { |
| 7 |
float arr[32] = { |
| 8 |
1.0, 2.2, 7.8, 1.2, 3.3, 4.7, 5.5, 3.3, |
| 9 |
1.0, 0.2, 1.8, 2.2, 4.3, 4.7, 9.5, 9.3, |
| 10 |
1.0, 2.2, 7.8, 1.2, 3.3, 4.7, 5.5, 3.3, |
| 11 |
1.0, 0.2, 1.8, 2.2, 4.3, 4.7, 9.5, 9.3, |
| 12 |
}; |
| 13 |
|
| 14 |
return __riscv_vle32_v_f32m1(arr, 32); |
| 15 |
} |
| 16 |
|
| 17 |
/* { dg-final { scan-assembler-not {vle[0-9]+\.v\s+v[0-9]+,\s*[0-9]+\(sp\)} } } */ |
| 18 |
/* { dg-final { scan-assembler-not {vs[0-9]+r\.v\s+v[0-9]+,\s*[0-9]+\(sp\)} } } */ |