From: Luke Kenneth Casson Leighton Date: Fri, 4 Sep 2020 23:48:23 +0000 (+0100) Subject: add sld test with RB=64 to see what happens X-Git-Tag: semi_working_ecp5~198 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=918dda5c4c25f58d3d1d22b7a94991a9cc8818fd;p=soc.git add sld test with RB=64 to see what happens --- 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"]