Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/target_attribute_v_with_intrinsic-16.c

raw
1 /* Test that we do not have error when compile */
2 /* { dg-do compile } */
3 /* { dg-options "-march=rv64gc -mabi=lp64d -O3" } */
4
5 #include "riscv_vector.h"
6
7 vfloat32m1_t
8 __attribute__((target("arch=+v,+zvfhmin")))
9 test_1 (vfloat16mf2_t a, size_t vl)
10 {
11 return __riscv_vfwcvt_f_f_v_f32m1 (a, vl);
12 }