From e4e74a891b2c3a7f12195a3e658dc51e4ef6e969 Mon Sep 17 00:00:00 2001 From: Chih-Min Chao Date: Wed, 3 Jun 2020 21:40:59 -0700 Subject: rvv: fix vfmv.s.f for non NaN-boxed case Signed-off-by: Chih-Min Chao --- riscv/insns/vfmv_s_f.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'riscv/insns/vfmv_s_f.h') 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(rd_num, 0, true) = f64(FRS1).v; - else - P.VU.elt(rd_num, 0, true) = f32(FRS1).v; + P.VU.elt(rd_num, 0, true) = f16(FRS1).v; break; case e32: - if (FLEN == 64) - P.VU.elt(rd_num, 0, true) = f64(FRS1).v; - else - P.VU.elt(rd_num, 0, true) = f32(FRS1).v; + P.VU.elt(rd_num, 0, true) = f32(FRS1).v; break; case e64: if (FLEN == 64) -- cgit v1.1