diff options
Diffstat (limited to 'riscv/insns/vfncvt_xu_f_w.h')
-rw-r--r-- | riscv/insns/vfncvt_xu_f_w.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/riscv/insns/vfncvt_xu_f_w.h b/riscv/insns/vfncvt_xu_f_w.h index 3b7d473..c46b620 100644 --- a/riscv/insns/vfncvt_xu_f_w.h +++ b/riscv/insns/vfncvt_xu_f_w.h @@ -1,6 +1,10 @@ // vfncvt.xu.f.w vd, vs2, vm VI_VFP_CVT_SCALE ({ + auto vs2 = P.VU.elt<float16_t>(rs2_num, i); + P.VU.elt<uint8_t>(rd_num, i, true) = f16_to_ui8(vs2, STATE.frm, true); +}, +{ auto vs2 = P.VU.elt<float32_t>(rs2_num, i); P.VU.elt<uint16_t>(rd_num, i, true) = f32_to_ui16(vs2, STATE.frm, true); }, |