with Program(lst, bigendian) as prog:
self.run_test_program(prog, initial_regs)
- def test_8_regression(self):
+ def test_8_fsm_regression(self): # FSM result is "36" not 6
lst = ["divwu. 3, 1, 2"]
initial_regs = [0] * 32
initial_regs[1] = 18
with Program(lst, bigendian) as prog:
self.run_test_program(prog, initial_regs)
+ def test_9_regression(self): # CR0 fails: expected 0b10, actual 0b11
+ lst = ["divw. 3, 1, 2"]
+ initial_regs = [0] * 32
+ initial_regs[1] = 1
+ initial_regs[2] = 0
+ with Program(lst, bigendian) as prog:
+ self.run_test_program(prog, initial_regs)
+
def test_divw_by_zero_1(self):
lst = ["divw. 3, 1, 2"]
initial_regs = [0] * 32