From 55798da0328a68b82f5ce0ecd193a148f42e415d Mon Sep 17 00:00:00 2001 From: "Dave.Wen" Date: Sun, 28 Apr 2019 20:10:10 -0700 Subject: refactor: remove the redundant code --- riscv/insns/vfnmacc_vf.h | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'riscv/insns/vfnmacc_vf.h') diff --git a/riscv/insns/vfnmacc_vf.h b/riscv/insns/vfnmacc_vf.h index d5672c3..0eddd91 100644 --- a/riscv/insns/vfnmacc_vf.h +++ b/riscv/insns/vfnmacc_vf.h @@ -1,19 +1,16 @@ // vfnmacc: vd[i] = -(f[rs1] * vs2[i]) - vd[i] -require_fp; -softfloat_roundingMode = STATE.VU.vxrm; float32_t mul_result; VFP_VF_LOOP ({ switch(STATE.VU.vsew){ - case e32: - mul_result = f32_mul(rs1, f32(vs2.v ^ F32_SIGN)); - vd = f32_sub(mul_result, vd); - break; - case e16: - case e8: - default: - softfloat_exceptionFlags = 1; - }; - }) -set_fp_exceptions; + case e32: + mul_result = f32_mul(rs1, f32(vs2.v ^ F32_SIGN)); + vd = f32_sub(mul_result, vd); + break; + case e16: + case e8: + default: + softfloat_exceptionFlags = 1; + }; +}) -- cgit v1.1