projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e5e4b3
)
fu/mul/test/test_pipe_caller.py test case_all_rb_close_to_ov change rb
author
Cole Poirier
<colepoirier@gmail.com>
Tue, 18 Aug 2020 21:15:20 +0000
(14:15 -0700)
committer
Cole Poirier
<colepoirier@gmail.com>
Tue, 18 Aug 2020 21:15:20 +0000
(14:15 -0700)
dividend from randint(0,1) to randint((-1 << 31), (1 << 31) - 1)
src/soc/fu/mul/test/test_pipe_caller.py
patch
|
blob
|
history
diff --git
a/src/soc/fu/mul/test/test_pipe_caller.py
b/src/soc/fu/mul/test/test_pipe_caller.py
index d0455b4cffc7957b4206c9786fe5f074135035b8..420efedee8c1770d6fe7a83d8c13a40ed4521c70 100644
(file)
--- a/
src/soc/fu/mul/test/test_pipe_caller.py
+++ b/
src/soc/fu/mul/test/test_pipe_caller.py
@@
-273,7
+273,7
@@
class MulTestCase(TestAccumulatorBase):
for instr in instrs:
for i in range(20):
- x = 0x7fffffff + random.randint(
0,
1)
+ x = 0x7fffffff + random.randint(
(-1 << 31), (1 << 31) -
1)
ra = random.randint(0, (1 << 32)-1)
rb = x // ra