fix expected state in hazard case_regression_1
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 1 Dec 2021 18:03:02 +0000 (18:03 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 1 Dec 2021 18:03:02 +0000 (18:03 +0000)
src/openpower/test/general/overlap_hazards.py

index 50f54fe6e511658a18a00b83de0145a2121edc3c..035b8cbc83e44ac2af7ff823ce422fa77950fccc 100644 (file)
@@ -169,12 +169,11 @@ class HazardTestCase(TestAccumulatorBase):
         initial_regs[2] = 2
         initial_regs[6] = 2
         initial_regs[7] = 4
-        e = ExpectedState(pc=20)
+        e = ExpectedState(pc=12)
         e.intregs[1] = 8
         e.intregs[2] = 2
-        e.intregs[3] = 4 # 8 divided by 2 == 4
         e.intregs[4] = 5 # 10 divided by 2 == 5
-        e.intregs[5] = 9 # 4 plus 5 == 9
+        e.intregs[5] = 8 # 4 times 2 == 8
         e.intregs[6] = 2
         e.intregs[7] = 4
         e.intregs[9] = 10 # 8+2 == 10