pass in stack pointer
authorJacob Lifshay <programmerjake@gmail.com>
Fri, 15 Sep 2023 03:06:59 +0000 (20:06 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Fri, 15 Sep 2023 03:06:59 +0000 (20:06 -0700)
src/openpower/test/bigint/powmod.py

index 3b27ffbf3fa09cf8cceaa2964b909a6ee5a5cf18..20014f83ec4540ac4b2d3971f74d7c563a495db0 100644 (file)
@@ -87,6 +87,7 @@ class PowModCases(TestAccumulatorBase):
     def call_case(self, instructions, expected, initial_regs, src_loc_at=0):
         stop_at_pc = 0x10000000
         sprs = {8: stop_at_pc}
+        expected.intregs[1] = initial_regs[1] = 0x1000000  # set stack pointer
         expected.pc = stop_at_pc
         expected.sprs['LR'] = None
         self.add_case(assemble(instructions),