From 90ee1892217459fb1b5867ebbc632db759c333c5 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 28 May 2021 13:55:26 +0100 Subject: [PATCH] add quick stfd test to make sure MSR.FP is set --- src/openpower/simulator/test_sim.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.30.2