class DivTestCases(TestAccumulatorBase):
+ def case_divweu_regression(self):
+ # simulator is wrong, FSM and power-instruction-analyzer both correct
+ lst = ["divweu 3, 1, 2"]
+ initial_regs = [0] * 32
+ initial_regs[1] = 0x1
+ initial_regs[2] = 0xffffffffffffffff
+ with Program(lst, bigendian) as prog:
+ self.add_case(prog, initial_regs)
+
def case_divwe_regression(self):
# div FU and power-instruction-analyzer both correctly return 0
# hitting behavior undefined by Power v3.1 spec, need to adjust