add extra bc regression test
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 24 Jan 2022 21:10:31 +0000 (21:10 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 24 Jan 2022 21:10:52 +0000 (21:10 +0000)
src/openpower/test/branch/branch_cases.py

index dac8023e8fc94147e253bcd83fd633cccab6cf87..0ab7d011e7947ce07f170bac0d9ebf894ae87bf0 100644 (file)
@@ -16,6 +16,11 @@ class BranchTestCase(TestAccumulatorBase):
             initial_regs = [0] * 32
             self.add_case(Program(lst, bigendian), initial_regs)
 
+    def case_1_regression_negbranch(self):
+        lst = [f"bl -3377317"]
+        initial_regs = [0] * 32
+        self.add_case(Program(lst, bigendian), initial_regs)
+
     def case_unconditional(self):
         choices = ["b", "ba", "bl", "bla"]
         for i in range(20):