From: Luke Kenneth Casson Leighton Date: Sat, 23 Feb 2019 11:56:28 +0000 (+0000) Subject: move unit test order X-Git-Tag: ls180-24jan2020~1836 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15294360273b7610bc6c12584c82cd20651f6707;p=ieee754fpu.git move unit test order --- diff --git a/src/add/test_add.py b/src/add/test_add.py index cc0ff98a..39c779db 100644 --- a/src/add/test_add.py +++ b/src/add/test_add.py @@ -13,6 +13,7 @@ from unit_test_single import (get_mantissa, get_exponent, get_sign, is_nan, run_edge_cases, run_corner_cases) def testbench(dut): + yield from check_case(dut, 0, 0, 0) yield from check_case(dut, 0xFFFFFFFF, 0xC63B800A, 0xFFC00000) yield from check_case(dut, 0xFF800000, 0x7F800000, 0xFFC00000) #yield from check_case(dut, 0xFF800000, 0x7F800000, 0x7FC00000) @@ -21,7 +22,6 @@ def testbench(dut): yield from check_case(dut, 0xC2540000, 0x42540000, 0x00000000) yield from check_case(dut, 0xfe34f995, 0xff5d59ad, 0xff800000) yield from check_case(dut, 0x82471f51, 0x243985f, 0x801c3790) - yield from check_case(dut, 0, 0, 0) yield from check_case(dut, 0x40000000, 0xc0000000, 0x00000000) yield from check_case(dut, 0x3F800000, 0x40000000, 0x40400000) yield from check_case(dut, 0x40000000, 0x3F800000, 0x40400000)