aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vfwcvt_f_xu_v.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/insns/vfwcvt_f_xu_v.h')
-rw-r--r--riscv/insns/vfwcvt_f_xu_v.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/riscv/insns/vfwcvt_f_xu_v.h b/riscv/insns/vfwcvt_f_xu_v.h
index 36a81ed..7a9be7d 100644
--- a/riscv/insns/vfwcvt_f_xu_v.h
+++ b/riscv/insns/vfwcvt_f_xu_v.h
@@ -1,6 +1,10 @@
// vfwcvt.f.xu.v vd, vs2, vm
VI_VFP_CVT_SCALE
({
+ auto vs2 = P.VU.elt<uint8_t>(rs2_num, i);
+ P.VU.elt<float16_t>(rd_num, i, true) = ui32_to_f16(vs2);
+},
+{
auto vs2 = P.VU.elt<uint16_t>(rs2_num, i);
P.VU.elt<float32_t>(rd_num, i, true) = ui32_to_f32(vs2);
},