Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/xtheadvector/pr118357.c

raw
1 /* { dg-do compile { target { rv64 } } } */
2 /* { dg-options "-march=rv64gc_xtheadvector -mabi=lp64d -O2" } */
3
4 #include "riscv_vector.h"
5
6 vfloat16m4_t foo (float *ptr, size_t vl)
7 {
8 vfloat32m8_t _p = __riscv_vle32_v_f32m8 (ptr, vl);
9 vfloat16m4_t _half = __riscv_vfncvt_f_f_w_f16m4 (_p, vl);
10 return _half;
11 }
12
13 /* { dg-final { scan-assembler-not {th.vsetvli\tzero,zero} } }*/