add unit tests for Rc=1 ffirst/predicate-result
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 18 Sep 2022 16:14:04 +0000 (17:14 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 18 Sep 2022 16:14:04 +0000 (17:14 +0100)
to test_pysvp64dis.py

src/openpower/sv/trans/test_pysvp64dis.py

index 97df1c516af7bba8327814e472f123f1740bfe1c..585bb7064e1e72a3faa68e812331a991a75fe143 100644 (file)
@@ -221,6 +221,14 @@ class SVSTATETestCase(unittest.TestCase):
                     "sv.add/pr=~RC1 *3,*7,*11",
                         ]
 
+    def test_14_rc1_ff_pr(self):
+        expected = [
+                    "sv.add./ff=eq *3,*7,*11",
+                    "sv.add./ff=ns *3,*7,*11",
+                    "sv.add./pr=eq *3,*7,*11",
+                    "sv.add./pr=ns *3,*7,*11",
+                        ]
+
 if __name__ == "__main__":
     unittest.main()