class FMVISTestCase(TestAccumulatorBase):
def case_0_fmvis(self):
- lst = SVP64Asm(["fmvis 5, 0x4000",
+ lst = SVP64Asm(["fmvis 5, 0x4000", # 2.0
"fmvis 6, 0x2122",
- "fmvis 7, 0x3E80",
+ "fmvis 7, 0x3E80", # 0.25
])
lst = list(lst)
expected_fprs = [0] * 64
- expected_fprs[5] = 0x4000000000000000
+ expected_fprs[5] = 0x4000000000000000 # 2.0 in FP64 form
expected_fprs[6] = 0x2122000000000000
- expected_fprs[7] = 0x3E80000000000000
- self.add_case(Program(lst, bigendian), expected_fprs)
+ expected_fprs[7] = 0x3FD0000000000000 # 0.25 in FP64 form
+ e = ExpectedState(pc=4) # TODO, add FPRs
+ self.add_case(Program(lst, bigendian, e))