Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/float-point-cvt-xu.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcv -mabi=lp64 -O3" } */
3
4 #include "riscv_vector.h"
5
6 vuint32m1_t
7 test_riscv_vfcvt_xu_f_v_u32m1_rm (vfloat32m1_t op1, size_t vl) {
8 return __riscv_vfcvt_xu_f_v_u32m1_rm (op1, 0, vl);
9 }
10
11 vuint32m1_t
12 test_vfcvt_xu_f_v_u32m1_rm_m (vbool32_t mask, vfloat32m1_t op1, size_t vl) {
13 return __riscv_vfcvt_xu_f_v_u32m1_rm_m (mask, op1, 1, vl);
14 }
15
16 vuint32m1_t
17 test_riscv_vfcvt_xu_f_vv_u32m1 (vfloat32m1_t op1, size_t vl) {
18 return __riscv_vfcvt_xu_f_v_u32m1 (op1, vl);
19 }
20
21 vuint32m1_t
22 test_vfcvt_xu_f_v_u32m1_m (vbool32_t mask, vfloat32m1_t op1, size_t vl) {
23 return __riscv_vfcvt_xu_f_v_u32m1_m (mask, op1, vl);
24 }
25
26 /* { dg-final { scan-assembler-times {vfcvt\.xu\.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 } } */