From cc11d08be4adcb5715cd41d3d08191b2ebdb55f1 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 18 May 2021 13:22:01 +0100 Subject: [PATCH] add more totally random bpermd unit tests, just to be sure --- src/openpower/test/logical/logical_cases.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/openpower/test/logical/logical_cases.py b/src/openpower/test/logical/logical_cases.py index 33b77cc9..892176e4 100644 --- a/src/openpower/test/logical/logical_cases.py +++ b/src/openpower/test/logical/logical_cases.py @@ -118,3 +118,11 @@ class LogicalTestCase(TestAccumulatorBase): initial_regs[2] = 0xdeadbeefcafec0de self.add_case(Program(lst, bigendian), initial_regs) + def case_bpermd_morerandom(self): + lst = ["bpermd 3, 1, 2"] + for i in range(100): + initial_regs = [0] * 32 + initial_regs[1] = random.randint(0, (1<<64)-1) + initial_regs[2] = random.randint(0, (1<<64)-1) + self.add_case(Program(lst, bigendian), initial_regs) + -- 2.30.2