Skip to content

Commit e86e653

Browse files
committed
fcvtmod.w.h: Not update fflags if no exception flag, e.g., exp == frac == 0
1 parent 1342c68 commit e86e653

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

riscv/insns/fcvtmod_w_d.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,5 @@ if (exp == 0) {
5555
}
5656

5757
WRITE_RD(sext32(frac));
58-
STATE.fflags->write(STATE.fflags->read() |
59-
(inexact ? softfloat_flag_inexact : 0) |
58+
raise_fp_exceptions((inexact ? softfloat_flag_inexact : 0) |
6059
(invalid ? softfloat_flag_invalid : 0));

0 commit comments

Comments
 (0)