| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-march=rv64gcv -mabi=lp64 -O3" } */ |
| 3 |
|
| 4 |
#include "riscv_vector.h" |
| 5 |
|
| 6 |
vfloat32m1_t |
| 7 |
test_riscv_vfcvt_f_x_v_f32m1_rm (vint32m1_t op1, size_t vl) { |
| 8 |
return __riscv_vfcvt_f_x_v_f32m1_rm (op1, 0, vl); |
| 9 |
} |
| 10 |
|
| 11 |
vfloat32m1_t |
| 12 |
test_riscv_vfcvt_f_x_v_f32m1_rm_m (vbool32_t mask, vint32m1_t op1, size_t vl) { |
| 13 |
return __riscv_vfcvt_f_x_v_f32m1_rm_m (mask, op1, 0, vl); |
| 14 |
} |
| 15 |
|
| 16 |
vfloat32m1_t |
| 17 |
test_riscv_vfcvt_f_xu_v_f32m1_rm (vuint32m1_t op1, size_t vl) { |
| 18 |
return __riscv_vfcvt_f_xu_v_f32m1_rm (op1, 0, vl); |
| 19 |
} |
| 20 |
|
| 21 |
vfloat32m1_t |
| 22 |
test_riscv_vfcvt_f_xu_v_f32m1_rm_m (vbool32_t mask, vuint32m1_t op1, |
| 23 |
size_t vl) { |
| 24 |
return __riscv_vfcvt_f_xu_v_f32m1_rm_m (mask, op1, 0, vl); |
| 25 |
} |
| 26 |
|
| 27 |
vfloat32m1_t |
| 28 |
test_riscv_vfcvt_f_x_v_f32m1 (vint32m1_t op1, size_t vl) { |
| 29 |
return __riscv_vfcvt_f_x_v_f32m1 (op1, vl); |
| 30 |
} |
| 31 |
|
| 32 |
vfloat32m1_t |
| 33 |
test_vfcvt_f_x_v_f32m1_m (vbool32_t mask, vint32m1_t op1, size_t vl) { |
| 34 |
return __riscv_vfcvt_f_x_v_f32m1_m (mask, op1, vl); |
| 35 |
} |
| 36 |
|
| 37 |
vfloat32m1_t |
| 38 |
test_riscv_vfcvt_f_xu_v_f32m1 (vuint32m1_t op1, size_t vl) { |
| 39 |
return __riscv_vfcvt_f_xu_v_f32m1 (op1, vl); |
| 40 |
} |
| 41 |
|
| 42 |
vfloat32m1_t |
| 43 |
test_vfcvt_f_x_vu_f32m1_m (vbool32_t mask, vuint32m1_t op1, size_t vl) { |
| 44 |
return __riscv_vfcvt_f_xu_v_f32m1_m (mask, op1, vl); |
| 45 |
} |
| 46 |
|
| 47 |
/* { dg-final { scan-assembler-times {vfcvt\.f\.x[u]?\.v\s+v[0-9]+,\s*v[0-9]+} 8 } } */ |
| 48 |
/* { dg-final { scan-assembler-times {frrm\s+[axs][0-9]+} 4 } } */ |
| 49 |
/* { dg-final { scan-assembler-times {fsrm\s+[axs][0-9]+} 4 } } */ |
| 50 |
/* { dg-final { scan-assembler-times {fsrmi\s+[01234]} 4 } } */ |