From cbb8d3b060b4e53e5822dbd55d5191a99929fbe3 Mon Sep 17 00:00:00 2001 From: Cole Poirier Date: Tue, 18 Aug 2020 14:15:20 -0700 Subject: [PATCH] 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) --- src/soc/fu/mul/test/test_pipe_caller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2