From: Cole Poirier Date: Tue, 18 Aug 2020 21:15:20 +0000 (-0700) Subject: fu/mul/test/test_pipe_caller.py test case_all_rb_close_to_ov change rb X-Git-Tag: semi_working_ecp5~296 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cbb8d3b060b4e53e5822dbd55d5191a99929fbe3;p=soc.git fu/mul/test/test_pipe_caller.py test case_all_rb_close_to_ov change rb dividend from randint(0,1) to randint((-1 << 31), (1 << 31) - 1) --- diff --git a/src/soc/fu/mul/test/test_pipe_caller.py b/src/soc/fu/mul/test/test_pipe_caller.py index d0455b4c..420efede 100644 --- 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