From: Luke Kenneth Casson Leighton Date: Sun, 17 Feb 2019 14:08:58 +0000 (+0000) Subject: add unit tests that push the mantissa to zero or close to zero X-Git-Tag: ls180-24jan2020~1926 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f8a559a09d8f5133e0eec3303fccb7ea5361bd7;p=ieee754fpu.git add unit tests that push the mantissa to zero or close to zero --- diff --git a/src/add/test_add.py b/src/add/test_add.py index c5e16a60..d3f62745 100644 --- a/src/add/test_add.py +++ b/src/add/test_add.py @@ -72,6 +72,10 @@ def testbench(dut): yield from check_case(dut, 0x7F7FFFEE, 0xFEFFFFEE, 0x7EFFFFEE) yield from check_case(dut, 0x7F7FFFEE, 0x756CA884, 0x7F7FFFFD) yield from check_case(dut, 0x7F7FFFEE, 0x758A0CF8, 0x7F7FFFFF) + yield from check_case(dut, 0x42500000, 0x51A7A358, 0x51A7A358) + yield from check_case(dut, 0x51A7A358, 0x42500000, 0x51A7A358) + yield from check_case(dut, 0x4E5693A4, 0x42500000, 0x4E5693A5) + yield from check_case(dut, 0x42500000, 0x4E5693A4, 0x4E5693A5) #yield from check_case(dut, 1, 0, 1) #yield from check_case(dut, 1, 1, 1)