extra failfirst dis tests
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 23 Sep 2022 20:17:52 +0000 (21:17 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 23 Sep 2022 20:17:52 +0000 (21:17 +0100)
src/openpower/sv/trans/svp64.py
src/openpower/sv/trans/test_pysvp64dis.py

index 6037de94107525f72600de26257d9d4b5c5d0a16..a3e6f44b6eba9cde73a95220d6cac3ccd8538262 100644 (file)
@@ -669,8 +669,8 @@ def decode_bo(encoding):
     # barse-ackwards MSB0/LSB0. sigh
     mapped = pmap[encoding]
     si =  SelectableInt(0, 3)
-    si[0] = mapped>>2
-    si[1:3] = mapped & 3
+    si[0] = mapped>>2 # inv
+    si[1:3] = mapped & 3 # CR
     return int(si)
 
 
index 1ffc775e3269da214e391ce63810c60e39d30d87..cea9113ca153d794cdac360c6a347be7bd985964 100644 (file)
@@ -227,6 +227,11 @@ class SVSTATETestCase(unittest.TestCase):
         expected = [
                     "sv.add./ff=eq *3,*7,*11",
                     "sv.add./ff=ns *3,*7,*11",
+                    "sv.add./ff=lt *3,*7,*11",
+                    "sv.add./ff=ge *3,*7,*11",
+                    "sv.add./ff=le *3,*7,*11",
+                    "sv.add./ff=gt *3,*7,*11",
+                    "sv.add./ff=ne *3,*7,*11",
                     "sv.add./pr=eq *3,*7,*11",
                     "sv.add./pr=ns *3,*7,*11",
                         ]