Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/float-point-frm-insert-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcv -mabi=lp64 -O3" } */
3
4 #include "riscv_vector.h"
5
6 vfloat32m1_t
7 test_float_point_frm_insert (vfloat32m1_t op1, vfloat32m1_t op2, size_t vl) {
8 vfloat32m1_t v1 = __riscv_vfadd_vv_f32m1_rm (op1, op2, 0, vl);
9 vfloat32m1_t v2 = __riscv_vfmin_vv_f32m1 (op1, v1, vl);
10 return __riscv_vfadd_vv_f32m1_rm (v1, v2, 0, vl);
11 }
12
13 /* { dg-final { scan-assembler-times {vfadd\.vv\s+v[0-9]+,\s*v[0-9]+,\s*v+[0-9]+} 2 } } */
14 /* { dg-final { scan-assembler-times {fsrm\s+[axs][0-9]+} 1 } } */
15 /* { dg-final { scan-assembler-times {frrm\s+[axs][0-9]+} 1 } } */
16 /* { dg-final { scan-assembler-times {fsrmi\s+[01234]} 1 } } */