diff options
Diffstat (limited to 'riscv')
-rw-r--r-- | riscv/insns/vfmv_s_f.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/riscv/insns/vfmv_s_f.h b/riscv/insns/vfmv_s_f.h index d29e245..17c85d3 100644 --- a/riscv/insns/vfmv_s_f.h +++ b/riscv/insns/vfmv_s_f.h @@ -12,16 +12,10 @@ if (vl > 0 && P.VU.vstart < vl) { switch(P.VU.vsew) { case e16: - if (FLEN == 64) - P.VU.elt<uint16_t>(rd_num, 0, true) = f64(FRS1).v; - else - P.VU.elt<uint16_t>(rd_num, 0, true) = f32(FRS1).v; + P.VU.elt<uint16_t>(rd_num, 0, true) = f16(FRS1).v; break; case e32: - if (FLEN == 64) - P.VU.elt<uint32_t>(rd_num, 0, true) = f64(FRS1).v; - else - P.VU.elt<uint32_t>(rd_num, 0, true) = f32(FRS1).v; + P.VU.elt<uint32_t>(rd_num, 0, true) = f32(FRS1).v; break; case e64: if (FLEN == 64) |