From e86e653ef35fcd6de8bb2ebe701dccdb9f30a6c7 Mon Sep 17 00:00:00 2001 From: YenHaoChen Date: Mon, 22 Jul 2024 17:50:54 +0800 Subject: fcvtmod.w.h: Not update fflags if no exception flag, e.g., exp == frac == 0 --- riscv/insns/fcvtmod_w_d.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'riscv/insns') diff --git a/riscv/insns/fcvtmod_w_d.h b/riscv/insns/fcvtmod_w_d.h index e39400d..231f605 100644 --- a/riscv/insns/fcvtmod_w_d.h +++ b/riscv/insns/fcvtmod_w_d.h @@ -55,6 +55,5 @@ if (exp == 0) { } WRITE_RD(sext32(frac)); -STATE.fflags->write(STATE.fflags->read() | - (inexact ? softfloat_flag_inexact : 0) | +raise_fp_exceptions((inexact ? softfloat_flag_inexact : 0) | (invalid ? softfloat_flag_invalid : 0)); -- cgit v1.1