From e0d786dde25dc50a7cf8fe18ffee5678a1e68a94 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 23 May 2020 19:44:13 +0100 Subject: [PATCH] remove extraneous test_isel --- src/soc/fu/cr/test/test_pipe_caller.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/soc/fu/cr/test/test_pipe_caller.py b/src/soc/fu/cr/test/test_pipe_caller.py index f814a929..6186032d 100644 --- a/src/soc/fu/cr/test/test_pipe_caller.py +++ b/src/soc/fu/cr/test/test_pipe_caller.py @@ -51,24 +51,13 @@ class CRTestCase(FHDLTestCase): def __init__(self, name): super().__init__(name) self.test_name = name + def run_tst_program(self, prog, initial_regs=[0] * 32, initial_sprs={}, initial_cr=0): tc = TestCase(prog, initial_regs, initial_sprs, initial_cr, self.test_name) test_data.append(tc) - def test_isel(self): - for i in range(40): - bi = random.randint(0, 31) - lst = [f"isel 3, 1, 2, {bi}"] - cr = random.randint(0, (1<<32)-1) - initial_regs = [0] * 32 - initial_regs[1] = random.randint(0, (1<<32)-1) - initial_regs[2] = random.randint(0, (1<<32)-1) - initial_regs[3] = random.randint(0, (1<<32)-1) - self.run_tst_program(Program(lst), initial_regs=initial_regs, - initial_cr=cr) - def test_crop(self): insns = ["crand", "cror", "crnand", "crnor", "crxor", "creqv", "crandc", "crorc"] -- 2.30.2