From: Luke Kenneth Casson Leighton Date: Sun, 16 Jun 2019 12:18:28 +0000 (+0100) Subject: fpmul specialcase, nan x nan returns 0 nan X-Git-Tag: ls180-24jan2020~983 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=daba4a167b8134bdd2ebf709d3458e09fd99ca49;p=ieee754fpu.git fpmul specialcase, nan x nan returns 0 nan --- diff --git a/src/ieee754/fpmul/specialcases.py b/src/ieee754/fpmul/specialcases.py index b7a59b37..0149bb3b 100644 --- a/src/ieee754/fpmul/specialcases.py +++ b/src/ieee754/fpmul/specialcases.py @@ -67,7 +67,7 @@ class FPMulSpecialCasesMod(Elaboratable): # if a is NaN or b is NaN return NaN with m.If(abnan): m.d.comb += self.o.out_do_z.eq(1) - m.d.comb += self.o.z.nan(1) + m.d.comb += self.o.z.nan(0) # if a is inf return inf (or NaN) with m.Elif(a1.is_inf):