diff options
Diffstat (limited to 'riscv/insns/vfwcvt_f_x_v.h')
-rw-r--r-- | riscv/insns/vfwcvt_f_x_v.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/riscv/insns/vfwcvt_f_x_v.h b/riscv/insns/vfwcvt_f_x_v.h index 62cd8e8..90978bc 100644 --- a/riscv/insns/vfwcvt_f_x_v.h +++ b/riscv/insns/vfwcvt_f_x_v.h @@ -1,6 +1,10 @@ // vfwcvt.f.x.v vd, vs2, vm VI_VFP_CVT_SCALE ({ + auto vs2 = P.VU.elt<int8_t>(rs2_num, i); + P.VU.elt<float16_t>(rd_num, i, true) = i32_to_f16(vs2); +}, +{ auto vs2 = P.VU.elt<int16_t>(rs2_num, i); P.VU.elt<float32_t>(rd_num, i, true) = i32_to_f32(vs2); }, |