got fpmul working (potential bug in softfloat NaN handling)
[ieee754fpu.git] / src / ieee754 / fpmul / test / test_mul.py
index 72ec4a0ac917d6b282fc5e486461e03b4d0f69b0..ea655109162f257652470754598da869340066f7 100644 (file)
@@ -16,16 +16,19 @@ from ieee754.fpcommon.test.unit_test_single import (get_mantissa, get_exponent,
 
 
 def tbench(dut, maxcount, num_loops):
-    yield from check_case(dut, 0x40000000, 0x40000000, 0x40800000)
-    yield from check_case(dut, 0x41400000, 0x40A00000, 0x42700000)
+
+    yield from check_case(dut, 0x40000000, 0x40000000, 0x40800000, 0xffcaeefa)
+    yield from check_case(dut, 0x41400000, 0x40A00000, 0x42700000, 0x3f803262)
 
     count = 0
 
     #regression tests
 
-    stimulus_a = [0xa4504d7, 0xba57711a, 0xbf9b1e94, 0x34082401, 0x5e8ef81,
+    stimulus_a = [0xffcaeefa, 0xae430313, 0xa4504d7,
+                  0xba57711a, 0xbf9b1e94, 0x34082401, 0x5e8ef81,
                   0x5c75da81, 0x2b017]
-    stimulus_b = [0xb4658540, 0xee1818c5, 0xc038ed3a, 0xb328cd45, 0x114f3db,
+    stimulus_b = [0x3f803262, 0x901c3214, 0xb4658540,
+                  0xee1818c5, 0xc038ed3a, 0xb328cd45, 0x114f3db,
                   0x2f642a39, 0xff3807ab]
     yield from run_fpunit(dut, stimulus_a, stimulus_b, mul, get_case)
     count += len(stimulus_a)