projects
/
ieee754fpu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b206b4f
)
add 3 extra unit tests
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sun, 3 Mar 2019 09:59:56 +0000
(09:59 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sun, 3 Mar 2019 09:59:56 +0000
(09:59 +0000)
src/add/test_add.py
patch
|
blob
|
history
diff --git
a/src/add/test_add.py
b/src/add/test_add.py
index 8363279ce0965800603c7698ba31a02c9a8fbe1f..1f143beb7215bda3100112a7f70a438663959f3d 100644
(file)
--- a/
src/add/test_add.py
+++ b/
src/add/test_add.py
@@
-11,6
+11,9
@@
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, 0x006CE3EE, 0x806CE3EC, 0x00000002)
+ yield from check_case(dut, 0x00000047, 0x80000048, 0x80000001)
+ yield from check_case(dut, 0x000116C2, 0x8001170A, 0x80000048)
yield from check_case(dut, 0x7ed01f25, 0xff559e2c, 0xfedb1d33)
yield from check_case(dut, 0, 0, 0)
yield from check_case(dut, 0xFFFFFFFF, 0xC63B800A, 0x7FC00000)