diff options
Diffstat (limited to 'riscv/insns/vfncvt_x_f_w.h')
-rw-r--r-- | riscv/insns/vfncvt_x_f_w.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/riscv/insns/vfncvt_x_f_w.h b/riscv/insns/vfncvt_x_f_w.h index 3ddbb87..aed35e6 100644 --- a/riscv/insns/vfncvt_x_f_w.h +++ b/riscv/insns/vfncvt_x_f_w.h @@ -1,6 +1,10 @@ // vfncvt.x.f.w vd, vs2, vm VI_VFP_CVT_SCALE ({ + auto vs2 = P.VU.elt<float16_t>(rs2_num, i); + P.VU.elt<int8_t>(rd_num, i, true) = f16_to_i8(vs2, STATE.frm, true); +}, +{ auto vs2 = P.VU.elt<float32_t>(rs2_num, i); P.VU.elt<int16_t>(rd_num, i, true) = f32_to_i16(vs2, STATE.frm, true); }, |