From 918dda5c4c25f58d3d1d22b7a94991a9cc8818fd Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 5 Sep 2020 00:48:23 +0100 Subject: [PATCH] add sld test with RB=64 to see what happens --- src/soc/fu/shift_rot/test/test_pipe_caller.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/soc/fu/shift_rot/test/test_pipe_caller.py b/src/soc/fu/shift_rot/test/test_pipe_caller.py index 62297a7e..1fc4ca1a 100644 --- a/src/soc/fu/shift_rot/test/test_pipe_caller.py +++ b/src/soc/fu/shift_rot/test/test_pipe_caller.py @@ -125,6 +125,14 @@ class ShiftRotTestCase(TestAccumulatorBase): print(initial_regs[1], initial_regs[2]) self.add_case(Program(lst, bigendian), initial_regs) + def case_sld_rb_too_big(self): + lst = ["sld 3, 1, 4", + ] + initial_regs = [0] * 32 + initial_regs[1] = 0xffffffffffffffff + initial_regs[4] = 64 # too big, output should be zero + self.add_case(Program(lst, bigendian), initial_regs) + def case_shift_once(self): lst = ["slw 3, 1, 4", "slw 3, 1, 2"] -- 2.30.2