add more fpsqrt specialcases
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 23 Jul 2019 16:18:31 +0000 (17:18 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 23 Jul 2019 16:18:31 +0000 (17:18 +0100)
src/ieee754/fpdiv/specialcases.py

index 5c491638e059a7bb06ab0d08ea3d52d78737cdf0..628730260be13e20a05ed841662923a24b8d97d8 100644 (file)
@@ -115,7 +115,7 @@ class FPDIVSpecialCasesMod(Elaboratable):
                 m.d.comb += self.o.z.inf(sabx)
 
             # if a is NaN return NaN
-            with m.If(a1.is_nan):
+            with m.Elif(a1.is_nan):
                 m.d.comb += self.o.out_do_z.eq(1)
                 m.d.comb += self.o.z.nan(0)