def run_tst(self, instr, mapping):
lst = [f"{instr} {reg}, {reg}" for reg in range(32)]
for (iregs, oregs) in testgen(mapping):
- with Program(lst, bigendian=False) as program:
- sim = self.run_tst_program(program, iregs)
- gprs = [sim.gpr(gpr) for gpr in range(32)]
- for gpr in range(32):
- self.assertEqual(sim.gpr(gpr),
- SelectableInt(oregs[gpr], 64))
+ with self.subTest():
+ with Program(lst, bigendian=False) as program:
+ sim = self.run_tst_program(program, iregs)
+ gprs = [sim.gpr(gpr) for gpr in range(32)]
+ for gpr in range(32):
+ self.assertEqual(sim.gpr(gpr),
+ SelectableInt(oregs[gpr], 64))
@unittest.skip("")
def test_cdtbcd(self):