add quick stfd test to make sure MSR.FP is set
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 28 May 2021 12:55:26 +0000 (13:55 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 28 May 2021 13:26:42 +0000 (14:26 +0100)
src/openpower/simulator/test_sim.py

index 03d7d8290a8da80e8346d386d790276d5062e066..0b6f223097b20c09eb932ab53966a234d8fc237a 100644 (file)
@@ -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