test MSR.SVF bit set after setvl Vertical-First mode set
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 8 Jul 2021 21:26:30 +0000 (22:26 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 8 Jul 2021 21:26:30 +0000 (22:26 +0100)
src/openpower/decoder/isa/test_caller_setvl.py

index ef0b18316760f52b25b3ac07f3ac53c64022d724..f9729138c04c998005635bdfe26dd4121f36acf5 100644 (file)
@@ -47,6 +47,8 @@ class DecoderTestCase(FHDLTestCase):
             self.assertEqual(sim.svstate.dststep.asint(True), 2)
             print("      gpr1", sim.gpr(0))
             self.assertEqual(sim.gpr(0), SelectableInt(0, 64))
+            print("      msr", bin(sim.msr.value))
+            self.assertEqual(sim.msr, SelectableInt(1<<(63-6), 64))
 
     def test_setvl_1(self):
         lst = SVP64Asm(["setvl 1, 0, 9, 0, 1, 1",