From: Luke Kenneth Casson Leighton Date: Fri, 28 May 2021 12:55:26 +0000 (+0100) Subject: add quick stfd test to make sure MSR.FP is set X-Git-Tag: xlen-bcd~515 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90ee1892217459fb1b5867ebbc632db759c333c5;p=openpower-isa.git add quick stfd test to make sure MSR.FP is set --- diff --git a/src/openpower/simulator/test_sim.py b/src/openpower/simulator/test_sim.py index 03d7d829..0b6f2230 100644 --- a/src/openpower/simulator/test_sim.py +++ b/src/openpower/simulator/test_sim.py @@ -453,6 +453,14 @@ class GeneralTestCases(FHDLTestCase): with Program(lst, bigendian) as program: self.run_tst_program(program, [0, 1, 2]) + def test_stfd(self): + """test FP store + """ + lst = ["stfd f29, 0(1)", + ] + with Program(lst, bigendian) as program: + self.run_tst_program(program, [9], initial_mem={}) + def run_tst_program(self, prog, initial_regs=None, initial_sprs=None, initial_mem=None): initial_regs = [0] * 32