aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vfncvt_rod_f_f_w.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/insns/vfncvt_rod_f_f_w.h')
-rw-r--r--riscv/insns/vfncvt_rod_f_f_w.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/riscv/insns/vfncvt_rod_f_f_w.h b/riscv/insns/vfncvt_rod_f_f_w.h
index 864b784..bb0b851 100644
--- a/riscv/insns/vfncvt_rod_f_f_w.h
+++ b/riscv/insns/vfncvt_rod_f_f_w.h
@@ -1,6 +1,9 @@
// vfncvt.rod.f.f.v vd, vs2, vm
VI_VFP_CVT_SCALE
({
+ require(0);
+},
+{
softfloat_roundingMode = softfloat_round_odd;
auto vs2 = P.VU.elt<float32_t>(rs2_num, i);
P.VU.elt<float16_t>(rd_num, i, true) = f32_to_f16(vs2);