Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/float-point-wcvt-x.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcv -mabi=lp64 -O3" } */
3
4 #include "riscv_vector.h"
5
6 vint64m2_t
7 test_riscv_vfwcvt_x_f_v_i64m2_rm (vfloat32m1_t op1, size_t vl) {
8 return __riscv_vfwcvt_x_f_v_i64m2_rm (op1, 0, vl);
9 }
10
11 vint64m2_t
12 test_vfwcvt_x_f_v_i64m2_rm_m (vbool32_t mask, vfloat32m1_t op1, size_t vl) {
13 return __riscv_vfwcvt_x_f_v_i64m2_rm_m (mask, op1, 1, vl);
14 }
15
16 vint64m2_t
17 test_riscv_vfwcvt_x_f_v_i64m2 (vfloat32m1_t op1, size_t vl) {
18 return __riscv_vfwcvt_x_f_v_i64m2 (op1, vl);
19 }
20
21 vint64m2_t
22 test_vfwcvt_x_f_v_i64m2_m (vbool32_t mask, vfloat32m1_t op1, size_t vl) {
23 return __riscv_vfwcvt_x_f_v_i64m2_m (mask, op1, vl);
24 }
25
26 /* { dg-final { scan-assembler-times {vfwcvt\.x\.f\.v\s+v[0-9]+,\s*v[0-9]+} 4 } } */
27 /* { dg-final { scan-assembler-times {frrm\s+[axs][0-9]+} 2 } } */
28 /* { dg-final { scan-assembler-times {fsrm\s+[axs][0-9]+} 2 } } */
29 /* { dg-final { scan-assembler-times {fsrmi\s+[01234]} 2 } } */