gcc/testsuite/gcc.target/riscv/rvv/base/vf_avl-4.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3 -march=rv64gcv -mabi=lp64d -mrvv-vector-bits=zvl" } */ |
| 3 | |
| 4 | #include "riscv_vector.h" |
| 5 | void |
| 6 | f (float x, float y, void *out) |
| 7 | { |
| 8 | float f[4] = { x, x, x, y }; |
| 9 | vfloat32m1_t v = __riscv_vle32_v_f32m1 (f, 4); |
| 10 | __riscv_vse32_v_f32m1 (out, v, 4); |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-assembler-not {vmv} } } */ |